Global Options
Global options are flags that can be used with multiple Railway CLI commands.
Service
The --service option, shorthand -s, specifies which service to target. You can use either the service name or service ID.
Environment
The --environment option, shorthand -e, specifies which environment to target. You can use either the environment name or environment ID.
JSON output
The --json option outputs results in JSON format, useful for scripting and automation.
Skip confirmation
The --yes option, shorthand -y, skips confirmation prompts. Use this in scripts or CI/CD pipelines where interactive input isn't possible.
Help
The --help option, shorthand -h, displays help information for any command.
Version
The --version option displays the current Railway CLI version.