notion-cli

分类: 开发与编程 | 上传者: 4ier4ier | 下载: 0 | 版本: v1.0(最新)

使用“notion”CLI 从终端使用 Notion。当用户需要以编程方式读取、创建、更新、查询或管理 Notion 页面、数据库、块、注释、用户或文件时使用。用 44 个命令涵盖了整个 Notion API。触发器:Notion 工作区自动化、数据库查询、页面创建、块操作、注释线程、文件上传、关系管理、数据库导出、多工作区管理或来自命令行的任何 Notion API 交互。 --- # Notion CLI `notion` 是 Notion API 的 CLI。单 Go 二进制文件、完整的 API 覆盖、双输出(人类的漂亮表格,代理的 JSON)。 ## 安装 ```bash # Homebrew brew install 4ier/tap/notion-cli # Go go install github.com/4ier/notion-cli@latest # npm npm install -g notion-cli-go # 或者从 GitHub Releases 下载二进制文件 # https://github.com/4ier/notion-cli/releases ``` ## Auth ```bash notion auth login --with-token <<< "ntn_xxxxxxxxxxxxx" # 或者交互式概念 auth login --with-token --profile work <<< "ntn_xxx" # 保存为命名配置文件 export NOTION_TOKEN=ntn_xxxxxxxxxxxxx # env var 替代 notion auth status # 显示当前配置文件 notion auth switch # 交互式配置文件选择器 notion auth switch work # 切换到命名配置文件 notion auth doctor # 健康检查 ``` ## 命令参考 ### 搜索 ```bash notion search "query" # 搜索所有内容 notion search "query" --type page # 仅页面概念搜索 "query" --type database # 仅数据库 ``` ### Pages ```bash 概念页面视图 <id|url> # 渲染页面续 ent 概念页面列表 # 列出工作区页面 概念页面 create <parent> --title "X" --body "content" 概念页面 create <db-id> --db "Name=Review" "Status=Todo" # 数据库行概念页面 delete <id>

更新日志: Source: GitHub https://github.com/4ier/notion-cli

目录结构

当前层级: tree/main/skills/notion-cli/

  • 📄 SKILL.md 6.3 KB

SKILL.md

登录后下载/点赞/收藏 ❤ 146 | ★ 0
评论 0

请先登录后评论。

评论加载中...