Environment
- Coolify CLI:
1.6.2
- Coolify server:
4.1.2
- OS: Windows
- Shell: PowerShell 7
Commands
Create:
coolify app env create <app_uuid> `
--key EXAMPLE_FLAG `
--value disabled `
--comment "Example runtime flag" `
--is-literal `
--build-time=false `
--runtime=true `
--format json
Update:
coolify app env update <app_uuid> EXAMPLE_FLAG `
--value disabled `
--comment "Example runtime flag" `
--is-literal `
--build-time=false `
--runtime=true `
--format json
Actual result
Both commands fail with:
API error 422 on applications/<app_uuid>/envs: Validation failed.
Expected result
The environment variable should be created or updated successfully.
Additional information
- Creating the same environment variable through the Coolify web UI succeeds with runtime enabled, build-time disabled, and literal enabled.
- Listing application environment variables through the CLI succeeds.
- I could not find an existing open or closed issue matching this failure.
- The generic error does not expose which request field failed server-side validation. Returning the validation field details would make this class of compatibility issue substantially easier to diagnose.
This appears to be a CLI/server environment-variable API payload compatibility issue rather than an invalid application setting.
Environment
1.6.24.1.2Commands
Create:
Update:
Actual result
Both commands fail with:
Expected result
The environment variable should be created or updated successfully.
Additional information
This appears to be a CLI/server environment-variable API payload compatibility issue rather than an invalid application setting.