Skip to main content

Run the doctor

When something goes wrong, start with neetokb doctor. It checks your authentication, API connection, and CLI version.
When multiple workspaces are signed in, name the one to check:

Common errors

When a command fails, it prints a one-line error message.
Problem: no workspace is signed in.
Solution: run neetokb login --subdomain <name>.
Problem: more than one workspace is signed in, so the target is ambiguous.
Solution: add --subdomain <name> to the command.
Problem: the --subdomain value doesn’t match any signed-in workspace.
Solution: use one of the listed subdomains, or sign in to the new one.
Problem: a required flag was omitted.
Solution: check the command’s reference page or run neetokb <command> --help for the required flags.
Problem: the article is still a draft, so it has no public URL to share.
Solution: publish it with neetokb articles update <id> --state published, then retry the unlisted link command.
Problem: the server rejected the request (for example, a validation error).
Solution: the CLI passes through the server’s message. Check the JSON envelope (or --quiet payload) for error, errors, or notice and any suggestions from the API.

Check the version

Prints the CLI version, commit hash, and build date - useful when reporting an issue. If you are behind the latest release, upgrade with: