Skip to content

bnerd whoami

Show the account associated with the currently configured authentication token.

bnerd whoami

This is the standard "is my auth working?" check — handy after bnerd login, after switching tokens, or when a command unexpectedly fails with an auth error.

Output

By default, prints a detail view of your account:

Account: Jane Doe
ID:       acct_01HX…
Email:    jane@example.com
Status:   active
Language: en
Created:  2025-09-12 10:14:22
Updated:  2026-04-12 08:55:01

Output formats

Like every read command, whoami honours the global -o / --output flag:

bnerd whoami -o json
bnerd whoami -o yaml

Authentication

whoami uses only the token from ~/.bnerd.yaml / BNERD_TOKEN / --token. It does not require an org-id or project-id, which makes it useful for verifying the token in isolation.

If whoami fails:

  • authentication token required — no token configured. Run bnerd login or set BNERD_TOKEN.
  • 401 Unauthorized — token is wrong, expired, or revoked. Re-run bnerd login.
  • connection refused / network errors — check api-url in ~/.bnerd.yaml.

See also