Sign in
https://<subdomain>.neetodesk.com in your browser and waits while you sign in. Once the
browser confirms, the CLI prints the account it authenticated as:
Where credentials are stored
Credentials are written to~/.config/neetodesk/auth.json, one entry per workspace, each
holding the subdomain, your email address and a session token. Treat the file the way you would
treat any other saved session and do not commit it.
Several workspaces at once
Signing in to a second workspace adds to the file rather than replacing what is there. When more than one workspace is signed in, pick between them with--subdomain:
neetodesk whoami lists every workspace you are currently signed in to.
Sign out
neetodesk logout with several workspaces signed in and no flag reports which
subdomains are authenticated and stops rather than guessing.
What the CLI can reach
The CLI acts as the person who signed in, so it sees what that person’s role allows. An agent restricted to their own tickets gets atickets list narrowed to those tickets. This is the same
boundary the MCP server applies to an OAuth connection, and it is the
difference between the two credentials NeetoDesk accepts:
Pointing at another environment
NEETODESK_BASE_URL overrides the URL the CLI derives from your subdomain. It is meant for
local and staging work: