clavis login
Sign in with a browser (device code)
clavis login [flags]Sign in with your browser. Clavis shows a short code, opens the approval page, and saves the token in the OS keychain (or in the file named by CLAVIS_CREDENTIAL_FILE). The server is remembered, so later commands don't need --server.
On a machine without a browser (SSH session, container), pass --no-browser and open the printed link on any other device.
If the server uses a self-signed certificate (CLAVIS_TLS=self-signed, common on a LAN), login shows the certificate's fingerprint and asks whether to trust it. The answer is remembered for this server, so you are asked once per computer. See clavis trust.
Examples
Sign in to your server
clavis login --server https://clavis.example.comSign in from an SSH session
clavis login --server https://clavis.example.com --no-browserFlags
--no-browser- do not open the browser automatically
Details
In CI and other automation, don't log in: set CLAVIS_TOKEN to a machine token instead. See environment variables.
Global flags
These work with every command.
--debug- enable debug logging
--env string- environment slug
--json- output machine-readable JSON
--org string- organization slug
--overlay string- tenant/region overlay slug
--path string- folder path (default /)
--project string- project slug
--server string- Clavis server URL (default: from .clavis.yaml or saved login)
-h, --help- help for any command