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의 다른 스킬

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