Sign in
--subdomain, the CLI prompts for it.
Where credentials are stored
Credentials for every signed-in workspace live in a single file:neetodesk logout --all.
Check who you are
(default). Pass --subdomain <name> to show just one.
Sign out
Working with multiple workspaces
You can sign in to several subdomains at once. To add another workspace, name its subdomain:--subdomain. If you omit it, the CLI errors and lists the signed-in workspaces.
--subdomain stays optional.
Environment variables
NEETODESK_BASE_URL overrides the server the CLI talks to. By default every command, including login, uses https://<subdomain>.neetodesk.com. Set the variable to point the CLI at a staging or local server. Every request, including the session token saved in ~/.config/neetodesk/auth.json, goes to that server, so only point it at a server you trust:
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. The MCP server applies the same boundary to an OAuth connection. An API key reaches the whole workspace instead.
Troubleshooting
If sign-in or connection problems come up, runneetodesk doctor first. See Troubleshooting for common issues and fixes.