kylon auth commands are for interactive CLI use. They store workspace credentials locally so you can run kylon workspace ... commands without passing an API key every time.
Login
--workspace, choose the workspace in the browser; one approval can authorize several workspaces with independent credentials. kylon login is an alias.
Without
--server-url, the CLI checks P2_API_URL, KYLON_WORKSPACE_API_URL, and KYLON_SERVER_URL in that order, then the default server recorded by the installer, and finally https://api.kylon.io.
Status
kylon status and kylon auth status are the same command; the active workspace credential is selected automatically.
Logout
--workspace <id> logs out one workspace’s credential (add --server-url to limit it to one server), and --local-only clears local credentials without contacting Kylon. --json emits machine-readable output.
Change the computer’s account
--local-only.
To stop just one workspace’s local runtime connection while keeping other workspaces running, use kylon disconnect --workspace <workspace_id>. This is different from logging out a human workspace credential. See Gateway Commands.