Environments
Environments let you move workflows and other n8n resources, such as credentials, variables, and data tables, through the steps of your release process, such as development and production. You build and test changes on one instance, then promote them to the next step.
Why use environments
Separate environments let you change workflows without breaking the ones running in production. A common setup:
Development: build and change workflows.
Production: run the live workflows.
How environments work

Changes move between instances through an environment:
On the development instance, you promote changes to the Production environment.
Optional: someone approves the changes in a promotion review before they reach the environment.
On the production instance, you apply the changes from the Production environment.
With Git-based promotion, promoting commits the changes to the Production environment's Git branch.
Concepts
Environment
Conceptually, an environment is a step in your release process together with the instance that runs it, such as a staging or production instance. You promote changes to the next environment, and its instance applies them.
Technically, with Git-based promotion, promoted changes wait in a branch of a remote Git repository until the instance applies them. On the instance that promotes, the promote environment configuration points to that repository and branch, and defines how changes reach the branch, for example by pushing a feature branch or opening a merge request. On the instance that applies, the apply environment configuration points to the same repository and branch.
Promote and apply
Promote and apply are the two promotion actions:
Promote sends changes from your instance to an environment.
Apply brings changes from an environment into your instance.
The instance that promotes is the source instance, and the instance that applies is the target instance.
You can promote or apply at two levels:
Project: promotes or applies one team project. You choose which changes to include.
Instance: promotes or applies every team project on the instance.
What you promote
Workflows are the main unit of promotion. When you select workflows, n8n includes their dependencies: credentials, variables, data tables, and tags. n8n never writes credential secrets, data table rows, or executions to the repository. Variables travel with their values.
Promote and apply use n8n packages to export and import content. To learn what Apply changes on an instance, see Apply changes.
Promotion model
A promotion model is how changes travel between environments. n8n currently supports Git-based promotion, where changes travel through a Git repository. Other models, such as promoting directly from one instance to another, may follow. See Git-based promotion.
Provider
A provider holds the details n8n uses to connect and authenticate to a Git host, such as an access token or an SSH key. Several environments can use the same provider. The Git provider type you choose decides which extra features you get, such as listing the repositories and branches the provider can access.
Environments and Environments (Classic)
Environments replace Environments (Classic), the earlier source control feature. An instance uses one or the other. See Upgrade from Environments (Classic).
In this section
Plan your environments: choose how your instances and environments connect.
Your first promotion: bring your work to a new target instance for the first time.
Promote changes: send a project or the whole instance to an environment.
Apply changes: bring changes from an environment into a project or the whole instance.
Protect a production instance: limit changes in the UI on instances that only apply.
Promotion reviews: approve promoted changes before they reach the environment's branch.
Git-based promotion: how environments use Git, and the supported Git providers.
Known limitations: what Environments don't support yet, and workarounds.
Upgrade from Environments (Classic): compare the two versions, migrate your instances, and switch back.
Related resources
Last updated
Was this helpful?