首页龙虾技能列表 › Notion CLI – Command Line Interface based access to Notion for your agent — Notion CLI — Notion命令行工具

Notion CLI – Command Line Interface based access to Notion for your agent — Notion CLI — Notion命令行工具

v1.0.0

通过CLI访问和管理您的Notion工作区,以多种输出格式搜索、创建、更新和删除页面、数据库、块、用户和评论。

2· 2,800·6 当前·6 累计·💬 1
by @froemic (FroeMic)·MIT-0
下载技能包
License
MIT-0
最后更新
2026/2/28
安全扫描
VirusTotal
无害
查看报告
OpenClaw
可疑
medium confidence
SKILL.md描述了一个合法需要Notion API密钥并从第三方GitHub仓库构建的Notion CLI,但注册表元数据省略了所需凭证,并且指令告诉您克隆/运行第三方代码——这种不匹配和从源代码构建的指导需要谨慎。
评估建议
此技能似乎是第三方Notion CLI的包装,合理地需要您的Notion集成密钥,但注册表元数据省略了该要求,并且SKILL.md指导克隆和构建GitHub仓库。在安装或运行这些命令之前:1) 验证GitHub仓库并审查其代码(npm install/build运行任意JavaScript)。2) 优先使用--api-key选项进行一次性运行,而不是将密钥永久存储在shell rc文件中,并创建具有最小权限的作用域Notion集成。3) 如果您期望技能是自包含的,询问发布者为什么注册表元数据不声明NOTION_API_KEY。4) 如果您不能或不会审查仓库,考虑使用官方Notion SDK或明确声明所需凭证和安装机制的技能。...
详细分析 ▾
用途与能力
技能名称和SKILL.md与Notion CLI一致(操作和示例与Notion API匹配)。然而,注册表元数据没有提供描述,并且即使指令明确要求NOTION_API_KEY,也不声明Notion API密钥(主凭证)。
指令范围
运行时指令专注于Notion CLI使用以及如何调用Notion API。它们不要求代理读取无关的系统文件,但它们确实建议将API密钥添加到代理或shell环境文件(例如~/.claude/.env或~/.bashrc)中,这对于功能是预期的,但是用户应该仔细考虑的范围/处理决策。
安装机制
注册表中没有自动化安装规范;SKILL.md告诉用户/代理git clone第三方GitHub仓库并运行npm install/build/link。如果自动执行,克隆和构建任意第三方代码可能有风险——GitHub是常见主机,但技能不声明它是否会自己执行此操作。
凭证需求
指令需要NOTION_API_KEY(以及可选的NOTION_DEBUG),但技能元数据未列出所需的环境变量或主凭证。这种不匹配是不一致的:技能需要秘密才能运行,但未在其要求中声明,因此用户/代理可能提前不知道凭证范围。
持久化与权限
该技能未标记为always:true,不声明要修改的配置路径,并且包中没有代码——它在注册表元数据中不请求提升的持久化或平台范围的权限。
安装前注意事项
  1. 验证GitHub仓库并审查其代码(npm install/build运行任意JavaScript)。
  2. 优先使用--api-key选项进行一次性运行,而不是将密钥永久存储在shell rc文件中,并创建具有最小权限的作用域Notion集成。
  3. 如果您期望技能是自包含的,询问发布者为什么注册表元数据不声明NOTION_API_KEY。
  4. 如果您不能或不会审查仓库,考虑使用官方Notion SDK或明确声明所需凭证和安装机制的技能。
安全有层次,运行前请审查代码。

License

MIT-0

可自由使用、修改和再分发,无需署名。

运行时依赖

无特殊依赖

版本

latestv1.0.02026/2/7

Notion API的生产级CLI,支持以多种输出格式(JSON、表格、CSV)搜索、创建和管理页面、数据库、块、用户和评论。基于 https://github.com/FroeMic/notion-cli

● 无害

安装命令 点击复制

官方npx clawhub@latest install notion-cli-agent
镜像加速npx clawhub@latest install notion-cli-agent --registry https://cn.clawhub-mirror.com

技能文档

notion-cli Interact with your Notion workspace via the notion-cli.

A production-grade CLI for the Notion API that supports searching, creating and managing pages, databases, blocks, users, and comments with multiple output formats (JSON, table, CSV).

Install Clone and install the CLI:

git clone https://github.com/FroeMic/notion-cli
cd notion-cli
npm install
npm run build
npm link
Set NOTION_API_KEY environment variable:
  • 创建 integration 在 https://www.notion.所以/个人资料/integrations
  • 复制 Internal Integration Secret (starts 带有 ntn_secret_)
  • 分享 任何 pages/databases 您 want 到 access 带有 integration
  • Recommended: 添加 到 ~/.claude/.env 对于 Claude Code
  • Alternative: 添加 到 ~/.bashrc~/.zshrc: 导出 NOTION_API_KEY="-api-键"

