n8n export:workflow --backup --output=backups/latest/

Category: n8n & Workflow Automation

n8n export:workflow --backup --output=backups/latest/

Export workflows in backup mode

Runs the backup convenience flag, shorthand for --all --pretty --separate: pretty-printed JSON, one file per workflow, into the given directory. This is the documented one-shot backup command for workflows. Restore 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.