mirror of
https://github.com/4ier/notion-cli.git
synced 2026-09-14 20:17:00 +08:00
c66e1d34bb
30 commands covering the entire Notion API: - auth: login, status, logout - search: full-text search with type filter - page: view, list, create, delete, move, open, set, props - db: list, view, query (filter/sort), create, update, add, open - block: list, get, append, update, delete - comment: list, add - user: me, list, get - file: list, upload - api: raw escape hatch for any endpoint Features: - Auto-detect TTY: pretty tables in terminal, JSON when piped - Full Notion IDs in all output (no truncation) - URL-to-ID resolution (accepts notion.so URLs everywhere) - Filter syntax for db query: Status=Done, Date>=2026-01-01, Name~=keyword - Sort syntax: Date:desc, Name:asc - Property type auto-detection from schema - Debug mode (--debug) for API troubleshooting - Shell completion via cobra 3,239 lines of Go. Single binary. Zero dependencies at runtime.