notion
星标2
分支0
更新时间2026年4月8日 16:46
Notion API CLI for AI agents — search, page, db, block, comment, user operations with JSON output
安装
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
SKILL.md
readonly菜单
Notion API CLI for AI agents — search, page, db, block, comment, user operations with JSON output
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
| name | notion |
| description | Notion API CLI for AI agents — search, page, db, block, comment, user operations with JSON output |
| version | 0.1.0 |
| triggers | ["notion","notion api","notion search","notion page","notion database","notion block"] |
Notion API CLI that outputs JSON. Built for AI agents.
pip install git+https://github.com/tellang/notion-cli.git
export NOTION_TOKEN=ntn_...
notion search "keyword" --type db --limit 5 --fields "id,title"
notion page get <id> --props "Name,Score" --fields "id,Name,Score"
notion page create --title "Title" --parent-db <id> --body "text" --dry-run
notion page update <id> --props-json '{"Status": {"select": {"name": "Done"}}}' --dry-run
notion db schema <id>
notion db query <id> --filter '{"property":"Status","select":{"equals":"Done"}}' --sort "Date:descending" --limit 10 --fields "id,Name,Date"
notion block list <page-id> --limit 20 --fields "id,type,text"
notion block get <block-id>
notion block append <page-id> --body "new paragraph" --dry-run
notion block delete <block-id> --dry-run
notion comment list <page-id> --limit 10
notion comment create --page-id <id> --body "comment text" --dry-run
notion user list
notion user me
notion schema # list all commands
notion schema "page create" # show parameters for specific command
--fields "id,Name,Score")notion schema to discover parameters instead of guessing{"error": {"code": "...", "message": "..."}}notion search for db query and db schema--props filters Notion properties, --fields filters output JSON keys