Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.
Preview

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.

Feature availability

Environments are available on:

  • n8n Cloud: Enterprise

  • Self-hosted: Enterprise

Only instance owners and instance admins can set up environments, promote, apply, and review promotions.

Preview status

Environments are in Preview and may change in future releases. Try them on test instances before you set them up for your production instances.

Limited enterprise readiness

Environments have Limited enterprise readiness. See Enterprise readiness for the Enterprise capabilities they don't support yet.

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

Example: changes move from the development instance, after an optional review, to the Production environment's Git branch, then to the production instance

Changes move between instances through an environment:

  1. On the development instance, you promote changes to the Production environment.

  2. Optional: someone approves the changes in a promotion review before they reach the environment.

  3. 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

Last updated

Was this helpful?