Import Credentials via CLI - Problem

On latest version i export the credentials via CLI (decrypted or not) and when i try to import them it throws an error:

n8n export:credentials --backup --output=/tmp/

n8n import:credentials --input=/tmp/s7jJK8DRSKZnPaDs.json

File does not seem to contain credentials. Make sure the credentials are contained in an array.

I check the .json file and is valid as JSON file.

Any ideas?

Import all the separated files created by --backup:

n8n import:credentials --separate --input=/tmp/

Or if you exported wrong(single /separated) redo the process and re-export into a single array file :

n8n export:credentials --all –output=/tmp/credentials.json

n8n import:credentials –input=/tmp/credentials.json

2 Likes

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