»token lookup
The token lookup displays information about a token or accessor. If a TOKEN is
not provided, the locally authenticated token is used.
»Examples
Get information about the locally authenticated token (this uses the
/auth/token/lookup-self endpoint and permission):
Get information about a particular token (this uses the /auth/token/lookup
endpoint and permission):
Get information about a token via its accessor:
»Usage
The following flags are available in addition to the standard set of flags included on all commands.
»Output Options
-format(default: "table")- Print the output in the given format. Valid formats are "table", "json", or "yaml". This can also be specified via theVAULT_FORMATenvironment variable.
»Command Options
-accessor(bool: false)- Treat the argument as an accessor instead of a token. When this option is selected, the output will NOT include the token.