Moving workflows between instances with n8n packages

n8n packages (.n8np files) carry workflows and their dependencies from one instance to another. This page explains what the manifest declares, what the target instance must supply, and where the Preview feature stops.

On this page

When teams use n8n packages to move workflows between instances

n8n packages let a team export a workflow together with its dependencies as a .n8np file and import it into another n8n instance, so a workflow built on a development instance can reach production without being rebuilt by hand. The package carries a manifest that declares what the workflow needs, and the target instance must supply the pieces the manifest names, such as credentials, variables and the nodes or projects the workflow depends on. Packages fit best when a team wants to move a self-contained workflow between instances that are not connected through a shared Git repository, when a reviewer or operator needs a single artifact to inspect, or when a one-off migration does not justify building a pipeline. Teams that already version workflows in Git and promote them through a CI/CD pipeline will usually keep that path as the system of record and treat packages as an occasional transfer method.

The feature is in Preview, so its behavior can change between releases. Before you plan a production move around it, confirm its status for your exact n8n version in the n8n release notes, and test the export and import on a copy of your instance first. Check which dependencies the manifest records, whether it includes credential references or only credential names, and what the import reports when something is missing. Ask your team to write down which items the target must supply before the import, who owns each one, and how the import will be verified against the source workflow's behavior.

Plan for the limits of a Preview feature in your change record. A package does not replace your own history, approval or rollback controls, so keep the source version identifiers, the package file and the import log together. Assign one owner to each target-side dependency and confirm that the package can be re-imported after a failed attempt without creating duplicate workflows. If your production instance runs with an enterprise license or specific plan restrictions, confirm with n8n whether the feature and its related API or CLI calls are available on your plan before you rely on them.

Choosing between packages, Git, JSON exports and the CLI

This table compares the four ways to move n8n workflows between instances: packages, Git-backed environments, JSON exports and the public API. Read each row for what the method carries, what the target must still provide, and which plan or edition check to run first. The main takeaway is that packages suit controlled, one-time moves, while Git and the API suit repeatable promotion.

MethodWhat it movesWhat it leaves behindWho it suits and what to confirm
n8n packages (.n8np)Workflows plus the dependencies declared in the manifestVersion history and any dependency the target does not supplyControlled moves between instances. Confirm the feature is still in Preview and available in your edition.
Git-backed environmentsWorkflow definitions committed to a repository and pushed or pulled between instancesExecutions, instance-specific credentials and variables, which are managed per environmentTeams promoting changes through branches and reviews. Confirm Git environments are included in your plan.
JSON export and import in the editorSelected workflows as JSON filesVersion history, credential secrets and the link to the source instanceSmall, one-time copies. Confirm which export options your version offers.
CLI export and importWorkflows and, through separate commands, credentialsVersion history and execution data, plus credential re-entry if the target key differsAdministrators scripting moves on self-hosted instances. Confirm command options and flags for your version.
Public API in a pipelineWorkflow definitions pushed and pulled by API calls from a CI jobApprovals and audit trail, which live in the CI system and Git provider unless configuredAutomated release pipelines. Confirm endpoints, API key scopes and whether your plan includes API access.
Credentials on the targetCredential references in workflows, not secret values, unless a method states otherwiseSecret values, which the target must hold under its own encryption keyEvery method. Confirm with your own tests whether a package carries credentials or only references them.

What the package manifest declares and what the target must supply

Start by deciding what the package must declare, because the target instance can only rebuild what the manifest lists. An .n8np package bundles the exported workflows with a manifest that describes them and the dependencies they reference. Before you import anything, read the manifest and check that it names every workflow in scope and every node, custom node package and other component those workflows call. Field names, structure and how dependencies are recorded can change between releases, so treat any field list you find elsewhere as a starting point. Confirm the exact keys against the documentation for the n8n version on both the source and target instances. The n8n release notes show which version each instance runs, and that version should drive the tooling you write.

