Skip to main content
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

Verify the installation:
See Installation for more installation options.

Authenticate

Log in to connect the CLI to your Notion workspace:
This opens a browser window where you authorize access. Your credentials are stored securely in your system’s keychain. See Authentication for more details.

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:
See the Workers guide to get started.

Make API requests

Make authenticated requests to the Notion API with inline JSON construction and shell completion:
See the API requests guide for the full inline syntax reference.

Upload files

Upload static assets like images and PDFs to reference from Notion pages:
See the file uploads guide for details.

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.