reoclo whoami
reoclo whoamireoclo whoami calls /auth/me with the token of the active profile. It prints the account the token belongs to and the number of organizations the account can reach.
The command prints these fields:
organization: the organization bound to the current directory. The command prints this line only when a.reoclofile binds the directory to an organization. Seereoclo init.user: the email address on the account.api: the API endpoint the active profile uses.type: the credential type.useris an OAuth login.automationis an automation key.organizations: the number of organizations the token can reach. To list them, runreoclo org ls.
Examples
Section titled “Examples”In a directory bound to an organization, the command prints the organization line:
$ reoclo whoamiorganization: acmeapi: https://api.reoclo.comtype: user
organizations: 3Outside a bound directory, the command omits the organization line:
$ reoclo whoamiapi: https://api.reoclo.comtype: user
organizations: 3Exit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
| 0 | Authenticated. |
| 3 | The token is not authenticated, or /auth/me rejected it. |
Related
Section titled “Related”reoclo login: authenticatereoclo init: bind a directory to an organizationreoclo profile: switch between identities