Instances, sign-in and accounts
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.
| Command | What it does |
|---|---|
robotelos context list | Lists the contexts. * marks the current one. |
robotelos context current | Prints the context that commands would use. |
robotelos context use NAME | Makes 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 NAME | Removes 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
| Command | What it does |
|---|---|
robotelos account list | Accounts you belong to |
robotelos account create NAME | Creates an account |
robotelos account use ID | Selects the active account on the instance |
robotelos account members ID | Members and pending invitations |
robotelos account invite ID --email E --role ROLE | Invites someone; prints the invitation token once |
robotelos account revoke-invite ID INVITATION | Withdraws an invitation |
robotelos account conversation-token ID | Prints a short-lived conversation credential only, for scripts |
robotelos invitation show TOKEN / accept TOKEN | Looks up or accepts an invitation |
Next steps
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.