Skip to content

reoclo profile

A profile holds one signed-in account: its API URL, its tokens, and the account’s email. Profiles let you switch between accounts or environments, such as staging and production. A profile has no default organization: every command takes its organization from --org, $REOCLO_ORG, or a .reoclo file.

reoclo profile ls
reoclo profile current
reoclo profile use <name>
reoclo profile rm <name>

Lists every configured profile, active one first, marked with *. The AUTH column says which credential the profile holds. An oauth (expired) profile still works: the next command refreshes the token for you.

Terminal window
$ reoclo profile ls
PROFILE EMAIL AUTH API
* default [email protected] oauth https://api.reoclo.com
staging [email protected] oauth (expired) https://api.reoclo.dev
ci [email protected] automation key https://api.reoclo.com

ls also answers to list. Pass -o json for one JSON object on each line.

Shows the profile this invocation resolves to, after the CLI applies --profile and $REOCLO_PROFILE. Use it to confirm which account and API a command is about to use.

Terminal window
$ reoclo --profile staging profile current
profile staging
auth oauth
api https://api.reoclo.dev
streams (derived from api)

Sets the active profile. All subsequent commands use this profile unless overridden by the --profile flag (where supported) or the REOCLO_PROFILE environment variable.

Terminal window
reoclo profile use staging

Removes the profile and any stored token. Cannot remove the only remaining profile if you have one active.

Terminal window
reoclo profile rm staging

Profile metadata is stored in ~/.config/reoclo/config.json (or the platform-equivalent XDG config dir). Tokens are stored separately in the OS keyring. See reoclo keyring status for details.

Set up two environments and toggle between them:

Terminal window
reoclo login --profile staging --api https://api.staging.reoclo.com
reoclo login --profile prod --api https://api.reoclo.com
reoclo profile use staging
reoclo servers ls # against staging
reoclo profile use prod
reoclo servers ls # against prod

Run a one-off command against a non-active profile (where supported):

Terminal window
reoclo mcp --profile staging