Install on a VM

openrail environment

Switch, create, sync and inspect environments.

Usage

openrail environment [NAME]
openrail environment new NAME [--duplicate ENV]
openrail environment delete NAME
openrail environment rename NAME
openrail environment sync --from ENV
openrail environment config
openrail environment edit --service-config SVC DOT.PATH VALUE [--stage]

Flags

FlagMeaning
--duplicate ENVCopy services, settings and non-sealed variables from ENV (staged)
--from ENVSource environment for sync
--stageStage the edit instead of committing it

Details

  • config prints the environment's effective configuration as JSON.
  • edit changes one setting, for example deploy.replicas, using the names in Service settings.

Examples

openrail environment new staging --duplicate production
openrail environment edit --service-config api deploy.replicas 2

Railway equivalent

railway environment works the same way through the railway alias.

Every command also accepts the global options.

View as Markdown Edit this page