Skip to content

Environment Variables

Set configuration values for your services without hardcoding them in your code.

  1. Go to your service → Variables tab
  2. Enter the key and value
  3. Toggle Secret if the value should be hidden
  4. Click Add
zevcloud env set <serviceId> DATABASE_URL postgres://...
zevcloud env set <serviceId> API_SECRET sk_live_... --secret
curl -X POST https://api.zevcloud.net/v1/services/<serviceId>/env \
-H "Authorization: Bearer sk_live_..." \
-H "Content-Type: application/json" \
-d '{"key": "DATABASE_URL", "value": "postgres://...", "isSecret": false}'

Variables marked as secret are:

  • Encrypted at rest using AES-256
  • Hidden in the dashboard (shown as ••••••••)
  • Hidden in CLI output
  • Available to your application at runtime as normal environment variables

For web applications, environment variable changes take effect on the next deployment. Click Redeploy after adding or changing variables.

For WordPress and static sites, changes take effect immediately (the container reads them on restart).

ZevCloud automatically sets these variables for every service:

VariableDescription
PORTThe port your app should listen on
NODE_ENVSet to production