Transfer credentials to other n8n instances using a multi-form
Ready for 3.0What this workflow does
This workflow has 13 nodes and runs when someone submits an n8n form (“Credential Transfer”). It uses only n8n's built-in nodes.
How it runs
Trigger: When someone submits an n8n form (“Credential Transfer”).
- Settings (Edit Fields (Set)): sets 1 field: remoteInstances
- Get Instance Names (Code): runs custom JavaScript code
- Choose Instance (n8n Form): shows the next form page
- Export Credentials (Execute Command): runs a shell command on the n8n host
- Get Credentials Data (Read/Write Files from Disk): reads a file from disk
- Binary to JSON (Extract from File): extracts data from a file (from json)
- Get Credential Names (Code): runs custom JavaScript code
- Choose Credential (n8n Form): shows the next form page
- Prepare Request Data (Code): runs custom JavaScript code
- Create Credential (HTTP Request): calls an HTTP API (POST)
…plus 2 more steps. See the full node list below.
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (8)
- n8n Form
n8n-nodes-base.form - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Edit Fields (Set)
n8n-nodes-base.set - Execute Command
n8n-nodes-base.executeCommand - Read/Write Files from Disk
n8n-nodes-base.readWriteFile - Extract from File
n8n-nodes-base.extractFromFile - n8n Form Trigger
n8n-nodes-base.formTrigger
From the author
Purpose This workflow allows you to transfer credentials from one n8n instance to another. How it works - A multi-form setup guides you through the entire process - You get to choose one of your predefined (in the Settings node) remote instances first - Then…