n8n import:credentials --input=credentials.json

Category: n8n & Workflow Automation

n8n import:credentials --input=credentials.json

Import credentials from a file

Reads credentials.json, which may hold one credential or an array, and inserts them into the database, encrypting any plain-text data it finds. Credentials with the same ID as existing ones are overwritten, so rename or delete IDs first when merging exports. Ownership goes to the instance owner unless --userId or --projectId is passed.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.