Skip to main content

Transfer workflows with credentials & sub-workflow management between n8n instances

Workflow preview

Workflow preview
100%
Transfer workflows with credentials & sub-workflow management between n8n instances preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This workflow contains community nodes that are only compatible with the self hosted version of n8n. Export Workflows Between n8n Instances Copy workflows between n8n instances — with optional cred...

Best for

  • DevOps automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.formtrigger, n8n-nodes-base.n8n, n8n-nodes-base.code, n8n-nodes-base.form, n8n-nodes-base.executecommand, n8n-nodes-base.readwritefile, n8n-nodes-base.extractfromfile, n8n-nodes-base.splitout

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Arthur Braghetto.

Original n8n.io source

1.1 Workflow description

Title
Transfer workflows with credentials & sub-workflow management between n8n instances
Workflow name
Transfer workflows with credentials & sub-workflow management between n8n instances

This workflow contains community nodes that are only compatible with the self-hosted version of n8n.

Export Workflows Between n8n Instances

Copy workflows between n8n instances — with optional credential export and automatic sub-workflow adjustments.

🧠 How it Works

This workflow copies a selected workflow from a SOURCE n8n server to a TARGET server and guides you through safe checks:

  • Name conflict check: If a workflow with the same name exists on the target the export is stopped.
  • Sub-workflows: Detects calls to sub-workflows.
    • If all sub-workflows exist on the target (same names), references are auto-updated and the export continues.
    • If any are missing, the form shows what’s missing and lets you cancel or proceed anyway.
  • Credentials: Detects nodes using credentials and lets you export those credentials along with the workflow.
    • The workflow can only apply credential corrections for the credentials that you choose to export with it.
    • At the end, the form lists which credentials were successfully exported.

💡 For in-depth behavior and edge cases, see the Notes inside the workflow (Setup, How It Works, and Credential Issues).

🚀 How to Use

  1. Run this workflow on your SOURCE server.
  2. Follow the step-by-step form: pick the workflow to export, choose whether to include credentials, and review sub-workflow checks. Done.

⚙️ Setup

  • Create an n8n API key on both servers (SOURCE and TARGET).
  • On the SOURCE server, create two n8n API credentials in n8n: one for SOURCE and one for TARGET (using the respective base URL and key).
  • Configure the nodes in this workflow with these two credentials.
  • Detailed step-by-step instructions are available in the workflow notes.

✅ Once configured, you’ll be ready to migrate workflows between servers in just a few clicks.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Workflow Exporter

Type / Role
n8n-nodes-base.formTrigger - formTrigger
Config choices
Version 2.3

Block 2 - Get all workflows

Type / Role
n8n-nodes-base.n8n - n8n
Config choices
Version 1

Block 3 - Build Dropdown

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 4 - Workflow Selector

Type / Role
n8n-nodes-base.form - form
Config choices
Version 2.3

Block 5 - Workflow to Export

Type / Role
n8n-nodes-base.n8n - n8n
Config choices
Version 1

Block 6 - Credentials List

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 7 - Credentials to File

Type / Role
n8n-nodes-base.executeCommand - executeCommand
Config choices
Version 1

Block 8 - Read Credentials Files

Type / Role
n8n-nodes-base.readWriteFile - readWriteFile
Config choices
Version 1

Block 9 - Credentials Files to Json

Type / Role
n8n-nodes-base.extractFromFile - extractFromFile
Config choices
Version 1

Block 10 - Credentials to Export

Type / Role
n8n-nodes-base.splitOut - splitOut
Config choices
Version 1

Block 11 - Delete Credentials Files

Type / Role
n8n-nodes-base.executeCommand - executeCommand
Config choices
Version 1

Block 12 - Export Credentials

Type / Role
n8n-nodes-base.n8n - n8n
Config choices
Version 1

Block 13 - Fix Workflow Creds Ids

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 14 - Already Exists

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 15 - Workflow Name Clash

Type / Role
n8n-nodes-base.form - form
Config choices
Version 2.3

Block 16 - Filter Archived 1

Type / Role
n8n-nodes-base.filter - filter
Config choices
Version 2.2

Block 17 - No Credentials

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 18 - Confirm Creds Export

Type / Role
n8n-nodes-base.form - form
Config choices
Version 2.3

Block 19 - Skip Credentials

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 20 - Return Credentials List

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 21 - Exported no creds

Type / Role
n8n-nodes-base.form - form
Config choices
Version 2.3

Block 22 - Export Workflow no creds

Type / Role
n8n-nodes-base.n8n - n8n
Config choices
Version 1

Block 23 - Workflow Object no creds

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 24 - Workflow Object

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Showing the first 24 of 54 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Transfer workflows with credentials & sub-workflow management between n8n instances
Complexity advanced
Nodes 54
Categories DevOps
Author Arthur Braghetto
Published 16 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8620/8620.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Transfer workflows with credentials & sub-workflow management between n8n instances do?

This workflow contains community nodes that are only compatible with the self hosted version of n8n. Export Workflows Between n8n Instances Copy workflows between n8n instances — with optional cred...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your DevOps use case.