N

Notion CLI

CLI discovered

Details
Command
ntn
Docs
https://developers.notion.com/cli/get-started/overview
Authentication
Notion CLI login session oauth2 discovered $ ntn login

Acquired by the CLI — running ntn login opens the auth flow and stores the credential.

Personal access token bearer discovered Get token ↗
env NOTION_API_TOKEN

In the Developer portal, create a personal access token, choose its workspace and capabilities (Notion API and/or Workers), then copy the token. Workspace admins can control PAT creation from Settings & members → Connections. For CLI use, export it as NOTION_API_TOKEN.