Instances, sign-in and accounts

The robotelos commands that choose an instance, sign you in, and manage accounts and invitations: context, login, logout, whoami, account and invitation.

Use these commands before any other: they decide which instance a command talks to and who you are on it.

Instances: context

A context is a saved connection to one Robotelos instance, like a kubectl context.

CommandWhat it does
robotelos context listLists the contexts. * marks the current one.
robotelos context currentPrints the context that commands would use.
robotelos context use NAMEMakes a context current.
robotelos context set NAME --server ADDR (--token-file PATH | --token-env VAR) [--project SLUG] [--use]Adds or replaces a context.
robotelos context delete NAMERemoves a context from this machine.

The context is chosen in this order: --context NAME, then the ROBOTELOS_CONTEXT variable, then the current context. An unknown name is an error. The CLI never falls back to another instance, so a command cannot reach the wrong one.

The contexts are stored in ~/.robotelos/config, or in the file named by ROBOTELOS_CONFIG. Tokens are never written to that file. Point --token-file at a file that holds the token, or --token-env at a variable that holds it.

Signing in: login, logout, whoami

A context for the Control API names the API’s gRPC address and the OIDC issuer. robotelos login uses the OAuth 2.0 device grant: it prints an address and a code, you approve in a browser.

robotelos context set prod --api api.robotelos.example.com:443 --issuer https://auth.example.com/realms/robotelos --login --use
robotelos login
robotelos whoami
robotelos logout

Only the refresh token is kept, in the operating system’s keychain. For CI, use --token-file or --token-env with a token obtained elsewhere; login refuses such a context. Cleartext gRPC is allowed for a loopback address only.

Accounts: account, invitation

CommandWhat it does
robotelos account listAccounts you belong to
robotelos account create NAMECreates an account
robotelos account use IDSelects the active account on the instance
robotelos account members IDMembers and pending invitations
robotelos account invite ID --email E --role ROLEInvites someone; prints the invitation token once
robotelos account revoke-invite ID INVITATIONWithdraws an invitation
robotelos account conversation-token IDPrints a short-lived conversation credential only, for scripts
robotelos invitation show TOKEN / accept TOKENLooks up or accepts an invitation

Next steps