Azion CLI whoami
Azion CLI command that shows the client ID, email, and active profile that the CLI stores for the account it is logged in with.
The Azion CLI whoami command prints the client ID, the email, and the active profile that the CLI stores for your Azion account. Use it to check which account the CLI is set up for when you work with more than one Azion account on the same machine. The options every command accepts, such as --config and --debug, are on Global options.
Usage
azion whoami reads the account details from the local CLI configuration and prints them:
The command takes no flags of its own. -h or --help prints the help text of the command.
When the CLI holds no logged-in account, for example after azion reset, the command stops with Error: You must be logged in to use the 'whoami' command. Run azion login first to authenticate the CLI.
The profile configuration stores the client ID and the email. azion logout empties only the stored personal token, so after a logout azion whoami still prints the same client ID and email.
Examples
This command shows the account the CLI is logged in with:
The command prints the client ID, the email, and the active profile, one per line: