--profile or the BASETEN_PROFILE environment variable, or set the default with baseten auth switch. Credentials are stored in the system keyring when available, with a plaintext fallback in the config directory.
login
--web to skip prompts (suitable for non-TTY environments). Use --with-api-key to provide an API key (reads from stdin, or prompts interactively if TTY).
Browser logins name the profile after your email; API key logins require an explicit --profile name. The new profile becomes current unless --no-switch is given.
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)
Store the profile without making it the current profile
Output formatOne of:
text, json, jsonl, noneUse a specific stored profile for this command, overriding BASETEN_PROFILE and the current profile
Baseten remote URL for this profile (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 new profile name
Output
Text mode (--output text): Prints “Logged in as email (workspace) as profile profile” to stdout on success.
JSON mode (--output json): payload type cmd.AuthLoginResult.
logout
--profile to choose another. For OAuth credentials, also revokes the session.
Options
Filter JSON output with a jq expression; implies —output json (or jsonl for streamed commands)
Output formatOne of:
text, json, jsonl, noneUse a specific stored profile for this command, overriding BASETEN_PROFILE and the current profile
Enable verbose logging
Examples
Log out the current profileFilter output with --jq
Print just the logged-out profile name
Output
Text mode (--output text): Prints “Logged out profile” to stdout on success.
JSON mode (--output json): payload type cmd.AuthLogoutResult.
switch
--profile or BASETEN_PROFILE.
Options
Filter JSON output with a jq expression; implies —output json (or jsonl for streamed commands)
Output formatOne of:
text, json, jsonl, noneUse a specific stored profile for this command, overriding BASETEN_PROFILE and the current profile
Enable verbose logging
Examples
Switch to a specific profile non-interactivelyFilter output with --jq
Print just the new current profile
Output
Text mode (--output text): Prints “Switched to profile” 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, noneUse a specific stored profile for this command, overriding BASETEN_PROFILE and the current profile
Enable verbose logging
Examples
Show the current auth statusFilter output with --jq
Print just the auth type
Output
Text mode (--output text): Summary of the resolved profile: profile name, remote URL, and auth type.
JSON mode (--output json): payload type cmd.AuthStatusResult.