Skip to main content
Show the authenticated user for the active credential, fetched from the management API.

whoami

baseten whoami [OPTIONS]

Options

-q, --jq
TEXT
Filter JSON output with a jq expression; implies —output json (or jsonl for streamed commands)
-o, --output
TEXT
default:"text"
Output formatOne of: text, json, jsonl, none
--profile
TEXT
Use a specific stored profile for this command, overriding BASETEN_PROFILE and the current profile
-v, --verbose
BOOL
Enable verbose logging

Examples

Show the authenticated user
baseten whoami

Filter output with --jq

Print just the email
baseten whoami --jq '.email'

Output

Text mode (--output text): Field-per-line summary of the authenticated user: email, name, workspace, and user ID. JSON mode (--output json): payload type managementapi.UserInfo.