notion-cli

द्वारा notion

CLI स्व-दस्तावेजीकरण करने वाला है। वाक्यविन्यास का अनुमान लगाने या याद किए गए ज्ञान पर निर्भर रहने के बजाय हमेशा इन कमांड को चलाना प्राथमिकता दें:

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

notion की और Skills

database-query
notion
Notion डेटाबेस को नाम या ID से क्वेरी करें और वैकल्पिक फ़िल्टर और सॉर्टिंग के साथ संरचित, पढ़ने योग्य परिणाम लौटाएं।
official
find
notion
Notion में शीर्षक कीवर्ड द्वारा तुरंत पेज या डेटाबेस खोजें। व्यापक परिणामों के बजाय सटीक मिलान लौटाता है।
official
create-database-row
notion
निर्दिष्ट Notion डेटाबेस में प्राकृतिक-भाषा गुण मानों का उपयोग करके एक नई पंक्ति सम्मिलित करें। गुण नाम मिलान और सत्यापन को संभालता है।
official
create-page
notion
एक नया Notion पेज बनाएँ, वैकल्पिक रूप से किसी विशिष्ट पैरेंट के अंतर्गत। पेज प्रकार (मीटिंग नोट्स, प्रोजेक्ट पेज, आदि) के आधार पर स्वचालित रूप से सामग्री को संरचित करता है।
official
create-task
notion
उपयोगकर्ता के Notion कार्य डेटाबेस में नियत तिथि, स्थिति, स्वामी और परियोजना के लिए उपयुक्त डिफ़ॉल्ट मानों के साथ एक नया कार्य बनाएँ।
official
knowledge-capture
notion
बातचीत और चर्चाओं को Notion में संरचित दस्तावेज़ीकरण पृष्ठों में बदलें। चैट संदर्भ से अंतर्दृष्टि, निर्णय और ज्ञान को कैप्चर करता है...
official
meeting-intelligence
notion
Notion से संदर्भ एकत्र करके, शोध के साथ समृद्ध करके, और Notion में सहेजी गई आंतरिक पूर्व-पठन और बाहरी एजेंडा दोनों बनाकर बैठक सामग्री तैयार करें।
official
research-documentation
notion
अपने Notion वर्कस्पेस में खोजें, कई पृष्ठों से निष्कर्षों को संश्लेषित करें, और उचित उद्धरणों के साथ व्यापक शोध दस्तावेज़ीकरण बनाएं और…
official