n8n export:workflow --id=123 --output=workflow-v1.json

Category: n8n & Workflow Automation

n8n export:workflow --id=123 --output=workflow-v1.json

Export a historical workflow version

Writes the historical version whose version ID is the version id, not the current draft, to workflow-v1.json. Version IDs come from the workflow history and are listed in the editor's version panel. The --version flag cannot be combined with --all or --published.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.