Create deploy key

Create an application from a private repository using SSH deploy key

Usage

coolify app create deploy-key

Options

OptionTypeRequiredDefaultDescription
--base-directorystringNoBase directory for the application
--build-commandstringNoCustom build command
--build-packstringYesBuild pack: nixpacks, static, dockerfile, dockercompose (required)
--compose-domainstringArrayNoDocker Compose service domain in <service>=<url>[,<url>] format (repeatable)
--custom-internal-namestringNoCustom internal hostname
--descriptionstringNoApplication description
--destination-uuidstringNoDestination UUID if server has multiple destinations
--disable-build-cachebooleanNofalseDisable the build cache
--docker-images-to-keepintegerNo0Number of Docker images to retain
--dockerfile-target-buildstringNoDockerfile target build stage
--domainsstringNoDomain(s) for the application
--environment-namestringNoEnvironment name
--environment-uuidstringNoEnvironment UUID
--git-branchstringYesGit branch (required)
--git-commit-shastringNoSpecific commit SHA to deploy
--git-repositorystringYesGit repository SSH URL, e.g., '[email protected]:owner/repo.git' (required)
--gpu-countstringNoGPU count
--gpu-device-idsstringNoGPU device IDs
--gpu-driverstringNoGPU driver
--gpu-optionsstringNoGPU options
--health-check-enabledbooleanNofalseEnable health checks
--health-check-pathstringNoHealth check path
--include-source-commit-in-buildbooleanNofalseInclude the source commit in the build
--inject-build-args-to-dockerfilebooleanNofalseInject build arguments into the Dockerfile
--install-commandstringNoCustom install command
--instant-deploybooleanNofalseDeploy immediately after creation
--is-consistent-container-name-enabledbooleanNofalseUse consistent container names
--is-env-sorting-enabledbooleanNofalseSort environment variables
--is-git-lfs-enabledbooleanNofalseEnable Git LFS
--is-git-shallow-clone-enabledbooleanNofalseUse a shallow Git clone
--is-git-submodules-enabledbooleanNofalseClone Git submodules
--is-gpu-enabledbooleanNofalseEnable GPU
--is-gzip-enabledbooleanNofalseEnable gzip compression
--is-log-drain-enabledbooleanNofalseEnable application log drain
--is-pr-deployments-public-enabledbooleanNofalseMake pull request deployments public
--is-preview-deployments-enabledbooleanNofalseEnable preview deployments
--is-raw-compose-deployment-enabledbooleanNofalseDeploy the raw Docker Compose definition
--is-stripprefix-enabledbooleanNofalseEnable path prefix stripping
--limits-cpusstringNoCPU limit
--limits-memorystringNoMemory limit
--max-restart-countintegerNo0Maximum container restart count
--namestringNoApplication name
--ports-exposesstringYesExposed ports, e.g., '3000' or '3000,8080' (required)
--ports-mappingsstringNoPort mappings (host:container)
--preview-url-templatestringNoPreview URL template
--private-key-uuidstringYesPrivate key UUID (required)
--project-uuidstringYesProject UUID (required)
--publish-directorystringNoPublish directory for static builds
--server-uuidstringYesServer UUID (required)
--start-commandstringNoCustom start command
--stop-grace-periodintegerNo0Container stop grace period in seconds
--tagstringArrayNoTag to assign to the application (repeatable)
--tagsstringSliceNoTags to assign to the application
--use-build-secretsbooleanNofalseUse Docker Build Secrets for build-time variables

Get current help

coolify app create deploy-key --help

The installed CLI help reflects the exact options available in your CLI version.

On this page