Installation
Install md2do globally or use it in your project.
Global Installation
Install once, use everywhere:
bash
npm install -g @md2do/cliVerify installation:
bash
md2do --versionProject Installation
Install in your project:
bash
# Using npm
npm install @md2do/cli
# Using pnpm
pnpm add @md2do/cli
# Using yarn
yarn add @md2do/cliUse with npx:
bash
npx md2do listFrom Source
For development or latest features:
bash
# Clone the repository
git clone https://github.com/TeamNickHart/md2do.git
cd md2do
# Install dependencies
pnpm install
# Build all packages
pnpm build
# Link CLI globally
pnpm link:cliNow md2do command is available globally.
Requirements
- Node.js: >= 18.0.0
- npm/pnpm/yarn: Latest version recommended
Check your Node version:
bash
node --versionIf you need to upgrade, visit nodejs.org.
Verify Installation
bash
# Check version
md2do --version
# Run help
md2do --help
# List tasks in current directory
md2do listOptional: Todoist Integration
If using Todoist, get your API token:
- Visit Todoist Settings
- Copy your API token
- Set environment variable:
bash
export TODOIST_API_TOKEN="your-token"See Todoist Integration for details.
Optional: MCP Server
For Claude Code integration, build the MCP server:
bash
cd md2do
pnpm --filter @md2do/mcp buildSee MCP Integration for setup.
Updating
Keep md2do up to date:
bash
# Global installation
npm update -g @md2do/cli
# Project installation
npm update @md2do/cliUninstall
Remove md2do:
bash
# Global
npm uninstall -g @md2do/cli
# Project
npm uninstall @md2do/cliTroubleshooting
Command not found
If md2do isn't found after global install:
bash
# Check npm global bin path
npm bin -g
# Add to PATH if needed (add to ~/.bashrc or ~/.zshrc)
export PATH="$PATH:$(npm bin -g)"Permission errors (npm)
On Unix, avoid using sudo with npm. Instead, configure npm to install globally without sudo:
bash
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
export PATH=~/.npm-global/bin:$PATHAdd the export to your ~/.bashrc or ~/.zshrc.
Using with pnpm
pnpm handles global binaries differently:
bash
pnpm add -g @md2do/cli
# Use pnpm bin path
export PATH="$HOME/.local/share/pnpm:$PATH"Next Steps
- Getting Started - Your first tasks
- Task Format - Learn the syntax
- Configuration - Set up config files