A package moves workflow definitions. It does not copy the environment around them. Credentials are not usable from the file alone, so each one must be recreated or linked on the target by someone with permission to do so. Environment variables that workflows read must be defined on the target, custom nodes must be installed before import, and references to external endpoints, webhook paths, stored files or data held outside the workflow must be mapped to the target's equivalents. If the target runs in queue mode, the encryption key must also be shared with every worker and webhook processor, as the queue mode documentation describes, so stored credentials can be decrypted there. Assign an owner to each of these items in a target inventory and treat any unowned item as a blocker for cutover.

Verify the transfer in a staging instance before production. Import the package, then compare the workflow names and identifiers against the manifest and open each workflow to find nodes that show missing credentials, missing variables or missing node types. Confirm the activation state of every workflow and trigger, and run a controlled test execution for each path that calls an external system. Record which manifest fields and dependencies you checked and who approved them, because that record is the evidence a reviewer will ask for. Repeat the full check on the production instance, since a staging pass does not prove that production has the same credentials, variables and custom nodes.

Packages cross the instance boundary only after the target supplies its own secrets

The diagram starts on the source instance, where a workflow and its dependencies are exported into a .n8np package with a manifest that lists what the workflow needs. The package then crosses a controlled channel, which is the trust boundary between the two instances. On the target, the import is followed by supplying credentials and variables locally, confirming the required nodes are present, and a review before anything is activated. The encryption key stays on the source, outside both the package and the transfer.

Package flow from source export to target review, with the trust boundary and secrets marked.

How to export, transfer and import an n8n package

This sequence moves a set of n8n workflows and their dependencies from one instance to another as a single .n8np package, with a check at each stage. The result is a verified workflow set on the target that runs with the target's own credentials and variables, plus a record of what was transferred and who approved it.

  1. Confirm version parity and Preview availability

    The owners of the source and target instances confirm that both run compatible n8n versions and that package export and import are available on the edition and plan in use. Packages are a Preview feature, so check its status and stated limits in the documentation and release notes for the installed version before you plan around it. Done when the instance versions, the Preview status and any limits are written into the change record.

  2. Export the workflow set with dependencies

    On the source instance, an editor selects the workflows in scope and exports them as a .n8np package, including the dependencies that the package format supports. Check the selection against your own inventory, including sub-workflows and other workflows the set calls, because gaps are easiest to catch before the file leaves the source. Done when the export completes and the file name, the workflow list and the export time are logged.

  3. Review the manifest before transfer

    Open the manifest inside the package and compare it with the workflow list from the export. Note which workflows, nodes, credential types and variable names it declares, since these are what the target must supply. Confirm with the version documentation that the package holds no secret values, and if you find any, stop and handle the file as sensitive. Done when a second person has reviewed and signed off the declared contents.

  4. Transfer the package under change control

    Move the .n8np file through the channel your change process already governs, such as a ticket attachment or a restricted artifact store. Record a checksum of the file before transfer and compare it with the checksum at the destination. Avoid unapproved chat tools or personal storage. Done when the checksums match and the transfer is linked to the change request.

  5. Prepare target credentials and variables

    Confirm in the version documentation how credentials are handled during package import, then have the target owner create or confirm each credential type named in the manifest using the target's own accounts. Set the variables that this environment needs and reconnect any OAuth connections under the target's identities. Done when every item from the manifest review exists on the target and has a named owner.

  6. Import the package on the target

    An administrator imports the .n8np file on the target instance, choosing the import options that the installed version offers. Keep the imported workflows inactive until verification is complete, and record the workflow IDs and the project or folder they land in. Done when the import result lists every workflow in the set and shows no unresolved errors.

  7. Verify workflow references and settings

    Open each imported workflow and check that sub-workflow calls, credential links, variable references and webhook paths resolve to objects on the target, not to objects on the source. Compare the node count and workflow list with the manifest. Done when a checklist for every workflow shows no broken reference and no link that still points to the source instance.

  8. Test executions in a non-production context

    Run each workflow manually or with test data in a non-production instance, using test credentials wherever a live system is involved. Compare outputs and error paths with the expected results, and confirm that the source instance was not changed by the testing. Done when the results are recorded, every failure has an owner, and the approval to activate in production is documented.

Security risks when packages carry workflow logic across instances

