cli
env
List, set, get, and delete environment variables for your services.
runix env#
Manage environment variables for a deployed service. Variables are encrypted at rest and injected into the container at runtime.
env list#
Show all environment variables for a service. Secret values are masked.
bash
$ runix env list backend
PORT = 3000
NODE_ENV = production
DATABASE_URL = ********env set#
Set or update an environment variable. Use the KEY=VALUE format.
bash
$ runix env set backend LOG_LEVEL=debug
✓ Set LOG_LEVEL = debugenv get#
Get the value of a single environment variable.
bash
$ runix env get backend PORT
3000Secret values are masked
bash
$ runix env get backend DATABASE_URL
********env delete#
Remove an environment variable from the service.
bash
$ runix env delete backend LOG_LEVEL
✓ Deleted LOG_LEVELCommand Reference#
| Subcommand | Arguments | Description |
|---|---|---|
| `env list <name>` | Service name | List all env vars |
| `env set <name> KEY=VALUE` | Service name, key-value pair | Set or update a variable |
| `env get <name> KEY` | Service name, key | Get a single variable |
| `env delete <name> KEY` | Service name, key | Delete a variable |
Environment variables set through the CLI are encrypted at rest using AES-256. They are decrypted and injected into the container at startup.
You can also set environment variables in your runix.yaml under the `env` key for each service. CLI-set variables take precedence.