Create Application Environment Variable
coolify_create_app_envAdds an environment variable to a Coolify application with configurable runtime, build-time, and preview flags. Secrets must originate from BWS.
Instructions
Add a new environment variable to an application. Remember: per infra standards, secrets should originate from BWS — this tool sets them in Coolify.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Variable name (e.g. DATABASE_URL) | |
| uuid | Yes | Application UUID | |
| value | Yes | Variable value | |
| reveal | No | Reveal redacted secret values in the response (default false; the call is audited) | |
| instance | Yes | REQUIRED — which Coolify instance to mutate: 'prod' (Hetzner VPS) or 'dev' (local OrbStack VM). No default: state the target explicitly so a write never lands on prod by accident. | |
| is_preview | No | Only for preview deployments (default: false) | |
| is_runtime | No | Available at runtime (default: true) | |
| is_buildtime | No | Available during build phase (default: false). Use false for runtime-only vars like secrets. |