Overview
Manage environments and their lifecycle within your Qovery project.Commands
List Environments
List all environments in current project:| Flag | Description |
|---|---|
--organization | Organization Name |
--project | Project Name |
--json | JSON output |
Deploy Environment
Deploy all services in an environment:| Flag | Description |
|---|---|
--organization | Organization Name |
--project | Project Name |
--environment | Environment Name |
--services | Services to deploy (JSON Format: https://api-doc.qovery.com/#tag/Environment-Actions/operation/deployAllServices) |
--applications | Applications to deploy e.g. app1:commit_id,app2:commit_id. Omit commit id to use the same commit. |
--containers | Containers to deploy e.g. container1:image_tag,container2:image_tag. Omit image tag to use the same tag. |
--lifecycles | Lifecycle jobs to deploy e.g. job1:image_tag|git_commit_id,job2:.... Omit version to use the same. |
--cronjobs | Cronjobs to deploy e.g. cronjob1:git_commit_id,cronjob2:git_commit_id. Omit commit id to use the same. |
--helms | Helm charts to deploy e.g. helm1:chart_version|git_commit_id,helm2:.... Omit version to use the same. |
--watch / -w | Watch environment status until it’s ready or an error occurs |
--skip-paused-services | Skip paused services: paused services won’t be started / deployed |
Stop Environment
Stop all services in an environment:| Flag | Description |
|---|---|
--organization | Organization Name |
--project | Project Name |
--environment | Environment Name |
--watch / -w | Watch environment status until it’s ready or an error occurs |
Cancel Environment Deployment
Cancel an ongoing environment deployment:| Flag | Description |
|---|---|
--organization | Organization Name |
--project | Project Name |
--environment | Environment Name |
--force / -f | Force cancel |
--watch / -w | Watch environment status until it’s ready or an error occurs |
Delete Environment
Delete an environment:| Flag | Description |
|---|---|
--organization | Organization Name |
--project | Project Name |
--environment | Environment Name |
--watch / -w | Watch environment status until it’s ready or an error occurs |
Update Environment
Update an environment’s name or type:| Flag | Description |
|---|---|
--organization / -o | Organization Name |
--project / -p | Project Name |
--environment / -e | Environment Name |
--name | New Environment Name |
--type | Change Environment Type (DEVELOPMENT|STAGING|PRODUCTION) |
Clone Environment
Clone an existing environment:| Flag | Description |
|---|---|
--organization / -o | Organization Name |
--project / -p | Project Name |
--environment / -e | Environment Name to clone |
--new-environment-name / -n | New Environment Name (required) |
--cluster / -c | Cluster Name where to clone the environment |
--environment-type / -t | Environment type for the new environment (DEVELOPMENT|STAGING|PRODUCTION) |
--apply-deployment-rule | Enable applying deployment rules on the new environment instead of having a pristine clone |
--target-project | Target Project Name |
Examples
Deploy Environment
Cancel a Deployment
Clone Production to Staging
Update Environment
Related Commands
qovery application- Manage applicationsqovery database- Manage databasesqovery status- Check environment status