auth
sign in to Coder and manage saved server sessions
auth login [--server <server>] [--workspace <workspace>] [--yes] [--device] [--json]
sign in through the browser
Sign in with Wular Auth in your browser. The CLI keeps the tokens in ~/.coder/session.json, and commands that talk to a server then act as you.
--server <server>act on the Coder server--workspace <workspace>with --server: the workspace to act in (default: the saved one)--yeswith --server: connect to a server used for the first time without asking--deviceshow a code to approve on another device; the default without a local browser--jsonJSON output
Environment:
CODER_SERVERthe server to use instead of https://coder.wular.ai
coder auth login # sign in to the hosted service
coder auth login --server https://agents.example.com # sign in to a self-hosted server
auth logout [--server <server>] [--yes] [--json]
sign out and forget the saved session
Revoke the saved session for that server at Wular Auth and forget its tokens.
--server <server>sign out of this Coder server (default: the hosted one)--yesconnect to a server used for the first time without asking--jsonJSON output
auth status [--json]
show where you are signed in
List saved sessions with their server, user, and workspace.
--jsonJSON output
Environment:
CODER_SERVERthe server to use instead of https://coder.wular.ai