运行时依赖
安装命令
点击复制技能文档
Todoist 命令行工具
Use todoist to manage Todoist tasks directly from the terminal.
设置up 安装: brew 安装 todoist-命令行工具 获取 your API 令牌 from https://应用.todoist.com/应用/设置tings/integrations/developer 创建 config: mkdir -p ~/.config/todoist echo '{"令牌": "YOUR_API_令牌"}' > ~/.config/todoist/config.json
同步: todoist 同步 列出 Tasks todoist 列出 # All tasks todoist 列出 --过滤器 "today" # Due today todoist 列出 --过滤器 "overdue" # Overdue tasks todoist 列出 --过滤器 "p1" # Priority 1 (highest) todoist 列出 --过滤器 "tomorrow" # Due tomorrow todoist 列出 --过滤器 "@work" # By label todoist 列出 --过滤器 "#Project" # By project todoist 列出 --过滤器 "(today | overdue) & p1" # Combined 过滤器s
添加 Tasks todoist 添加 "Buy milk" # Simple task todoist 添加 "Call mom" --priority 1 # With priority (1=highest, 4=lowest) todoist 添加 "Meeting" --date "tomorrow 3pm" # With due date todoist 添加 "报告" --project-name "Work" # To specific project todoist 添加 "Review" --label-names "urgent,review" # With labels todoist quick "Buy eggs tomorrow p1 #Shopping @errands" # Natural language
Modify Tasks todoist modify TASK_ID --content "New title" todoist modify TASK_ID --priority 2 todoist modify TASK_ID --date "next monday"
Complete Tasks todoist close TASK_ID # Complete a task todoist close TASK_ID TASK_ID2 # Complete multiple tasks
删除 Tasks todoist 删除 TASK_ID
View DetAIls todoist show TASK_ID # Show task detAIls todoist projects # 列出 all projects todoist labels # 列出 all labels
同步 todoist 同步 # 同步 local 缓存 with Todoist
输出 格式化s todoist 列出 --csv # CSV 输出 for scripting todoist 列出 --color # Colorized 输出 todoist 列出 --namespace # Show parent tasks as namespace todoist 列出 --indent # Indent subtasks
过滤器 Syntax
Todoist 命令行工具 supports the official Todoist 过滤器 syntax:
过滤器 Description today Due today tomorrow Due tomorrow overdue Past due date no date No due date p1, p2, p3, p4 Priority level @label By label #Project By project as签名ed to: me As签名ed to you 7 days Due in next 7 days
Combine with & (and), | (or), ! (not):
todoist 列出 --过滤器 "(today | overdue) & p1" todoist 列出 --过滤器 "#Work & !@done"
Notes 运行 todoist 同步 after making changes in the 网页/移动 应用 Task IDs are numeric (e.g., 12345678) Config stored in ~/.config/todoist/config.json 缓存 stored in ~/.config/todoist/缓存.json