Skip to content

coolify:provision

Terminal window
php artisan coolify:provision

Interactive prompts guide server, project, and repository selection.

Terminal window
--name= # Application name
--domain= # Application domain
--server= # Server UUID
--project= # Project UUID
--environment= # Environment (default: production)
--repository= # GitHub repository (owner/repo)
--branch= # Git branch
--with-postgres # Create PostgreSQL database
--with-dragonfly # Create Dragonfly instance
--with-redis # Create Redis instance
--all # Create app with Postgres and Dragonfly
--deploy # Trigger deployment after provisioning
--force # Skip confirmations
Terminal window
php artisan coolify:provision \
--server=abc123 \
--name="My App" \
--repository=owner/repo \
--branch=main \
--all \
--deploy \
--force
  1. Project (if needed)
  2. Environment within project
  3. Application with Dockerfile configuration
  4. PostgreSQL database (with --with-postgres or --all)
  5. Dragonfly cache (with --with-dragonfly or --all)
  6. Environment variables linking all services

Resource UUIDs are stored in the coolify_resources table:

ColumnValue
nameApplication name
server_uuidSelected server
project_uuidProject UUID
environmentEnvironment name
application_uuidCreated application
database_uuidPostgreSQL UUID
redis_uuidDragonfly/Redis UUID
deploy_key_uuidSSH key UUID
repositoryGitHub repository
branchGit branch
is_defaulttrue

This record is marked as the default, so subsequent commands (coolify:deploy, coolify:status, etc.) use it automatically.

Creates in your project:

Dockerfile
docker/
├── nginx.conf
├── php.ini
└── supervisord.conf