create_resource
Create a new Coolify resource: application, database, or service, with configurable source, engine, or service type.
Instructions
Create a new Coolify resource. kind discriminates: application (with source sub-discriminator), database (with engine), or service (with service_type XOR docker_compose_raw base64). FENCED: requires --allow-destructive and confirm:true (code/credential write).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | The type of resource to create. | |
| name | No | Name for the new resource. | |
| engine | No | Required when kind=database. | |
| fields | No | Additional create-body fields (e.g. ports_exposes, domains, base_directory, destination_uuid), sent verbatim as the request body — any field the Coolify endpoint accepts is allowed. | |
| source | No | Required when kind=application. Determines which Coolify endpoint is called. | |
| confirm | No | Must be true to confirm resource creation (destructive: code/credential write). | |
| dry_run | No | If true, show what would be created without performing the action. | |
| instance | No | Coolify instance name (omit for the default). | |
| build_pack | No | Build pack. REQUIRED by Coolify for the public, private-github-app, and private-deploy-key sources. | |
| dockerfile | No | Dockerfile content (for dockerfile source). | |
| git_branch | No | Git branch (for git-based apps). | |
| fields_json | No | JSON-encoded alternative to `fields` (mutually exclusive) for clients whose strict schema handling strips free-form object contents. | |
| server_uuid | No | UUID of the target server. | |
| docker_image | No | Docker image reference (for dockerimage source). | |
| project_uuid | No | UUID of the target project. | |
| service_type | No | Required when kind=service and not using docker_compose_raw. Mutually exclusive with docker_compose_raw. | |
| git_repository | No | Git repository URL (for git-based apps). | |
| instant_deploy | No | Trigger deploy immediately after creation. | |
| github_app_uuid | No | GitHub App UUID (for private-github-app source). | |
| environment_name | No | Name of the Coolify environment. | |
| private_key_uuid | No | Private key UUID (for private-deploy-key source). | |
| docker_compose_raw | No | Base64-encoded docker-compose content. Required when kind=service and not using service_type. Mutually exclusive with service_type. |