N

notion-cli

by @makenotionv1.0.0
4.1(11)

提供 Notion API 的命令行接口,支持数据库查询、页面操作和内容管理,无需离开终端

productivity-toolstask-managementknowledge-managementgoogle-workspaceGitHub
安装方式
npx skills add makenotion/skills --skill notion-cli
compare_arrows

Before / After 效果对比

1
使用前

在浏览器中手动操作 Notion 界面,点击进入数据库、筛选记录、复制内容到本地工具,批量操作需要重复繁琐的点击流程,处理 100 条记录需要 30 分钟以上,容易出错和遗漏

使用后

直接在终端使用命令行工具查询 Notion 数据库,支持复杂筛选、批量更新和自动化脚本,处理 100 条记录仅需 2 分钟,可与其他工具链集成,实现无人值守的自动化工作流

description SKILL.md

notion-cli

Notion CLI

Look things up before answering

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.

Install

npm i -g ntn@latest

Authentication

  • 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 api

Run 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 files

Convenience 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 workers

Manage 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 tokens

Manage 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 Installs279Repositorymakenotion/skillsGitHub Stars56First Seen10 days agoSecurity AuditsGen Agent Trust HubPassSocketWarnSnykWarnInstalled oncodex260opencode259gemini-cli258kimi-cli258cursor258amp258

forum用户评价 (0)

发表评价

效果
易用性
文档
兼容性

暂无评价,来写第一条吧

统计数据

安装量246
评分4.1 / 5.0
版本1.0.0
更新日期2026年3月28日
对比案例1 组

用户评分

4.1(11)
5
0%
4
0%
3
0%
2
0%
1
0%

为此 Skill 评分

0.0

兼容平台

🔧Claude Code

时间线

创建2026年3月28日
最后更新2026年3月28日