Skip to Content
CLI & APICommand reference

stackblaze whoami

Show the authenticated user and organization

Usage: stackblaze whoami [options]

Show the authenticated user and organization

Options:
  --api-url <url>        StackBlaze API base URL (env STACKBLAZE_API_URL)
  --token <token>        API token, sb_pat_... (env STACKBLAZE_TOKEN)
  -p, --project <name>   Project name
  -e, --env <name>       Environment name (default: production)
  -a, --app <name>       App name
  --json                 Output JSON (same as -o json) (default: false)
  -o, --output <format>  Output format: text or json (choices: "text", "json")
  -h, --help             Print help

Example

Check which account and API the CLI is signed in to, and whether Infrastructure as Code is on for a project:

stackblaze whoami -p github-demo-gv35
OK Authenticated against https://api-dev.stackblaze.cloud
email:     <email>
username:  <email>
projects:  13
iac:       disabled (cmw5858w5002xvk010f9zs5w8)

On this page