Todoist Task Manager技能使用说明
2026-04-01
新闻来源:网淘吧
围观:8
电脑广告
手机广告
Todoist CLI
使用todoist直接在终端管理 Todoist 任务。
设置
- 安装:
brew install todoist-cli - 从https://app.todoist.com/app/settings/integrations/developer
- 获取你的 API 令牌
mkdir -p ~/.config/todoist
echo '{"token": "YOUR_API_TOKEN"}' > ~/.config/todoist/config.json
- 创建配置:
同步:
todoist sync
todoist list # All tasks
todoist list --filter "today" # Due today
todoist list --filter "overdue" # Overdue tasks
todoist list --filter "p1" # Priority 1 (highest)
todoist list --filter "tomorrow" # Due tomorrow
todoist list --filter "@work" # By label
todoist list --filter "#Project" # By project
todoist list --filter "(today | overdue) & p1" # Combined filters
列出任务
todoist add "Buy milk" # Simple task
todoist add "Call mom" --priority 1 # With priority (1=highest, 4=lowest)
todoist add "Meeting" --date "tomorrow 3pm" # With due date
todoist add "Report" --project-name "Work" # To specific project
todoist add "Review" --label-names "urgent,review" # With labels
todoist quick "Buy eggs tomorrow p1 #Shopping @errands" # Natural language
添加任务
todoist modify TASK_ID --content "New title"
todoist modify TASK_ID --priority 2
todoist modify TASK_ID --date "next monday"
修改任务
todoist close TASK_ID # Complete a task
todoist close TASK_ID TASK_ID2 # Complete multiple tasks
完成任务
todoist delete TASK_ID
删除任务
todoist show TASK_ID # Show task details
todoist projects # List all projects
todoist labels # List all labels
查看详情
todoist sync # Sync local cache with Todoist
同步
todoist list --csv # CSV output for scripting
todoist list --color # Colorized output
todoist list --namespace # Show parent tasks as namespace
todoist list --indent # Indent subtasks
输出格式
过滤语法Todoist CLI 支持官方的 Todoist 过滤语法

| : | 描述 |
|---|---|
今天 | 截止于今天 |
明天 | 截止于明天 |
逾期 | 超过截止日期 |
无日期 | 无截止日期 |
p1,p2,p3,p4 | 优先级 |
@标签 | 按标签 |
#项目 | 按项目 |
分配给:我 | 分配给您 |
7天 | 未来7天内截止 |
与...结合&(和),(或),!(非):备注
todoist list --filter "(today | overdue) & p1"
todoist list --filter "#Work & !@done"
运行
- todoist 同步
在网页/移动应用中进行更改后任务ID为数字(例如, - 12345678
)配置存储在 - ~/.config/todoist/config.json
缓存存储在 - ~/.config/todoist/cache.json
~/.config/todoist/cache.json
文章底部电脑广告
手机广告位-内容正文底部


微信扫一扫,打赏作者吧~