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.
Subcommands
Section titled “Subcommands”reoclo profile lsreoclo profile currentreoclo 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.
$ reoclo profile ls PROFILE EMAIL AUTH API* default [email protected] oauth https://api.reoclo.comls also answers to list. Pass -o json for one JSON object on each line.
current
Section titled “current”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.
$ reoclo --profile staging profile currentprofile stagingauth oauthapi https://api.reoclo.devstreams (derived from api)use <name>
Section titled “use <name>”Sets the active profile. All subsequent commands use this profile unless overridden by the --profile flag (where supported) or the REOCLO_PROFILE environment variable.
reoclo profile use stagingrm <name>
Section titled “rm <name>”Removes the profile and any stored token. Cannot remove the only remaining profile if you have one active.
reoclo profile rm stagingWhere profiles live
Section titled “Where profiles live”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.
Examples
Section titled “Examples”Set up two environments and toggle between them:
reoclo login --profile staging --api https://api.staging.reoclo.comreoclo login --profile prod --api https://api.reoclo.comreoclo profile use staging
reoclo servers ls # against stagingreoclo profile use prodreoclo servers ls # against prodRun a one-off command against a non-active profile (where supported):
reoclo mcp --profile stagingRelated
Section titled “Related”reoclo login: create a profilereoclo logout: end the session and remove the profile’s credentialsreoclo keyring: manage where tokens are stored