Documentation

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 = debug

env get#

Get the value of a single environment variable.

bash
$ runix env get backend PORT
3000

Secret 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_LEVEL

Command Reference#

SubcommandArgumentsDescription
`env list <name>`Service nameList all env vars
`env set <name> KEY=VALUE`Service name, key-value pairSet or update a variable
`env get <name> KEY`Service name, keyGet a single variable
`env delete <name> KEY`Service name, keyDelete 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.