Welcome to n8n-deploy! This guide will help you get up and running quickly with our workflow management CLI.
🎯 Prerequisites
- Python Version: 3.8+
- n8n Server: Local or remote installation
- Basic Understanding: Familiarity with n8n workflows and API concepts
🔧 Installation Methods
Option 1: Pip Install (Recommended)
pip install n8n-deploy
Option 2: From Source
git clone https://github.com/lehcode/n8n-deploy.git
cd n8n-deploy
pip install .
🚀 First-Time Setup
1. Initialize Database
n8n-deploy db init
This creates a new SQLite database to track your workflows.
2. Configure n8n Server API Key
# Interactive key entry
echo "your_n8n_api_key" | n8n-deploy apikey add my_server
3. Verify Configuration
# Check environment configuration
n8n-deploy env
🌈 Basic Workflow Operations
List Local Workflows
n8n-deploy wf list
List Remote Server Workflows
n8n-deploy --server-url http://n8n.example.com:5678 wf list-server
Pull a Workflow from Remote Server
n8n-deploy --server-url http://n8n.example.com:5678 wf pull "My Workflow"
Push a Workflow to Remote Server
n8n-deploy --server-url http://n8n.example.com:5678 wf push "Deploy Workflow"
Tip: Use the
--no-emojiflag for script-friendly output when integrating with automation scripts.
Configure environment variables for persistent settings across terminal sessions.
🆘 Troubleshooting
If you encounter any issues:
- Check your Python version (
python --version) - Verify n8n server connectivity
- Review the Troubleshooting Guide