notion-cli

par notion

L'interface en ligne de commande est auto-documentée. Privilégiez toujours l'exécution de ces commandes plutôt que de deviner la syntaxe ou de vous fier à des connaissances mémorisées :

npx skills add https://github.com/makenotion/skills --skill notion-cli

Notion CLI

Look things up before answering

The CLI is self-documenting. Always prefer running these commands over guessing syntax or relying on memorized knowledge:

  • ntn api ls — list every public API endpoint.
  • ntn api <path> --help — show methods, doc links, and usage for an endpoint.
  • ntn api <path> --docs — print the full official docs for an endpoint.
  • ntn api <path> --spec — print a reduced OpenAPI fragment (useful for understanding request/response schemas).
  • ntn pages get <page-id> — retrieve a page as Markdown. Use this to read page content.
  • ntn <command> --help — help for any command or subcommand.

Install

curl -fsSL https://ntn.dev | bash

Authentication

  • The CLI automatically uses NOTION_API_TOKEN when it is set.
  • Check NOTION_API_TOKEN first. If it is already set, prefer using it instead of telling the user to run ntn login.
  • ntn login / ntn logout — log the CLI in or out (only use if not using NOTION_API_TOKEN). ntn login requires the user to visit a URL in a web browser.

ntn api

Run ntn api --help for full syntax. Quick summary:

# GET with query param
ntn api v1/users page_size==100

# POST with inline body fields
ntn api v1/pages parent[page_id]=abc123

# POST with JSON body
ntn api v1/pages -d '{"parent":{"page_id":"abc123"}}'

The method is inferred (GET by default, POST when a body is present). Override with -X METHOD.

Markdown for pages and comments

Prefer ntn pages create / ntn pages update for Markdown page content. Use the markdown field when creating or updating comments via ntn api.

# Comment with markdown
ntn api v1/comments -d '{"parent":{"page_id":"abc123"},"markdown":"Here is a [link](https://example.com) and **bold text**."}'

# Page with markdown body
ntn pages create --parent page:abc123 --content '## Heading\n\nSome *formatted* content.'

The markdown field supports inline formatting (bold, italic, code, links, etc.). Only fall back to rich_text if you need features that Markdown cannot express (e.g. mentions, custom emoji, or colors).

ntn files

Convenience wrapper around the File Uploads API.

ntn files create < image.png
ntn files create --external-url https://example.com/photo.png
ntn files list
ntn files get <upload-id>

ntn workers

Manage Notion workers (deploy, list, execute, etc.). Run ntn workers --help for subcommands.

ntn workers new my-worker        # scaffold a new project
ntn workers deploy               # deploy from current directory
ntn workers ls                   # list workers
ntn workers exec <capability>    # execute a capability

Plus de skills de notion

notion-knowledge-capture
notion
Transforme les conversations et discussions en pages de documentation structurées dans Notion. Capture les idées, décisions et connaissances issues du contexte de chat, formate…
notion-meeting-intelligence
notion
Prépare les supports de réunion en rassemblant le contexte depuis Notion, en l'enrichissant avec les recherches de Claude, et en créant à la fois une pré-lecture interne et un ordre du jour externe sauvegardé…
notion-research-documentation
notion
Effectue des recherches dans votre espace de travail Notion, synthétise les résultats provenant de plusieurs pages et crée une documentation de recherche complète sauvegardée sous forme de nouvelles pages Notion.…
knowledge-capture
notion
Transformez les conversations et discussions en pages de documentation structurées dans Notion. Capture les idées, décisions et connaissances issues du contexte de chat avec…
meeting-intelligence
notion
Préparer les supports de réunion en rassemblant le contexte depuis Notion, en l'enrichissant avec des recherches, et en créant à la fois une pré-lecture interne et un ordre du jour externe sauvegardés dans Notion.
research-documentation
notion
Rechercher dans votre espace de travail Notion, synthétiser les résultats de plusieurs pages et créer une documentation de recherche complète avec des citations appropriées et…
spec-to-implementation
notion
Transforme les spécifications produit ou techniques en tâches concrètes dans Notion. Décompose les pages de spécifications en plans d'implémentation détaillés avec des tâches claires, des critères d'acceptation, et…
tasks-build
notion
Construire une tâche à partir d'une URL de page Notion. Récupère les détails de la tâche, la marque en cours, implémente le travail et met à jour le statut dans Notion.