n8n import:workflow --separate --input=backups/latest/ --activeState=fromJson

Category: n8n & Workflow Automation

n8n import:workflow --separate --input=backups/latest/ --activeState=fromJson

Import workflows keeping their active state

Imports each workflow and honours the active field from its JSON instead of deactivating everything. The fromJson value only works in queue or multi-main mode, and a regular instance rejects the flag outright. On single-instance setups, import with the default and publish afterwards.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.