First Deployment
Prerequisites
Section titled “Prerequisites”Before running provision:
- Push your code to a Git repository (GitHub, GitLab, etc.)
- Create an SSH deploy key or GitHub App in Coolify
- Have a server connected to your Coolify instance
Run Provision
Section titled “Run Provision”php artisan coolify:provisionThe command will prompt for:
- Server selection
- Project name
- Repository URL
- Branch name
- Deploy key selection
What Gets Created
Section titled “What Gets Created”Resources created:
- Project and environment in Coolify
- Application with Dockerfile configuration
- PostgreSQL database
- Dragonfly Redis instance
- All environment variables
After Provision
Section titled “After Provision”The command outputs the application UUID. Use it with other commands:
php artisan coolify:deployphp artisan coolify:statusphp artisan coolify:logsTrigger Initial Deployment
Section titled “Trigger Initial Deployment”The provision command sets up infrastructure but doesn’t deploy. Trigger deployment:
php artisan coolify:deployOr deploy from Coolify dashboard.