Skip to content

reoclo whoami

reoclo whoami

reoclo 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 .reoclo file binds the directory to an organization. See reoclo init.
  • user: the email address on the account.
  • api: the API endpoint the active profile uses.
  • type: the credential type. user is an OAuth login. automation is an automation key.
  • organizations: the number of organizations the token can reach. To list them, run reoclo org ls.

In a directory bound to an organization, the command prints the organization line:

Terminal window
$ reoclo whoami
organization: acme
api: https://api.reoclo.com
type: user
organizations: 3

Outside a bound directory, the command omits the organization line:

Terminal window
$ reoclo whoami
api: https://api.reoclo.com
type: user
organizations: 3
CodeMeaning
0Authenticated.
3The token is not authenticated, or /auth/me rejected it.