Skip to content

Environment Variables

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

Setting Variables

Via Dashboard

  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

Via CLI

bash
zevcloud env set <serviceId> DATABASE_URL postgres://...
zevcloud env set <serviceId> API_SECRET sk_live_... --secret

Via API

bash
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}'

Secret Variables

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

TIP

Always mark database passwords, API keys, and tokens as secret.

Redeploy After Changes

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).

System Variables

ZevCloud automatically sets these variables for every service:

VariableDescription
PORTThe port your app should listen on
NODE_ENVSet to production

Powered by ZevOP Technologies