用途:通过命令行直接管理 Todoist 任务,无需打开网页或移动端界面。
主要能力:列出任务(todoist list),支持官方过滤语法,如 today、overdue、tomorrow、no date、p1 至 p4 优先级、@标签、#项目、assigned to: me、7 days,并可用 &、|、! 组合,例如 todoist list --filter "(today | overdue) & p1"。添加任务支持简单任务、优先级、日期、指定项目、多标签,以及自然语言快捷方式 todoist quick "Buy eggs tomorrow p1 #Shopping @errands"。修改任务可改标题、优先级和日期;完成用 todoist close,支持一次关闭多个;删除用 todoist delete;查看详情用 todoist show,另有 todoist projects、todoist labels。输出支持 --csv、--color、--namespace、--indent。
使用方式:先 brew install todoist-cli 安装,从 Todoist 集成开发者页面获取 API token,创建 ~/.config/todoist/config.json 写入 {"token": "YOUR_API_TOKEN"},然后执行 todoist sync。任务 ID 为数字,配置存于 ~/.config/todoist/config.json,缓存存于 ~/.config/todoist/cache.json。在网页或移动端修改后应运行 todoist sync。
限制:资料未说明平台支持范围、版本要求、错误处理或权限边界;分类依据其任务管理用途。