Skip to main content

Install

If the installer says it couldn’t install the Notion CLI to /usr/local/bin, pick a directory you can write to with NTN_INSTALL_DIR:
If that directory isn’t on your 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.
After you install, restart your terminal so ntn is on your PATH.

Verify installation

Once ntn --version prints a version, run ntn login to connect your workspace. For scripts and CI, set NOTION_API_TOKEN to a personal access token.

Update

If you used the install script, run:
If you used WinGet, run:
If you used npm, run:

Shell completions

ntn completions <shell> prints a completion script to stdout. It supports bash, zsh, fish, powershell, and elvish. To load completions in bash, add this line to ~/.bashrc:
To load completions in zsh, add this line to ~/.zshrc after compinit runs:
For fish, PowerShell, or elvish, run ntn completions fish, ntn completions powershell, or ntn completions elvish. Load its output the way your shell loads other completion scripts.

Next steps

Authentication

Log in to your Notion workspace.

Workers quickstart

Create and deploy your first Notion Worker.