n8n-lint¶
A Python CLI tool for validating n8n workflow JSON files
🚀 Quick Start¶
Installation¶
Basic Usage¶
Example¶
# Validate an n8n workflow
n8n_lint validate my-workflow.json
# Output with errors
❌ ERROR: Required property 'typeVersion' is missing (Node: n8n-nodes-base.function)
❌ ERROR: Required property 'position' is missing (Node: n8n-nodes-base.function)
╭─────────────────────────── ❌ Validation Summary ────────────────────────────╮
│ │
│ Validation complete: 2 errors (took 0.00s) - 1 node validated │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
✨ Features¶
- ✅ Validate n8n workflows - Check JSON structure and node properties
- ✅ Complete CLI interface - validate, import-schema, list-schemas, export-report
- ✅ Multiple output formats - Console, JSON, HTML, and Markdown
- ✅ Custom schemas - Import your own node schemas
- ✅ Rich formatting - Beautiful console output with progress bars
- ✅ Report generation - Export validation reports in HTML/Markdown
- ✅ High performance - Validates 1000+ nodes in under a second
- ✅ Production ready - 87 tests passing, 0 linting issues
📚 Documentation¶
User Guides¶
- Installation Guide - Complete installation instructions
- Basic Usage - Getting started with n8n-lint
CLI Reference¶
- Command Overview - All available commands
Developer Documentation¶
- API Reference - Complete API documentation
- Development Setup - Local development environment
🎯 Use Cases¶
- CI/CD Integration - Validate workflows in automated pipelines
- Development Workflow - Catch errors before deployment
- Quality Assurance - Ensure workflow compliance
- Documentation - Generate validation reports for teams
🔧 Advanced Usage¶
# JSON output for automation
n8n_lint validate workflow.json --output json
# Import custom node schema
n8n_lint import-schema custom-schema.json --node-type my.custom.node
# Export HTML report
n8n_lint export-report workflow.json --output report.html --format html
# Quiet mode (errors only)
n8n_lint validate workflow.json --quiet
📦 Package Information¶
- Version: 1.1.1
- Python: 3.12+
- Dependencies: typer, rich, jsonschema
- License: MIT
- Repository: GitHub
- PyPI: n8n-lint
🚀 Get Started¶
Ready to validate your n8n workflows? Install n8n-lint and start with the Basic Usage Guide.
Need help? Open an issue or check the CLI Reference.