运行时依赖
安装命令
点击复制技能文档
Todoist 命令行工具
A fast, full-featured Todoist 命令行工具 written in Go.
Authentication
获取 your API 令牌 from https://todoist.com/应用/设置tings/integrations/developer
# Interactive todoist auth
# Direct todoist auth
# Or 设置 环境 variable 导出 TODOIST_API_令牌=
Tasks # Show today's tasks (default) todoist
# 列出 all tasks todoist tasks --all
# 过滤器 tasks todoist tasks --过滤器 "p1" # High priority todoist tasks --过滤器 "overdue" # Overdue todoist tasks -p Work # By project
# Show task descriptions and comments todoist tasks -p Work --detAIls
# 添加 a task todoist 添加 "Buy groceries" todoist 添加 "Call mom" -d tomorrow todoist 添加 "Urgent" -P 1 -d "today 5pm" -l urgent
# Complete a task todoist complete todoist done
# Reopen completed task todoist reopen
# View task detAIls todoist view
# 更新 a task todoist 更新 --due "next monday" todoist 更新 -P 2
# 删除 a task todoist 删除
# Move a task (Kanban 工作流s) todoist move --section "In 进度" todoist move --project "Work"
# 搜索 todoist 搜索 "meeting"
Projects # 列出 projects todoist projects
# 创建 project todoist projects 添加 "New Project" --color blue
Labels # 列出 labels todoist labels
# 创建 label todoist labels 添加 urgent --color red
Sections # 列出 sections todoist sections -p Work
# 创建 section todoist sections 添加 "In 进度" -p Work
Comments # View comments on a task todoist comment
# 添加 a comment todoist comment "This is a note"
Completed Tasks # Show recently completed todoist completed
# 过滤器 by date todoist completed --since 2024-01-01 --limit 50
JSON 输出
All commands support --json for machine-readable 输出:
todoist tasks --json | jq '.[] | .content'
Command Reference Command Description todoist Show today's tasks todoist tasks 列出 tasks with 过滤器s todoist 添加 创建 a new task todoist complete Mark task complete todoist done Alias for complete todoist reopen Reopen completed task todoist 删除 删除 a task todoist 更新 更新 a task todoist move Move task to section/project todoist view View task detAIls todoist 搜索 搜索 tasks todoist projects 列出/manage projects todoist labels 列出/manage labels todoist sections 列出/manage sections todoist comment View/添加 comments todoist completed Show completed tasks todoist auth 认证 Priority M应用ing 命令行工具 Todoist -P 1 p1 (highest) -P 2 p2 -P 3 p3 -P 4 p4 (lowest) Notes All commands support --json for machine-readable 输出