Documents & filesNotion

Notion CLI troubleshooting

Fix a missing profile, a settings file that does not read or a refused write in the Notion CLI.

Get a command that failed working again, most often in one step. Find the symptom or the code from the error in the table, do what its row says, then run the command again. Keep the error code and the profile name for a support request.

SymptomWhat to do
Not sure what is set upRun notion doctor. It reads no keyring and uses no network.
notion is not foundOpen a new terminal, and check that npm's global folder is on PATH.
"name a profile"Put the profile first, as in notion personal config show, or set WCNOTION_PROFILE.
The settings file does not readdoctor lists every problem in the file under config.issues. Run the config unset each one gives, or fix the file by hand.
doctor lists files.problemsOther users of the computer can read config.json or enter its folder. Run each chmod that doctor prints after "to make it private:". doctor never changes a file mode itself.
doctor says a profile reads no user information or no email addresses, or sync names notion.no-user-information or notion.no-user-emailTurn on "Read user information including email addresses" in the Notion connection's capabilities, then sync. Until then a page's author and editor are kept by Notion id, and only identities link joins them to a person.
notion.not-shared, or Notion has no such page or databaseThe page or database is not shared with your connection, or the id is wrong. In Notion, open the page, choose ••• → Connections, and add your connection. Then run the command again.
A page reads, but the answer lists notion.not-sharedA part of the page, such as a linked database, is not shared with your connection, so it was left out. Share that part as above.
notion.restrictedNotion says the token may not do this. Check the connection's capabilities in Notion: reading needs Read content, a change needs Update content or Insert content.
A write is refusedThe profile's permissions or WCNOTION_READ_ONLY stop it; see settings.

Never paste a token, a password or private content into a support request.