Set Environment Variables
Your deployed app's secrets and config live in its hosted environment, encrypted at rest. You can set the environment variables via both the Terminal (CLI) as well as Piezas dashboard. To set it via the Piezas Dashboard: Step 1: Go to Apps on the left nav bar Click on the top right corner App…
Your deployed app's secrets and config live in its hosted environment, encrypted at rest.
You can set the environment variables via both the Terminal (CLI) as well as Piezas dashboard.
To set it via the Piezas Dashboard:
Step 1: Go to Apps on the left nav bar
Click on the top right corner App Setting buttons (looks like a wheel) of the App you want to set environment variables on
Step 2: Go to Host section
Enter Key and Value then click on Set to set the environment variable
To set it via the Terminal (CLI):
npx piezas env set DATABASE_FEATURE_FLAG=on
npx piezas env set STRIPE_KEY=sk_test_xxx
npx piezas env list # shows keys only — values are write-only
Values are write-only by design: you can set and overwrite them, but the platform never reads them back to you. Setting env on a server-kind app restarts it (blue/green) so the new values take effect in seconds.
Empty values are refused unless you pass
--allow-empty, so a typo likeKEY=can't silently blank a secret.