PgBeam
PgBeam Docs
auth

auth status

Show current authentication status

Display the credential the CLI would use (masked), where it came from (profile, flag, or environment), the authentication method, organization, and email. When the API is reachable, the credential is verified live with a cheap authenticated call; offline, the stored details are shown unverified. If not authenticated, prints a warning with instructions to log in. Also available as the pgbeam whoami alias.

Usage

pgbeam auth status

Global options

All global options (--token, --profile, --project, --org, --json, --no-color, --no-trunc, --debug) are also available on this command.

Examples

# Check who you are authenticated as
pgbeam auth status

# Same thing, using the alias
pgbeam whoami

# Get auth status as JSON for scripting
pgbeam auth status --json

Output

Displays profile name (or credential source), method, masked key, email, organization, and live verification result. With --json, returns an object with authenticated, verified, profile, source, method, key, orgId, orgName, and email fields. Exits non-zero when the credential is missing or rejected by the API.

On this page