How to check which API key the CLI is using (clearrun whoami)
Run clearrun whoami. It prints the key masked to its first and last four characters, and where the CLI found it.
Last updated
Steps
Run whoami
clearrun whoamiRead the Source line
--api-key: the flag you passed.CLEARRUN_API_KEY: the environment variable.- A file path: the file saved by
clearrun login. clearrun.config.json: the project config file.
If no key is found
It prints "No ClearRun API key is configured..." and exits 1. Run clearrun login, or set CLEARRUN_API_KEY.
What whoami does not do
It does not contact ClearRun. It does not tell you if the key works, which plan it is on, or how many credits are left. To see credits, open Account settings.