v0.2.0
notion-cli v0.2.0
Like gh for GitHub, but for Notion. 39 commands. One binary.
Install
brew install 4ier/tap/notion-cli # macOS / Linux
go install github.com/4ier/notion-cli@latest # Go
docker run --rm -e NOTION_TOKEN ghcr.io/4ier/notion-cli search "meeting" # DockerWindows: scoop bucket add 4ier https://github.com/4ier/scoop-bucket && scoop install notion-cli
Highlights
- 39 commands covering 100% of the Notion API (pages, databases, blocks, comments, users, files)
- Human-friendly filters:
--filter 'Status=Done'instead of raw JSON - Schema-aware page creation: auto-detects property types from database schema
- Markdown I/O: read blocks as Markdown, write Markdown to Notion
- Smart output: colored tables in terminal, clean JSON when piped
- Recursive block reading:
--depth Nfor nested content - Actionable error messages: suggests fixes for common API errors
- Single static binary: zero runtime dependencies
Distribution
| Channel | Command |
|---|---|
| Homebrew | brew install 4ier/tap/notion-cli |
| Go | go install github.com/4ier/notion-cli@latest |
| Scoop | scoop install notion-cli (after adding bucket) |
| Docker | ghcr.io/4ier/notion-cli:0.2.0 |
| Binary | See assets below (Linux/macOS/Windows × amd64/arm64) |
| deb/rpm | See assets below |
