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:

  • robotelos manages instances, resources, fleets, the local stack and the database.
  • robotelos-chat is a terminal client for talking to an instance.
  • gateway runs 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 toCommandPage
Choose an instance or sign inrobotelos context, login, logout, whoamiInstances, sign-in and accounts
Manage accounts and invitationsrobotelos account, invitationInstances, sign-in and accounts
Create or change agents, versions, rollouts, evaluations and environmentsrobotelos apply -f FILEResources
Read agents, versions, rollouts, promotions, the audit trail and fleetsrobotelos get KIND [NAME]Resources
Decide, withdraw or advance a releaserobotelos approve, reject, cancel, advance, can-iResources
Run a complete instance on your machinerobotelos dev up, doctor, status, downLocal stack and database
Migrate or check the databaserobotelos db migrateLocal stack and database
Administer fleets and runtime poolsrobotelos fleet, robotelos poolFleets and runtime pools
Chat with an agent from a terminalrobotelos-chatrobotelos-chat and gateway
Run the gateway on its owngatewayrobotelos-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

VariableUsed byMeaning
ROBOTELOS_CONTEXTall commandsContext to use when --context is not given
ROBOTELOS_CONFIGcontextPath of the config file (default ~/.robotelos/config)
ROBOTELOS_DATABASE_URLdb migratePostgreSQL connection string
ROBOTELOS_MIGRATIONS_DIRdb migrateMigrations folder (default db/migrations)

Exit codes

CodeMeaning
0Success
1Error, or a check that failed
2Configuration error (gateway)