env
env
The env commands.
Environment variables belong to one application. A variable group is a set of them held once and shared by several. These commands read and change both, and move variables between a file and the platform.
Two things are worth knowing before the rest. Saving a variable does not restart
anything, so a change reaches the running application at its next deployment, which
--deploy starts for you. And a variable set on an application is a different thing
from one it receives through a group: env list shows the first, env group get
shows the second.
Commands
| Command | What It Does | Risk |
|---|---|---|
env list | List an application's environment variables. | read |
env get | Print one environment variable. | read |
env set | Set environment variables. | write |
env unset | Remove environment variables. | write |
env pull | Write an application's environment variables to a file. | read |
env push | Set an application's environment variables from a file. | write |
env run | Run a local command with an application's environment variables. | write |
env group list | List the team's shared variable groups. | read |
env group get | Show what a group holds. | read |
env group create | Create a shared variable group. | write |
env group set | Change a group's variables or settings. | write |
env group assign | Give an application a group's variables. | write |
env group unassign | Stop an application using a group. | write |
env group delete | Permanently delete a variable group. | destructive |