Optional: Set NOTION_DEBUG=true for verbose request/response logging.

Repository: https://github.com/FroeMic/notion-cli

Commands Search across your workspace:

notion search [query]                                  # Search pages, databases, and data sources
notion search [query] --filter page                    # Search only pages
notion search [query] --filter database                # Search only databases
notion search [query] --sort ascending                 # Sort by last edited time

Work with pages:

notion pages get                              # Get page details
notion pages create --parent  --title        # Create a new page
notion pages update  --properties       # Update page properties
notion pages archive                          # Archive a page
notion pages restore                          # Restore an archived page
notion pages property            # Get a specific property value

Work with databases:

notion databases get                      # Get database schema
notion databases create --parent  --title    # Create a database
notion databases update  --title    # Update database metadata
notion databases query                 # Query records in a data source
notion databases query  --filter             # Query with filters
notion databases query  --sort               # Query with sorting

Work with blocks (page content):

notion blocks get                            # Get a block
notion blocks children                       # List child blocks
notion blocks append  --content        # Append new blocks
notion blocks update  --content        # Update a block
notion blocks delete                         # Delete a block

Work with users:

notion users list                                      # List workspace members
notion users get                              # Get user details
notion users me                                        # Get the authenticated bot user

Work with comments:

notion comments list --block                 # List comments on a block
notion comments create --page  --content   # Add a comment to a page

Global options (available on all commands):

--api-key                                         # Override NOTION_API_KEY env var
-f, --format                                      # Output format: json (default), table, csv
--limit                                             # Max results to return
--cursor                                       # Pagination cursor

Key Concepts

ConceptPurposeExample
PagesIndividual Notion pagesA meeting note, a project brief
DatabasesStructured collections of pagesA task tracker, a CRM table
Data SourcesIndividual tables within a databaseA specific view/table in a database
BlocksContent elements within a pageParagraphs, headings, lists, code blocks
PropertiesTyped fields on database pagesTitle, status, date, select, relation
UsersWorkspace members and integrationsTeam members, bot integrations
CommentsDiscussion threads on pages/blocksFeedback, review notes
API Reference
  • Base URL: https://api.notion.com/v1
  • API Version: 2022-06-28
  • Auth: Authorization: Bearer $NOTION_API_KEY
  • Rate Limits: Automatic 重试 带有 exponential backoff (up 到 3 retries)

Common API Operations Search for a page:

curl -X POST https://api.notion.com/v1/search \
  -H "Authorization: Bearer $NOTION_API_KEY" \
  -H "Notion-Version: 2022-06-28" \
  -H "Content-Type: application/json" \
  -d '{"query": "Meeting Notes", "filter": {"value": "page", "property": "object"}}'

Query a database with filters:

curl -X POST https://api.notion.com/v1/databases//query \
  -H "Authorization: Bearer $NOTION_API_KEY" \
  -H "Notion-Version: 2022-06-28" \
  -H "Content-Type: application/json" \
  -d '{"filter": {"property": "Status", "status": {"equals": "In Progress"}}}'

Create a page in a database:

curl -X POST https://api.notion.com/v1/pages \
  -H "Authorization: Bearer $NOTION_API_KEY" \
  -H "Notion-Version: 2022-06-28" \
  -H "Content-Type: application/json" \
  -d '{"parent": {"database_id": ""}, "properties": {"Name": {"title": [{"text": {"content": "New Task"}}]}}}'

Append content to a page:

curl -X PATCH https://api.notion.com/v1/blocks//children \
  -H "Authorization: Bearer $NOTION_API_KEY" \
  -H "Notion-Version: 2022-06-28" \
  -H "Content-Type: application/json" \
  -d '{"children": [{"object": "block", "type": "paragraph", "paragraph": {"rich_text": [{"type": "text", "text": {"content": "Hello world"}}]}}]}'

Notes

  • integration 必须 explicitly shared 带有 每个 page 或 数据库 您 want 到 access (通过 Notion UI: ... 菜单 > Connections > 添加 integration).
  • Pages 可以 accept IDs 作为 UUIDs 或 Notion URLs — CLI 将 解析 both formats.
  • 所有 列表 endpoints support cursor-based 分页 通过 --limit--cursor.
  • 输出 格式 可以 设置 到 json (默认), , 或 csv 带有 -f 标志.
  • 属性 types include: title, rich_text, 数字, select, multi_select, status, 日期, people, files, checkbox, url, email, phone_number, relation, rollup, formula, 和 时间戳 fields.

Files 1 total

  • SKILL.md ( file)
数据来源:ClawHub ↗ · 中文优化:龙虾技能库
OpenClaw 技能定制 / 插件定制 / 私有工作流定制

免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制

了解定制服务