Command-line tools
Every command of the robotelos CLI, the chat client and the gateway, with their flags and output options.
Robotelos ships three command-line programs:
robotelosmanages instances, resources, fleets, the local stack and the database.robotelos-chatis a terminal client for talking to an instance.gatewayruns the gateway by itself, for deployments.
Build them once from the repository root:
go build -o robotelos ./runtime/cmd/robotelos
go build -o robotelos-chat ./protocol/cmd/robotelos-chat
Commands at a glance
| You want to | Command | Page |
|---|---|---|
| Choose an instance or sign in | robotelos context, login, logout, whoami | Instances, sign-in and accounts |
| Manage accounts and invitations | robotelos account, invitation | Instances, sign-in and accounts |
| Create or change agents, versions, rollouts, evaluations and environments | robotelos apply -f FILE | Resources |
| Read agents, versions, rollouts, promotions, the audit trail and fleets | robotelos get KIND [NAME] | Resources |
| Decide, withdraw or advance a release | robotelos approve, reject, cancel, advance, can-i | Resources |
| Run a complete instance on your machine | robotelos dev up, doctor, status, down | Local stack and database |
| Migrate or check the database | robotelos db migrate | Local stack and database |
| Administer fleets and runtime pools | robotelos fleet, robotelos pool | Fleets and runtime pools |
| Chat with an agent from a terminal | robotelos-chat | robotelos-chat and gateway |
| Run the gateway on its own | gateway | robotelos-chat and gateway |
Choosing the instance
Every robotelos command takes --context NAME to pick a saved connection. Without it, the ROBOTELOS_CONTEXT variable is used, then the current context. See Instances, sign-in and accounts.
Output for scripts
Add -o json to context list, db migrate status or dev status to get stable JSON for scripts and CI. The default is plain text for people.
Environment
| Variable | Used by | Meaning |
|---|---|---|
ROBOTELOS_CONTEXT | all commands | Context to use when --context is not given |
ROBOTELOS_CONFIG | context | Path of the config file (default ~/.robotelos/config) |
ROBOTELOS_DATABASE_URL | db migrate | PostgreSQL connection string |
ROBOTELOS_MIGRATIONS_DIR | db migrate | Migrations folder (default db/migrations) |
Exit codes
| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | Error, or a check that failed |
| 2 | Configuration error (gateway) |
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.