A package moves workflow logic, node configuration and references to credentials from one instance to another, so it carries security consequences beyond a file copy. The cards below cover the risks that connect package handling to review, access, credentials and audit on the target instance, and the checks to make before a package is trusted.

Packages are code, not configuration

A package can contain workflow logic, Code node content and expressions that run on the target with that instance's network reach. Treat each .n8np file as a change to production code. Ask who produced it, diff its contents against the workflow version you expect, and require the same peer review you apply to a merge request before anything is imported.

Credentials must be supplied on the target

The package should reference credentials that the target instance already holds, rather than carry secret values out of the source. Confirm with your vendor how the manifest records credential dependencies in your version, then plan who creates each credential on the target and under which owner. Treat the target's encryption key and credential storage as its own control, separate from anything the source used.

Export and import rights need explicit limits

Whoever can export a package can take a copy of the workflow logic and its dependency list out of the instance, and whoever can import one can change what runs in production. Map these two actions to named roles, separate them from ordinary editing rights, and confirm in your own instance which project and global roles can perform each action before the feature is used at scale.

Audit trail gaps for transferred files

A package moved by hand or by script may leave no record that ties the imported workflow to the file it came from, the person who imported it and the reviewer who approved it. Decide where the package file, its checksum and the import record will be stored, and confirm which events your instance logs for export and import so you can answer who moved what, and when.

Approval before imported workflows go live

Importing a workflow does not have to make it active, and it should not go live until a reviewer has checked it. Set the rule in your process: imported workflows stay inactive until a second person approves the trigger, the nodes and the credentials they use. Confirm how your edition handles reviews and publishing, since review features are tied to specific plans.

n8n pricing

Encryption key handling on the target

Imported workflows that depend on stored credentials will only work where the target's encryption key and database are configured correctly, and key sharing affects every worker and webhook processor in queue mode. Document who holds the target key, how it is rotated, and which hosts receive it, so that a package review does not overlook the place where credentials are decrypted.

Queue mode docs

Questions teams ask before moving workflows with n8n packages

How much effort does an n8n package migration take?

Effort depends mostly on what the package has to carry and how much checking each part needs. Ask for a count of each item below from your own inventory before you request a quote:

  • Number of workflows and how many of them call each other
  • Credentials the target must supply, and how many owners must reauthorize them
  • Custom or private nodes that the target must also have installed
  • Approval steps and test runs between the source and production instances

A small set of self-contained workflows with no custom nodes is a much simpler move than dozens of interdependent workflows that call internal services. Because packages are a Preview feature, add time for checking behavior on your own version before you commit to a date.

Can our in-house team move n8n workflows with packages?

Often yes, for a bounded set of workflows, if the team has n8n administration experience and a test instance close enough to production to catch problems. Your team carries the inventory, the export and import, credential reauthorization and testing. Plan for the work to take longer than the export itself, because each imported workflow needs its connections confirmed and its triggers tested. Bring in outside help when the Preview status of the feature concerns your change board, when many workflows share the same credentials, or when the same steps must repeat across several instances. Confirm the exact CLI and API commands for your version in n8n's documentation before you write a runbook.

What does a package migration need from our team?

Your team needs three things in place before the move starts. First, test instances on the source and target sides, with a version match you have checked. Second, named credential owners who can recreate or reauthorize each connection on the target, because you should confirm how your version handles credentials on import. Third, change approvals that cover the import, the test results and the rollback step. Owners should also confirm which workflows are live, since importing over a running workflow changes production behavior. Agree in advance who runs the import, who signs off on each test and who can reverse the change.

Do n8n packages replace Git for moving workflows?

Packages and Git solve different problems, so most teams use both. A package transfers a selected set of workflows and their declared dependencies between instances in one operation. Git records every change, keeps a branch for each environment and supports review through pull requests, with history that outlives any single transfer. If your organization already runs environments with Git, keep Git as the record of change and treat packages as a transfer step inside that process. n8n's pricing page lists environments with Git as part of the Business and Enterprise plans, so confirm your plan before you design around it. n8n pricing

How does the Sustainable Use License apply to a second n8n instance?

