notion-cli by makenotion/skills
npx skills add https://github.com/makenotion/skills --skill notion-cliCLI 具备自文档功能。请始终优先运行以下命令,而非猜测语法或依赖记忆:
ntn api ls — 列出所有公共 API 端点。ntn api <路径> --help — 显示端点的可用方法、文档链接及用法。ntn api <路径> --docs — 打印端点的完整官方文档。ntn api <路径> --spec — 打印精简的 OpenAPI 片段(有助于理解请求/响应模式)。ntn <命令> --help — 获取任何命令或子命令的帮助信息。npm i -g ntn@latest
NOTION_API_TOKEN — 运行 ntn api 和 所必需。将此环境变量设置为 Notion 集成令牌。广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
ntn filesntn login / ntn logout — 用于 ntn workers 和 ntn tokens 的会话认证。目前这不用于认证 ntn api 或 ntn files。ntn api运行 ntn api --help 查看完整语法。快速摘要:
# 带查询参数的 GET 请求
ntn api v1/users page_size==100
# 带内联主体字段的 POST 请求
ntn api v1/pages parent[page_id]=abc123
# 带 JSON 主体的 POST 请求
ntn api v1/pages -d '{"parent":{"page_id":"abc123"}}'
请求方法会自动推断(默认为 GET,当存在请求体时为 POST)。可以使用 -X METHOD 来覆盖此默认行为。
ntn files围绕文件上传 API 的便捷封装。
ntn files create < image.png
ntn files create --external-url https://example.com/photo.png
ntn files list
ntn files get <上传ID>
ntn workers管理 Notion workers(部署、列出、执行等)。运行 ntn workers --help 查看子命令。
ntn workers new my-worker # 创建新项目脚手架
ntn workers deploy # 从当前目录部署
ntn workers ls # 列出 workers
ntn workers exec <能力> # 执行一个能力
ntn tokens管理 ntn workers 使用的令牌。需要先运行 ntn login。这些令牌与 NOTION_API_TOKEN 集成令牌是分开的。
ntn tokens create
ntn tokens ls
ntn tokens revoke <令牌ID>
每周安装量
227
代码仓库
GitHub 星标数
51
首次出现
8 天前
安全审计
已安装于
codex211
opencode210
gemini-cli209
kimi-cli209
cursor209
amp209
The CLI is self-documenting. Always prefer running these commands over guessing syntax or relying on memorized knowledge:
ntn api ls — list every public API endpoint.ntn api <path> --help — show methods, doc links, and usage for an endpoint.ntn api <path> --docs — print the full official docs for an endpoint.ntn api <path> --spec — print a reduced OpenAPI fragment (useful for understanding request/response schemas).ntn <command> --help — help for any command or subcommand.npm i -g ntn@latest
NOTION_API_TOKEN — required for ntn api and ntn files. Set this env var to a Notion integration token.ntn login / ntn logout — session auth for ntn workers and ntn tokens. This does not authenticate ntn api or ntn files today.ntn apiRun ntn api --help for full syntax. Quick summary:
# GET with query param
ntn api v1/users page_size==100
# POST with inline body fields
ntn api v1/pages parent[page_id]=abc123
# POST with JSON body
ntn api v1/pages -d '{"parent":{"page_id":"abc123"}}'
The method is inferred (GET by default, POST when a body is present). Override with -X METHOD.
ntn filesConvenience wrapper around the File Uploads API.
ntn files create < image.png
ntn files create --external-url https://example.com/photo.png
ntn files list
ntn files get <upload-id>
ntn workersManage Notion workers (deploy, list, execute, etc.). Run ntn workers --help for subcommands.
ntn workers new my-worker # scaffold a new project
ntn workers deploy # deploy from current directory
ntn workers ls # list workers
ntn workers exec <capability> # execute a capability
ntn tokensManage tokens used by ntn workers. Requires ntn login. These are separate from NOTION_API_TOKEN integration tokens.
ntn tokens create
ntn tokens ls
ntn tokens revoke <token-id>
Weekly Installs
227
Repository
GitHub Stars
51
First Seen
8 days ago
Security Audits
Gen Agent Trust HubPassSocketWarnSnykWarn
Installed on
codex211
opencode210
gemini-cli209
kimi-cli209
cursor209
amp209
Lark CLI IM 即时消息管理工具:机器人/用户身份操作聊天、消息、文件下载
15,600 周安装