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.

Notion personal access token (PAT) bearer discovered Get token ↗
env NOTION_API_TOKEN

Open the Developer portal, create a personal access token, choose its workspace and capabilities, then copy the token secret. PATs are user-scoped and use the creator’s page permissions. For CLI unattended use, export it as NOTION_API_TOKEN.