Create application from a git repository
create_applicationCreate a Coolify application from a Git repository, supporting public and private repos via GitHub App or deploy key, with optional immediate deployment.
Instructions
Create a Coolify application from a git repository. Public repos by default; a private repo needs either github_app (a GitHub App registered in Coolify) or private_key_uuid (a deploy key stored in Coolify: Keys & Tokens -> Private Keys). project and server accept a uuid or name (see list_projects / list_servers); server may be omitted when only one server can host apps. Nothing is built unless instant_deploy: true (needs the token's deploy permission). Use dry_run: true to see the exact request first. Returns the new application's uuid and next steps (set_envs, then deploy).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Application name. Coolify defaults to a name derived from the repo and branch. | |
| server | No | Server uuid or name. Default: the only server that can host applications; an error lists them when there are several. | |
| domains | No | Comma-separated full URLs, e.g. "https://app.example.com,https://www.example.com" (a :port suffix routes to that container port). Not allowed for dockercompose. | |
| dry_run | No | Report what would change without calling the mutating API. Allowed even in read-only mode. | |
| project | Yes | Project uuid or name. | |
| is_static | No | nixpacks/railpack: serve the build output as a static site (with publish_directory). | |
| build_pack | No | nixpacks (auto-detect), static (nginx serving files), dockerfile, dockercompose, or railpack (Coolify >= 4.1.0). | nixpacks |
| git_branch | No | Branch to deploy. | main |
| github_app | No | Private repo via a GitHub App: its uuid or name. | |
| description | No | Free-text description (null clears it on update). | |
| environment | No | Environment name inside the project (must exist). | production |
| build_command | No | Override the build command (nixpacks/railpack). | |
| ports_exposes | No | Container port(s) the proxy routes to, comma-separated. | |
| start_command | No | Override the start command (nixpacks/railpack). | |
| base_directory | No | Sub-directory of the repo to build from (monorepos), e.g. "/apps/web". Default "/". | |
| git_repository | Yes | owner/repo (GitHub), or a full URL: https://host/owner/repo, git@host:owner/repo.git. | |
| instant_deploy | No | Queue the first deployment right away (needs the deploy permission). | |
| install_command | No | Override the install command (nixpacks/railpack). | |
| destination_uuid | No | Docker network (destination) uuid; only needed when the server has several. | |
| private_key_uuid | No | Private repo via a deploy key: the uuid of the private key stored in Coolify. | |
| health_check_path | No | HTTP health check path, e.g. "/health". | |
| publish_directory | No | Directory with the built static files (static sites, e.g. "/dist"). |