Overview
Manage lifecycle jobs within your Qovery environment. Lifecycle jobs run at specific points in your environment lifecycle (e.g., before/after deployment, on start, on stop, on delete).Commands
List Lifecycle Jobs
List all lifecycle jobs in current environment:Deploy Lifecycle Job
Deploy a lifecycle job:| Flag | Short | Description |
|---|---|---|
--lifecycle | -n | Lifecycle Job Name |
--lifecycles | Lifecycle Job Names (comma separated) | |
--commit-id | -c | Lifecycle Commit ID |
--tag | -t | Lifecycle Tag |
--watch | -w | Watch lifecycle status until it’s ready or an error occurs |
--organization | Organization Name | |
--project | Project Name | |
--environment | Environment Name |
Redeploy Lifecycle Job
Redeploy an existing lifecycle job with the same configuration:Stop Lifecycle Job
Stop a lifecycle job:Delete Lifecycle Job
Delete a lifecycle job:Cancel Deployment
Cancel a lifecycle job deployment:Update Lifecycle Job
Update lifecycle job source configuration (branch, tag, or image name):| Flag | Short | Description |
|---|---|---|
--lifecycle | -n | Lifecycle Name (required) |
--branch | -b | Lifecycle Branch (for Dockerfile-based lifecycle jobs) |
--tag | -t | Lifecycle Tag (for image-based lifecycle jobs) |
--image-name | Lifecycle Image Name (for image-based lifecycle jobs) | |
--organization | Organization Name | |
--project | Project Name | |
--environment | Environment Name |
Clone Lifecycle Job
Clone a lifecycle job to another environment or project:| Flag | Short | Description |
|---|---|---|
--lifecycle | -n | Lifecycle Name (required) |
--target-project | Target Project Name | |
--target-environment | Target Environment Name | |
--target-lifecycle-name | Target Lifecycle Name | |
--organization | Organization Name | |
--project | Project Name | |
--environment | Environment Name |
Examples
Deploy Database Migration Job
Update Lifecycle Job and Redeploy
Run Post-Deployment Script with Specific Tag
Lifecycle Job Types
| Event | Description |
|---|---|
| START | Runs when environment starts |
| STOP | Runs when environment stops |
| DELETE | Runs before environment deletion |
| DEPLOY | Runs during deployment |
Related Commands
qovery cronjob- Manage scheduled cronjobsqovery log- View lifecycle job logsqovery status- Check lifecycle job status