Skip to Content
dFlow
Applications

dflow apps:env:unset

Stage removal of non-secret variables. Run changes:deploy to apply it.

This removes one or more environment variables that are not secrets. A key that is already absent is left alone. apps:env:remove is the same command. After an image exists, it stages the removal. Run dflow changes:deploy to apply it. With --trust-skip the removal applies at once and the command waits for the deploy unless you pass --wait=false.

dflow apps:env:unset APP KEY [KEY...]

Flags

--trust-skip applies the change at once instead of staging it. --wait and --wait-timeout (default 5m) apply only when the change is applied at once. apps:env:remove is the same command.

What you see

Each key is removed on its own. A key that is already absent is left alone. Before the first deploy, the last key prints status stored, or status unchanged when nothing changed. After an image exists, the command prints that the change is staged, and the deploy operation runs when you run dflow changes:deploy. With --trust-skip, the command waits for the deploy operation to finish unless --wait=false.

When it fails

A missing application exits 3. A name that starts with DFLOW_, and the names PORT and KUBERNETES_SERVICE_HOST, are reserved and exit 1.

How is this guide?

Last updated on