| name | todoist-cli |
| description | Manage Todoist tasks via the `todoist` CLI. Use when the user asks to add tasks, complete tasks, list today's tasks, search tasks, manage projects/labels/sections, or interact with Todoist in any way. |
Todoist CLI
Manage tasks via the todoist command.
Requirements
Install from: https://github.com/buddyh/todoist-cli
brew install buddyh/tap/todoist
go install github.com/buddyh/todoist-cli/cmd/todoist@latest
Commands
todoist
todoist tasks --all
todoist tasks --filter "p1"
todoist tasks --filter "overdue"
todoist tasks -p Work
todoist add "Task name"
todoist add "Task" -d tomorrow -P 1
todoist add "Task" -p Work -l urgent
todoist complete <id>
todoist done <id>
todoist delete <id>
todoist update <id> --due "monday"
todoist update <id> -P 2
todoist view <id>
todoist search "keyword"
todoist reopen <id>
todoist move <id> --section "In Progress"
todoist move <id> --project "Work"
todoist projects
todoist projects add "New Project"
todoist labels
todoist labels add urgent --color red
todoist sections -p Work
todoist comment <id>
todoist comment <id> "Note"
todoist completed
todoist completed --since 2024-01-01
JSON Output
All commands support --json:
todoist tasks --json
todoist tasks --json | jq '.[] | .content'
Priority Mapping
| Flag | Todoist |
|---|
-P 1 | p1 (highest) |
-P 2 | p2 |
-P 3 | p3 |
-P 4 | p4 (lowest) |