whoami
Tells you who you are logged in as. Use `--provenance` to debug where your credentials are being used from
Usage
Aliases
For config
command:
Description
This command will tell you the email of the user you are logged in as. You can use '--provenance' flag to see which of these sources are being used. Note that If authentication fails, this flag is set by default. If using a token, it will use the JWT's claims payload to find out your user UUID, then use the Users API on that UUID to find out your e-mail address. If no token is present, the command will fall back to using the username and password for authentication.
AUTHENTICATION ORDER ionosctl uses a layered approach for authentication, prioritizing sources in this order:
Global flags
Environment variables
Config file entries Within each layer, a token takes precedence over a username and password combination. For instance, if a token and a username/password pair are both defined in environment variables, ionosctl will prioritize the token. However, higher layers can override the use of a token from a lower layer. For example, username and password environment variables will supersede a token found in the config file.
Options
Examples
Last updated