--profile or the BASETEN_PROFILE environment variable, or set the default with baseten auth switch. To require a profile on every command instead of using a current profile, run baseten auth config update --require-explicit-profile. 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 you pass --no-switch or turn on explicit profile selection.
Options
Name to store the new profile under. This flag names a new profile; it doesn’t select an existing one.
Baseten remote URL for this profile (default https://app.baseten.co)
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. Logout prompts for a profile in a terminal when explicit profile selection is on. For OAuth credentials, also revokes the session.
Options
Use a specific stored profile for this command, overriding BASETEN_PROFILE and the current profile
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. This command isn’t available with explicit profile selection on.
Options
Use a specific stored profile for this command, overriding BASETEN_PROFILE and the current profile
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
Use a specific stored profile for this command, overriding BASETEN_PROFILE and the current profile
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.
list
Options
Use a specific stored profile for this command, overriding BASETEN_PROFILE and the current profile
Examples
List all stored profilesFilter output with --jq
Print just the profile names
Output
Text mode (--output text): Table with columns: current marker (*), PROFILE, REMOTE (only when a profile uses a remote other than https://app.baseten.co), AUTH TYPE. When no profiles exist, prints “No profiles found.” to stderr.
JSON mode (--output json): payload type cmd.AuthListResult.
config
describe
Options
Use a specific stored profile for this command, overriding BASETEN_PROFILE and the current profile
Examples
Show auth settings:Filter output with --jq
Print whether explicit profile selection is on:
Output
Text mode (--output text): Each setting and its value.
JSON mode (--output json): Returns the auth settings, including require_explicit_profile.
update
--require-explicit-profile, every command must select a profile with --profile, BASETEN_PROFILE, or BASETEN_API_KEY. Without one, the command prompts for a profile in a terminal and fails elsewhere. Turning the setting on clears the current profile.
Options
Use a specific stored profile for this command, overriding BASETEN_PROFILE and the current profile
Examples
Require an explicit profile on every command:Filter output with --jq
Print whether explicit profile selection is on:
Output
Text mode (--output text): Each setting and its updated value.
JSON mode (--output json): Returns the updated auth settings, including require_explicit_profile.