Run the doctor
When something goes wrong, start withneetoauth doctor. It checks your authentication, API connection, and CLI version.
Common errors
When a command fails, it prints an error message to standard error and exits with status 1. Usage errors such as an unknown flag or a missing argument addRun 'neetoauth --help' for usage.
Not authenticated. Run 'neetoauth login' to authenticate.
Not authenticated. Run 'neetoauth login' to authenticate.
Solution: run
neetoauth login --subdomain <name>.Multiple subdomains authenticated (acme, beta); specify --subdomain.
Multiple subdomains authenticated (acme, beta); specify --subdomain.
Solution: add
--subdomain <name> to the command. For logout, --all signs out of every workspace.Not authenticated for "foo". Authenticated subdomains: acme, beta.
Not authenticated for "foo". Authenticated subdomains: acme, beta.
--subdomain value does not match any signed-in workspace. Solution: use one of the listed subdomains, or sign in to the new one.
Subdomain not found. Please check that you entered the correct subdomain.
Subdomain not found. Please check that you entered the correct subdomain.
neetoauth login could not find a workspace at <subdomain>.neetoauth.com. Solution: use the first part of your workspace URL. For
https://spinkart.neetoauth.com, enter spinkart.Authentication session expired. Please try again.
Authentication session expired. Please try again.
NeetoAuth CLI authentication timed out after 5 minutes. Please try again. means the CLI stopped waiting. Solution: run
neetoauth login again and approve the sign-in in the browser. If the browser does not open, visit the URL the CLI prints.Could not connect to NeetoAuth. Check your internet connection
Could not connect to NeetoAuth. Check your internet connection
Solution: check your network and run
neetoauth doctor. If NEETOAUTH_BASE_URL is set, confirm it points at a reachable server.required flag(s) "xxx" not set
required flag(s) "xxx" not set
Solution: check the command’s reference page or run
neetoauth <command> --help for the required flags. For commands that accept --json-file, a key in the file satisfies the matching flag.Could not read file <path> / Invalid JSON in <path>
Could not read file <path> / Invalid JSON in <path>
--json-file path does not exist, is not readable, or does not contain a JSON object. Solution: check the path and validate the file, for example with
jq . <path>.--email is required.
--email is required.
users create ran without an email address. Solution: pass
--email <address>, or supply it in the file given to --json-file.--role is required (e.g. owner, non_owner).
--role is required (e.g. owner, non_owner).
users create ran without an organization role. Solution: pass
--role owner or --role non_owner. This is the organization-level role, not a product role.Invalid --app value "Cal" (expected name:role).
Invalid --app value "Cal" (expected name:role).
--app value is missing the role half. Solution: write it as
name:role, for example --app Cal:Admin. Run neetoauth products list to see the valid pairs.Product "Foo" not found. Run "neetoauth products list" to see available products.
Product "Foo" not found. Run "neetoauth products list" to see available products.
products enable or products disable was given a name that is not a product in the workspace. Solution: use the
name shown by neetoauth products list. Names are matched without regard to case.API error (422): <message>
API error (422): <message>
API error (<status>): <message>, one line per additional error, and a Suggestion: line for common statuses: 401 (sign in again), 403 (no permission), 404 (check the ID), 422 (check required fields with --help), and 429 (rate limited, wait and retry). Solution: follow the suggestion. For 401, run
neetoauth login to refresh the session. A 422 usually means the person is already an active member, an --app product or role is not offered in the workspace, or the removal would leave the workspace without an owner.Claude Code not found (~/.claude/ does not exist).
Claude Code not found (~/.claude/ does not exist).
neetoauth setup claude requires Claude Code to have been run at least once. Solution: install and open Claude Code, then run the command again.
Permission errors
The CLI acts as the person who signed in, so commands are checked against your own permissions. A command you are not allowed to run fails withAPI error (403) and the suggestion You do not have permission to perform this action. Ask a workspace owner to grant you the permission, or use an API key against the REST API instead. Enabling or disabling products needs permission to manage workspace settings.
Check the version
neetoauth update.