Add sealed var to the CLI
rgarrigue
PROOP

6 months ago

Using the CLI, I can't seal a var

~ railway variables -h
Show variables for active environment

Usage: railway variables [OPTIONS]

Options:
  -s, --service <SERVICE>          The service to show/set variables for
  -e, --environment <ENVIRONMENT>  The environment to show/set variables for
  -k, --kv                         Show variables in KV format
      --set <SET>                  The "{key}={value}" environment variable pair to set the service variables. Example:
      --json                       Output in JSON format
      --skip-deploys               Skip triggering deploys when setting variables
  -h, --help                       Print help (see more with '--help')
  -V, --version                    Print version

Same when creating an environment

~ railway environment new -h   
Create a new environment

Usage: railway environment new [OPTIONS] [NAME]

Arguments:
  [NAME]  The name of the environment to create

Options:
  -d, --duplicate <DUPLICATE>
          The name of the environment to duplicate [aliases: copy] [short aliases: c]
  -v, --service-variable <SERVICE> <VARIABLE>
          Variables to assign in the new environment
  -h, --help
          Print help (see more with '--help')
  -V, --version
          Print version

This would be useful for example when creating an environment for a PR branch and specifying securely a token or a password

1 Replies

Railway
BOT

6 months ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


Loading...