← Registry
CLI Official

Notion CLI (ntn)

Official command-line tool for developers and coding agents to authenticate, make Notion API requests, upload files, and build/deploy Notion Workers from the terminal.

Install

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

A terminal tool that authenticates with ntn login (storing credentials in the system keychain) and then makes authenticated Notion API calls, uploads files, manages data sources, and deploys Notion Workers. It supports inline JSON request construction, for example ntn api v1/pages parent[page_id]=abc123, plus ntn workers new and ntn workers deploy for the TypeScript programs that extend Notion. Use it to script Notion from the shell or from a coding agent.