RailwayDocs

railway variable

Manage environment variables for a service.

Usage

Aliases

  • railway variables
  • railway vars
  • railway var

Subcommands

SubcommandAliasesDescription
listlsList variables for a service
setSet a variable
deleterm, removeDelete a variable

Examples

List variables

List in key-value format

Output:

Set a variable

Set multiple variables

Set variable from stdin

Delete a variable

Options for

FlagDescription
-s, --service <SERVICE>Service to list variables for
-e, --environment <ENV>Environment to list variables from
-k, --kvShow variables in KEY=VALUE format
--jsonOutput in JSON format

Options for

FlagDescription
-s, --service <SERVICE>Service to set the variable for
-e, --environment <ENV>Environment to set the variable in
--stdinRead value from stdin (use with single KEY)
--skip-deploysSkip triggering deploys
--jsonOutput in JSON format

Options for

FlagDescription
-s, --service <SERVICE>Service to delete the variable from
-e, --environment <ENV>Environment to delete the variable from
--jsonOutput in JSON format

Legacy flags

The following flags are deprecated but still supported: