Docs
CLI

cluz env

Set, list and remove environment variables and secrets from the terminal.

CommandWhat it does
cluz env listList variables. Secret values are hidden.
cluz env setCreate or update one or more variables.
cluz env rmRemove variables.
cluz env set PORT=8080 LOG_LEVEL=info
cluz env set DATABASE_URL --secret < db-url.txt
cluz env set STRIPE_KEY --secret
cluz env set NEXT_PUBLIC_SITE_URL=https://shop.example.com --build
cluz env set NPM_TOKEN --secret --build
cluz env list
cluz env rm LOG_LEVEL

Pass KEY alone to read the value from stdin, which keeps secrets out of your shell history. --secret or -s stores it as a secret. --build makes it available at build too, and --build=false makes it the app's alone. A variable updated without --build keeps what it had.

-e staging or -e preview targets another environment, and production is the default. list answers to ls, and rm to remove and unset.

Changes reach the running app on the next deploy. Environment and secrets explains the rest.