This project provides a simple Python script to extract and version control your n8n workflows by exporting them from a self-hosted instance and storing them in JSON format β perfect for Git-based tracking.
- β Connects to your local/self-hosted n8n instance
- β Exports all active (non-archived) workflows via the REST API
- β Saves each workflow as a clean, valid JSON file
- β Filenames are sanitized for Git-friendly version control
- β Easy to run locally or integrate into CI/CD
git clone https://github.com/yourusername/n8n-workflow-exporter.git
cd n8n-workflow-exporter