Todoist CLI技能使用说明
2026-03-29
新闻来源:网淘吧
围观:6
电脑广告
手机广告
Todoist CLI
一个用Go语言编写的快速、功能齐全的Todoist命令行界面。
认证
从以下地址获取您的API令牌https://todoist.com/app/settings/integrations/developer

# Interactive
todoist auth
# Direct
todoist auth <your-token>
# Or set environment variable
export TODOIST_API_TOKEN=<your-token>
任务
# Show today's tasks (default)
todoist
# List all tasks
todoist tasks --all
# Filter tasks
todoist tasks --filter "p1" # High priority
todoist tasks --filter "overdue" # Overdue
todoist tasks -p Work # By project
# Show task descriptions and comments
todoist tasks -p Work --details
# Add a task
todoist add "Buy groceries"
todoist add "Call mom" -d tomorrow
todoist add "Urgent" -P 1 -d "today 5pm" -l urgent
# Complete a task
todoist complete <task-id>
todoist done <task-id>
# Reopen completed task
todoist reopen <task-id>
# View task details
todoist view <task-id>
# Update a task
todoist update <task-id> --due "next monday"
todoist update <task-id> -P 2
# Delete a task
todoist delete <task-id>
# Move a task (Kanban workflows)
todoist move <task-id> --section "In Progress"
todoist move <task-id> --project "Work"
# Search
todoist search "meeting"
项目
# List projects
todoist projects
# Create project
todoist projects add "New Project" --color blue
标签
# List labels
todoist labels
# Create label
todoist labels add urgent --color red
分区
# List sections
todoist sections -p Work
# Create section
todoist sections add "In Progress" -p Work
评论
# View comments on a task
todoist comment <task-id>
# Add a comment
todoist comment <task-id> "This is a note"
已完成任务
# Show recently completed
todoist completed
# Filter by date
todoist completed --since 2024-01-01 --limit 50
JSON输出
所有命令均支持--json参数以输出机器可读格式:
todoist tasks --json | jq '.[] | .content'
命令参考
| 命令 | 描述 |
|---|---|
todoist | 显示今日任务 |
todoist tasks | 使用筛选器列出任务 |
todoist add | 创建新任务 |
todoist complete | 标记任务完成 |
todoist 完成 | “完成”的别名 |
todoist 重新打开 | 重新打开已完成任务 |
todoist 删除 | 删除任务 |
todoist 更新 | 更新任务 |
todoist 移动 | 将任务移至分区/项目 |
todoist 查看 | 查看任务详情 |
todoist 搜索 | 搜索任务 |
todoist 项目 | 列出/管理项目 |
todoist 标签 | 列出/管理标签 |
todoist 分区 | 列出/管理分区 |
todoist 评论 | 查看/添加评论 |
todoist 已完成 | 显示已完成任务 |
Todoist 授权 | 认证 |
优先级映射
| 命令行界面 | Todoist |
|---|---|
-P 1 | p1 (最高) |
-P 2 | p2 |
-P 3 | p3 |
-P 4 | p4 (最低) |
备注
- 所有命令都支持
--json用于机器可读的输出
文章底部电脑广告
手机广告位-内容正文底部


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