Import/Export workflows with creds

I have two instances. Dev and prod.
I need to transfer a scenarios between.
Both instances has a same named creds but when I upload the script all of nodes with creds droped it.
How I can solve it?

Information on your n8n setup

  • n8n version: 1.98.2
  • Database: Postgres
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Kuber
1 Like

The credentials don’t need the same name, but their ID must match.
Let me explain how this works.
I use the directories /data/n8n/workflows/ and /data/n8n/credentials/ to store the JSON files for importing.
You can import workflows and credentials with these commands:

n8n import:workflow --input=/data/n8n/workflows/ --separate
n8n import:credentials --input=/data/n8n/credentials/ --separate

Important: To import credentials successfully, they must come from an n8n instance that uses the same encryption key (N8N_ENCRYPTION_KEY).

1 Like

Can I import decoded creds and upload it to other instance?
If I can’t set same N8N_ENCRYPTION_KEY.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.