ntn is the Notion CLI. Use it to authenticate with Notion, deploy and manage Notion Workers, and make API requests — all from your terminal.
Install
- macOS and Linux
- Windows
- npm
/usr/local/bin, pick a directory you can write to with NTN_INSTALL_DIR:PATH, the installer prints the line to add to your shell startup file.To inspect the installer before you run it, view the install script.ntn is on your PATH.
Verify the installation:
Authenticate
Log in to connect the CLI to your Notion workspace:What you can do
Workers
Deploy, manage, and debug Notion Workers.
API requests
Make Notion API requests directly from the terminal.
Data sources
Create, query, and manage data sources from the terminal.
File uploads
Upload static assets like images and PDFs to Notion.
Manage Notion Workers
Create, deploy, and operate Workers — small TypeScript programs that extend Notion with syncs, tools, and webhooks:Make API requests
Make authenticated requests to the Notion API with inline JSON construction and shell completion:Upload files
Upload static assets like images and PDFs to reference from Notion pages:Next steps
Installation
Alternative install methods and shell completions.
Authentication
Manage login sessions and credentials.
Command reference
Full reference for every ntn command.
Notion Workers quickstart
Create and deploy your first Notion Worker.