Your first promotion
Bring your work from a source instance, such as development, to a target instance, such as production, for the first time.
If your instances use Environments (Classic), start with Migrate from Environments (Classic).
Promote and apply
On the source instance, add the environment you promote to. See Plan your environments.
On the target instance, add the environment you apply from, using the same repository and branch as the source's environment.
Bring your work over, all at once or project by project:
All at once: on the source, run an instance promote. It sends every team project. On the target, run an instance apply. It creates every team project and handles the dependencies between projects.
Project by project: on the source, run an instance promote, or a project promote in each project. A project without workflows needs an instance promote. See Promoting projects without workflows. On the target, add any missing projects, then run a project apply in each. Start with the projects that others depend on, such as a project with shared sub-workflows or credentials.
If the environment pushes feature branches or opens promotion reviews, merge the feature branch or approve and merge the review before you apply. When n8n asks, create the credentials and variables that don't exist on the target yet. If the target already has content, read Apply to an instance that already has content first.
Publish the workflows you want to run. Workflows that Apply creates arrive unpublished.
Keep the source and target instances on the same n8n version.
Personal projects aren't promoted. Before you start, move the workflows and credentials that team projects use out of personal projects and into team projects.
Apply to an instance that already has content
Apply matches projects, workflows, credentials, and data tables by ID. Content you created by hand on the target has different IDs from the source, even when the names match, so Apply creates the source's content next to it.
The apply level decides what happens to content that isn't on the branch:
Project apply: changes only the workflows you select in one project and their dependencies, and never deletes projects. Use it to keep the content on the target. If a project isn't on the target yet, an instance owner or admin adds it from the environment first, next to the instance Apply in Settings > Environments, so it keeps the source's ID. A project you create by hand gets a different ID, and Apply doesn't match it. Start with the projects that others depend on, such as a project with shared sub-workflows or credentials. See Cross-project dependencies.
Instance apply: makes every team project match the branch. After you confirm, it deletes projects that aren't on the branch, such as projects created by hand.
Related resources
Last updated
Was this helpful?