Cognary Tasks is an AI-first task manager that turns your spoken thoughts into organized, actionable tasks instantly. Just speak naturally, and Cognary uses AI to prioritize, structure, and manage your to-dos for you. Less effort, more focus — produc
2026-03-30
新闻来源:网淘吧
围观:10
电脑广告
手机广告
Cognary 任务管理
通过以下命令管理任务:cognary-cli tasks。请始终传递--json参数以获取可解析的输出。
安装
如果cognary-cli未安装,请先安装:

npm install -g cognary-cli
认证
必须设置COGNARY_API_KEY环境变量。如果调用因认证错误失败,请告知用户:
- 如果用户没有账户或 API 密钥,可以前往https://tasks.cognary.ai
- 注册。进入应用后,请前往设置菜单并选择"管理 API 密钥"以创建新密钥
- 然后提供该密钥以便进行配置
命令
列出任务
cognary-cli tasks list [--status active|completed|all] [--category <cat>] [--priority High|Medium|Low] [--search <query>] [--sort createdAt|updatedAt|dueDate|priority|title] [--order asc|desc] [--limit <n>] [--page <n>] [--active-only] [--completed-limit <n>] --json
默认:所有任务,按创建时间降序排列,限制20条。
添加任务
cognary-cli tasks add "<title>" [--notes "<notes>"] [--category "<cat>"] [--priority High|Medium|Low] [--due-date "<date>"] --json
获取任务
cognary-cli tasks get <id> --json
更新任务
cognary-cli tasks update <id> [--title "<title>"] [--notes "<notes>"] [--category "<cat>"] [--priority High|Medium|Low] [--due-date "<date>"] --json
完成任务
cognary-cli tasks complete <id> --json
取消完成任务(重新激活)
cognary-cli tasks uncomplete <id> --json
删除任务
cognary-cli tasks delete <id> --json
格式设置
- 列出任务时,以清晰易读的格式呈现(而非原始JSON)。
- 显示:标题、状态、优先级、类别、截止日期(如已设置)和ID。
- 显示全部时,将活动任务与已完成任务分组。
- 使用表情符号表示优先级:🔴 高、🟡 中、🟢 低。
- 确认操作(添加/完成/删除)时,请简洁明了。
文章底部电脑广告
手机广告位-内容正文底部


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