whoami - Authentication Status
The whoami command displays your current authentication identity and the method used. Authentication is checked in priority order: license key first, then OAuth token. When neither is active, you are prompted to run nmbl login.
nmbl whoami
None.
Authentication method: License Key
License key: ABCD****************************WXYZ
Authentication method: OAuth
Email: user@example.com
Expires: 2025-06-30 14:22:10 UTC
Not authenticated
Run 'nmbl login' to authenticate with OAuth or provide a license key.
0- The user is authenticated via license key or OAuth.1- The user is not authenticated, or the OAuth token has an error.
nmbl whoami
nmbl login
nmbl whoami
# Check current status
nmbl whoami
# If not authenticated, log in
nmbl login
# Verify again
nmbl whoami
nmbl logout
nmbl login
nmbl whoami
If a LicenseKey is configured (e.g., in config.json or via CLI argument), it is validated first. A masked version of the key is shown — the first 4 and last 4 characters are preserved; everything in between is replaced with asterisks.
If no valid license key is found, the stored OAuth token is checked. The command shows your email address and the UTC expiry time of the token.