No configuration file in your repository. Qovery does not read a
qovery.yml, .qovery.yml or .qovery.toml, and there is no qovery init. Projects, environments and services are created in the Console, with qovery api, or with Terraform. For the full path from a repository to a running app with commands only, see Deploy with the CLI and API.Quick Path: Preview Environments on Your Existing Cluster
Prerequisites:- Your cluster is connected to Qovery. For an existing EKS, GKE or Scaleway Kapsule cluster, see BYOK (Bring Your Own Kubernetes). For other clusters, see the installation with the Qovery CLI. To let Qovery create the cluster, see Create Your Cluster.
- The repository is deployed in a Qovery environment on that cluster and the deployment succeeds. This environment becomes the blueprint that each preview environment clones.
- The Qovery CLI is installed and authenticated:
qovery auth, orqovery auth --headlesson a machine without a browser. For an AI agent, use a scoped token such as an API Policy Token (theqovery-policy-tokenskill creates one) instead of an admin token.
- With a coding agent
- With the CLI
Install the Qovery Agent Skills once:Then ask your agent:Or run
/qovery-preview, or /qovery-preview PR-123 for one pull request. The qovery-preview skill finds or creates the blueprint environment, sets the base branches and auto_preview, validates the blueprint, clones it for the pull request, configures auto-shutdown (stop, delete or recycle), shows the plan and asks for confirmation before it deploys. See Agent Skills.qovery environment list --organization "My Org" --project "My Project" shows a new environment of type PREVIEW on the blueprint’s cluster, and its status becomes DEPLOYED. If it fails, see Diagnose a Failed Build or Deployment.
The rest of this guide shows the same setup in the Console.

- Share your changes live in code reviews: no more Git diffs for visual changes!
- Get shareable links for upcoming features and collaborate more effectively with internal and external stakeholders.
- Run CI tests against a high fidelity copy of your production environment before merging.
This guide also works with other cloud service providers supported by Qovery.
For any questions, existing customers can reach out via Pylon directly in the Qovery console.
Prerequisites
You have sign in on Qovery
You have at least already deployed successfully a first application
Steps
- Create a “Blueprint” environment
- Enable Preview Environment feature
- Create a Preview Environment
- Delete a Preview Environment
- Seed your database
- Auto stop and start your Preview Environments
- Integrate your CI (Continuous Deployment) platform
Create your Blueprint Environment
Even if not required, we recommend creating an environment that will serve as a root to create your Preview Environments. The idea is to keep this environment as a template of a fully working environment. This environment should not be directly used. This is what we call “blueprint environment”. I assume you already have a working environment, so to create a blueprint environment you need to:- Console
- CLI
- Go to your working environment
- Click on “Actions” > “Clone”
- Name your environment “blueprint”
- Click on “Create”
We recommend using a different cluster than your production for your Preview Environments.Preview Environments are deployed on the blueprint’s cluster. To send them to another cluster, add a project deployment rule matching their name, for example
[PR]*.Enable Preview Environment
Now, you can go to turn on Preview Environments by:- Console
- CLI and API
- Terraform
- Click on your
Blueprintenvironment “Settings”. - Click on the
Preview environmentstab - Turn on Preview Environment feature for all your applications by clicking on
Activate preview environment for all apps.
auto_preview decides what the copy runs: on, the copy builds the pull request’s branch and commit; off, the copy stays unchanged on its base branch. auto_preview is false unless you set it, and the Console does not set it for these containers yet: use Terraform, or PUT /container/{containerId} as shown for auto_deploy in Auto-Deploy.
The preview’s copy takes auto_deploy from the blueprint container, so it follows later pushes to the pull request only when the blueprint container has auto_deploy on. The steps in Validate your Blueprint Environment turn auto-deploy off for applications only. To turn it off on such a container, set auto_deploy = false on its qovery_container, or send the body of GET /container/{containerId} back with PUT /container/{containerId} and auto_deploy set to false, as shown in Auto-Deploy. Its previews then no longer follow later pushes to the pull request.
Change your base branch
Now that you have turned on the Preview Environment feature, you need to change the base branch from your applications inside your Blueprint Environment. Let’s say, every new feature branch you create are coming fromstaging. Then you will need to change all your applications to target the staging branch.
From the CLI, run this for each application of the blueprint:
feat/xxx branch that has been created from the base branch staging.

- A developer creates a git branch
feat/xxxis created fromstaging. - A developer creates a Pull Request for
feat/xxx. - Qovery creates a Preview Environment
feat/xxxfrom theblueprintenvironment. The frontend, backend, PostgreSQL and Redis instances are cloned! - The frontend app from the environment
feat/xxxis accessible via a dedicated URL.
Validate your Blueprint Environment
Before creating a Preview Environment, validate that your Blueprint environment works.- Console
- CLI
- Stop your Blueprint environment by clicking on “Actions” > “Stop”.
- Turn off “auto-deploy” by clicking on “Settings” > “Deployment” > “Auto-deploy off” > “Save”.
Create a Preview Environment
To create a Preview Environment, here are the steps:- Checkout your
stagingbranch. - Create a branch
test_qovery_preview_environmentand push it. - Create a Pull Request/Merge Request.
Qovery take care of cloning all your services and the configuration as well (Environment Variables and Secrets included).
Check it worked
PREVIEW. Its status becomes DEPLOYED once the deployment ends. To see the status of each of its services, run qovery environment statuses --project "My Project" --environment "<previewEnvironmentName>".
Delete a Preview Environment
To delete you need to mergetest_qovery_preview_environment into staging. You also have the ability to delete it manually on Qovery.
To delete it from the CLI, run qovery environment delete --project "My Project" --environment "<previewEnvironmentName>".
Advanced
Eager to know how to go integrate Qovery Preview Environments with your CI and much more? Check out our the following guides:- Seed your Preview Environment database
- Integrate your CI platform
- Auto-stop and start your Preview Environment
- Set up a custom domain for your Preview Environment