Coolify icon

Coolify

Interact with Coolify to manage applications, services, databases, servers, deployments and more.

Application → Create Environment Variable

AI-generated

Summary

Create a new environment variable for a specific application in Coolify by specifying the application UUID, variable key, value, and optionally whether it is for preview deployments only.

Inputs

  • Application (required) — The UUID of the application. Choose from the list or set an expression for dynamic UUID.
  • Key (required) — The environment variable key, e.g., NODE_ENV.
  • Value (required) — The environment variable value.
  • Is Preview — Whether this environment variable is for preview deployments only (default false).

Output shape

the created environment variable object returned by the Coolify API

The operation sends a POST request and returns the created environment variable details as a JSON object.

Links

Discussion