coolify:provision
php artisan coolify:provisionInteractive prompts guide server, project, and repository selection.
Options
Section titled “Options”--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 confirmationsNon-Interactive
Section titled “Non-Interactive”php artisan coolify:provision \ --server=abc123 \ --name="My App" \ --repository=owner/repo \ --branch=main \ --all \ --deploy \ --forceWhat Gets Created
Section titled “What Gets Created”- Project (if needed)
- Environment within project
- Application with Dockerfile configuration
- PostgreSQL database (with
--with-postgresor--all) - Dragonfly cache (with
--with-dragonflyor--all) - Environment variables linking all services
Configuration Storage
Section titled “Configuration Storage”After provisioning, COOLIFY_PROJECT_UUID is automatically added to your local .env file:
COOLIFY_PROJECT_UUID=abc123-def456-...The dashboard fetches your application and resources from the selected environment. Use the environment switcher to view different environments within your project.
Generated Files
Section titled “Generated Files”Creates in your project:
Dockerfiledocker/├── nginx.conf├── php.ini└── supervisord.conf