Config

Manage environment variables and secrets for your apps.

Show config

relight config show myapp
relight config show myapp --json

The topic root is also an alias:

relight config myapp           # same as config show

Set env vars

relight config set myapp KEY=VALUE
relight config set myapp K1=V1 K2=V2 K3=V3

Changes apply immediately - no redeploy needed. On Cloudflare, vars update via worker bindings (live). On other providers, the service may restart.

Set secrets

relight config set myapp API_KEY=sk-xxx -s

The -s / --secret flag marks the value as encrypted. Secret values are write-only - they won’t show in config show.

Get a single var

relight config get myapp KEY

Remove vars

relight config unset myapp KEY
relight config unset myapp K1 K2 K3

Import from .env file

relight config import myapp -f .env
relight config import myapp -f .env -s    # import all as secrets

You can also pipe from stdin:

cat .env | relight config import myapp

Multiple providers

If you have multiple compute providers, specify which one:

relight config show myapp --compute gcp
relight config set myapp KEY=VALUE --compute gcp