n8n export:workflow --all --separate --output=backups/latest/

Category: n8n & Workflow Automation

n8n export:workflow --all --separate --output=backups/latest/

Export one JSON file per workflow

Writes each workflow to its own file named by ID inside backups/latest/, a layout that plays well with version control and single-workflow restores. The --output directory is created automatically if missing. Restore the whole set with n8n import:workflow --separate --input=backups/latest/.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.