atmos auth whoami
Display the current authentication context, including the effective identity and associated credentials. Useful for verifying which account is active and troubleshooting identity or session issues.
Usage​
atmos auth whoami [--identity <name>] [--output json]
Examples​
# Show current identity (human-friendly)
atmos auth whoami
# Show a specific identity
atmos auth whoami --identity dev-admin
# JSON output (redacts home directory from paths)
atmos auth whoami --output json
Arguments​
- n/a
- No positional arguments.
Flags​
--identity
(alias-i
)- Specify the target identity to inspect. If omitted, the default identity is used.
--output
(alias-o
)- Output format. Supported:
json
. Default is human-readable.
Environment variables​
ATMOS_IDENTITY
- Default identity when
--identity
is not provided. ATMOS_AUTH_WHOAMI_OUTPUT
- Set to
json
for JSON output by default.