notion-cli

Manage NotionCamp;'s pages and blocks via the nhh command-line interface.

2|Updated Jun 2, 2024
One-click install
npx skills add https://github.com/magnusrodseth/dotfiles --skill notion-cli-magnusrodseth
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: notion-cli
Source: https://github.com/magnusrodseth/dotfiles/tree/main/.claude/skills/notion-cli
Command: npx skills add https://github.com/magnusrodseth/dotfiles --skill notion-cli-magnusrodseth

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires ntn, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill allows you to interact with Notion directly from the command line, making it easier to create, update, manage, and publish pages and files without relying on the web interface.

Core Features & Use Cases

  • Command Line Interface: Work with Notion pages, files, and blocks via the ntn CLI.
  • Page Creation and Management: Create, update, and manage Notion pages, including setting properties and statuses.
  • File Uploads: Upload files to Notion and use them in blocks.
  • Use Case: Quickly create a Notion page with a title, status, and images from the command line, or upload a document to a Notion database.

Quick Start

Use the notion-cli skill to create a new page in a specified database with a given title and status.

Frequently Asked Questions about notion-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create and manage Notion pages from the command line?

You can create and manage Notion pages from the command line by using the `ntn` CLI to perform CRUD operations on pages and blocks, allowing you to set titles and statuses without the web interface.

Can I upload files and images to Notion pages via a CLI?

Yes, you can upload files and images to Notion pages via the CLI. The skill handles file uploads and allows you to use those uploaded files in Notion blocks directly from your command line environment.

Do I need a Notion API token to manage pages using the command line?

Yes, managing Notion pages via the command line requires a valid Notion API token. The skill handles authentication through environment variables and requires appropriate permissions to access and modify your workspace.

What is the best way to automate Notion page creation and status updates?

The best way to automate Notion page creation and status updates is using a CLI tool like `ntn` to interact with the Notion API, enabling programmatic CRUD operations on pages and blocks within your automated workflows.

Does the Notion CLI support updating existing blocks and page properties?

Yes, the Notion CLI supports updating existing blocks and page properties. It interacts directly with the Notion API to read, update, and delete pages and blocks, including setting specific page statuses.