Log in, log out, and manage Baseten credentials. Credentials are stored in the system keyring when available, with a plaintext fallback in the config directory.Documentation Index
Fetch the complete documentation index at: https://docs.baseten.co/llms.txt
Use this file to discover all available pages before exploring further.
login
Options
Store credentials in plain text instead of system keyring
Filter JSON output with a jq expression; implies —output json (or jsonl for streamed commands)
Label for the API key credential
Output formatOne of:
text, json, jsonl, noneBaseten remote URL, overrides BASETEN_REMOTE_URL (default https://app.baseten.co)
Use browser login without interactive prompts
Read API key from stdin
Enable verbose logging
Examples
Browser-based login (OAuth device flow)Filter output with --jq
Print just the logged-in user’s email
Output
Text mode (--output text): Prints “Logged in as email (workspace)” to stdout on success.
JSON mode (--output json): payload type cmd.AuthLoginResult.
logout
Options
Filter JSON output with a jq expression; implies —output json (or jsonl for streamed commands)
Output formatOne of:
text, json, jsonl, noneBaseten remote URL, overrides BASETEN_REMOTE_URL (default https://app.baseten.co)
Enable verbose logging
Examples
Log out the active userFilter output with --jq
Print just the logged-out user label
Output
Text mode (--output text): Prints “Logged out user” to stdout on success.
JSON mode (--output json): payload type cmd.AuthLogoutResult.
switch
Options
Filter JSON output with a jq expression; implies —output json (or jsonl for streamed commands)
Output formatOne of:
text, json, jsonl, noneBaseten remote URL, overrides BASETEN_REMOTE_URL (default https://app.baseten.co)
User to switch to
Enable verbose logging
Examples
Switch to a specific account non-interactivelyFilter output with --jq
Print just the newly active user
Output
Text mode (--output text): Prints “Switched to user” to stdout on success.
JSON mode (--output json): payload type cmd.AuthSwitchResult.
status
Options
Filter JSON output with a jq expression; implies —output json (or jsonl for streamed commands)
Output formatOne of:
text, json, jsonl, noneBaseten remote URL, overrides BASETEN_REMOTE_URL (default https://app.baseten.co)
Enable verbose logging
Examples
Show the current auth statusFilter output with --jq
Print just the auth type
Output
Text mode (--output text): Three-line summary: host URL, “Logged in as user”, “Auth type: type”.
JSON mode (--output json): payload type cmd.AuthStatusResult.