update_application_env
Modify environment variables for applications in Coolify to configure settings, update values, and manage deployment parameters.
Instructions
Update an environment variable for an application
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uuid | Yes | Application UUID | |
| key | Yes | Environment variable key | |
| value | No | Environment variable value | |
| is_preview | No | Use in preview deployments | |
| is_literal | No | Is literal value | |
| is_multiline | No | Is multiline value |
Implementation Reference
- src/tools/handlers.ts:277-280 (handler)Handler implementation for the 'update_application_env' tool. It validates required parameters 'uuid' and 'key', then sends a PATCH request to the Coolify API endpoint `/applications/{uuid}/envs` with the provided arguments.case 'update_application_env': requireParam(args, 'uuid'); requireParam(args, 'key'); return client.patch(`/applications/${args.uuid}/envs`, args);
- src/tools/definitions.ts:895-910 (schema)Tool definition including name, description, and input schema for 'update_application_env'. Defines parameters like uuid, key, value, and optional flags for preview, literal, and multiline values.{ name: 'update_application_env', description: 'Update an environment variable for an application', inputSchema: { type: 'object', properties: { uuid: { type: 'string', description: 'Application UUID' }, key: { type: 'string', description: 'Environment variable key' }, value: { type: 'string', description: 'Environment variable value' }, is_preview: { type: 'boolean', description: 'Use in preview deployments' }, is_literal: { type: 'boolean', description: 'Is literal value' }, is_multiline: { type: 'boolean', description: 'Is multiline value' } }, required: ['uuid', 'key'] } },