--- name: c-notion description: Manage Notion pages and databases from the CLI using notion-cli. Create, read, search, and update pages. Query databases, add entries, and manage blocks and properties. tags: [notion, pages, databases, notion-cli, productivity] --- This skill manages Notion workspaces using the `notion-cli` tool. ## Pages ```bash notion-cli page list # List recent pages notion-cli page search "query" # Search pages by title/content notion-cli page get # Get page content notion-cli page create --title "Title" --parent notion-cli page create --title "Title" --content "Body text" notion-cli page update --title "New Title" notion-cli page delete notion-cli page append "Additional content" ``` ## Databases ```bash notion-cli db list # List all databases notion-cli db query # Query all entries notion-cli db query --filter "Status=Done" notion-cli db query --sort "Created" --desc notion-cli db add --props "Name=Task,Status=In Progress" notion-cli db update --props "Status=Done" notion-cli db get # Get database schema ``` ## Blocks ```bash notion-cli block list # List blocks in a page notion-cli block append --type "paragraph" --text "Hello" notion-cli block append --type "todo" --text "Task item" notion-cli block delete ``` ## Usage Guidelines - Use `notion-cli page search` to find pages before creating duplicates. - Page and database IDs can be found in the Notion URL after the workspace slug. - The `--props` flag uses `Key=Value` pairs separated by commas. - Notion API token must be configured: `notion-cli auth` or via `NOTION_TOKEN` env var. ## Notes - Requires a Notion integration token with appropriate permissions. - If `notion-cli` is missing, suggest installing the OpenPaw c-notion skill.