The Sustainable Use License permits use for your own internal business purposes and for non-commercial or personal use. A second instance that your organization runs for development, staging or production work inside its own business generally falls within that grant, but have your legal team confirm the reading against the license text. Files with .ee in their name or directory need a valid n8n Enterprise License, so check which features your edition includes on each instance. Paid plans also change which features you can use, especially SSO, environments with Git and log streaming, so review the plan for each instance separately. Using an instance for work outside your organization needs its own license review. n8n LICENSE.md

When should we bring in a partner for an n8n package migration?

Bring in a partner when the migration is large or sensitive enough that the work strains your team's time, which you can judge from the inventory. Typical triggers include many interdependent workflows, credentials spread across several owners, custom nodes that must be rebuilt or tested and regulated data in scope for review. DeployOpen implements and documents self-hosted open-source platforms inside your own infrastructure. Most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. Ask for a quote that follows from that written scope. DeployOpen does not publish a price list.

Who holds the credentials when a package reaches a new instance?

Treat a package as carrying workflows and their declared dependencies, while the target instance supplies its own credentials. Confirm in n8n's documentation for your version exactly what an export contains and whether any secret material travels with it. Each connection on the target should be created or reauthorized by a named owner who controls that account. Encryption keys matter here too. Credentials are stored encrypted, and in queue mode n8n requires the main instance's encryption key to be shared with every worker and webhook processor, so document key management for each instance you create.

How packages fit into a dev, staging and production process

A package is best treated as a transport step inside a process that already has a record of truth. Decide first which system is authoritative for each production workflow. If your team keeps workflow JSON in Git through n8n's environments, Git stays the record and the .n8np file is a build artifact that must trace back to a specific commit and a reviewed change. For every promotion, log the package filename, the source and target n8n versions, the commit it was exported from, the workflow review approval that covered it, and the import time. Confirm with n8n whether the manifest carries a version or checksum field you can rely on, or whether your pipeline must compute and store one itself.

Ownership questions decide whether packages stay controlled. Settle who exports, who approves and who imports, and keep those three roles apart where your change controls require it. The exporter should be the workflow author, the approver should be a reviewer who did not build the change, and the importer should be a production role or pipeline identity with no edit rights to the workflow. Packages carry workflow definitions and declared dependencies, but they do not move credentials, so the production team owns the connections that the target must already hold. Confirm which n8n roles can import in your plan, and whether the Preview feature is available on the edition you run before you write the procedure around it.

Rollback needs a plan because the target's history usually starts at the import, so earlier versions may not be there to restore. Choose the rollback method before the first production import. The two common options are re-importing the previously approved package or reverting the Git commit and promoting again. Keep every approved package file in an artifact store with its checksum and commit reference, and rehearse the rollback in staging so the team learns how the target behaves with the earlier definition and its credential bindings. Ask n8n to confirm exactly what the import overwrites, including active state and webhook paths, because those details decide how quickly a rollback can take effect.

How DeployOpen works on this

DeployOpen scopes package-based moves of n8n workflows in writing before any work starts, then builds the export and import path against your own source and target instances. The result is a documented, repeatable procedure your team can run and review, with the Preview limits and the target's credential and dependency gaps stated plainly.

How we scope

  • We inventory the workflows, projects and dependencies to move, and record which ones a package can carry.
  • We confirm which n8n version and plan each source and target instance runs before choosing a method.
  • We agree in writing which credentials, variables and external systems the target must supply, and who provides them.

How we build

  • We build the export and import steps as code, with the manifest checked against each workflow's dependencies.
  • We test the procedure on non-production instances and log every gap between source and target.
  • We document where the Preview feature falls short and define a manual fallback for those cases.

How we hand over

  • You receive the runbook, the package files, the manifest review notes and the list of target-side prerequisites.
  • We walk your team through a dry run so operators can repeat the move without us in the room.
  • Your team keeps the scripts and documentation in its own source control, under its own access controls.

How we support

  • Engagements are fixed-scope, and ongoing support, upgrades and continuous testing are available as a retainer.
  • We can retest the procedure after each n8n minor release, since releases ship roughly weekly, and update the runbook.
  • Pricing follows from the written scope. Ask for the quote to itemize scoping, build, testing and handover separately.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.