Logo

Command Palette

Search for a command to run...

env-vars list

Prints environment variables (both keys and values) for your application to terminal. If environment variable keys are specified, the list will be limited to those keys. The --history option lists any recent changes to each variable.

$ cx env-vars list --stack <application name> <environment variables> [--history]

Options

ArgumentRequired?DefaultDescription
--stack, -s <application name>yesName of your application
<environment variables>yesA space separated list of environment variable keys
--historynoDisplays a list of recent changes to each variable

Examples

$ cx env-vars list -s mystack
$ cx env-vars list -s mystack RAILS_ENV
$ cx env-vars list -s mystack RAILS_ENV ANOTHER_VARIABLE --history