网淘吧来吧,欢迎您!

Todoist CLI技能使用说明

2026-03-29 新闻来源:网淘吧 围观:6
电脑广告
手机广告

Todoist CLI

一个用Go语言编写的快速、功能齐全的Todoist命令行界面。

认证

从以下地址获取您的API令牌https://todoist.com/app/settings/integrations/developer

Todoist CLI

# 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 1p1 (最高)
-P 2p2
-P 3p3
-P 4p4 (最低)

备注

  • 所有命令都支持--json用于机器可读的输出

免责申明
部分文章来自各大搜索引擎,如有侵权,请与我联系删除。
打赏
文章底部电脑广告
手机广告位-内容正文底部

相关文章

您是本站第329387名访客 今日有302篇新文章/评论