Skip to main content

n8n-deploy - a simple N8N Workflow Manager with SQLite metadata store

Project description

n8n-deploy: Database-First n8n Workflow Management CLI

GitHub CI/CD Pipeline GitHub stars GitHub last commit GitHub issues

Python 3.8+ License: MIT Project Status: Active Code style: black

Overview

n8n-deploy is a powerful Python CLI tool designed to simplify n8n workflow management through a database-first approach. It provides a flexible, efficient solution for managing n8n workflows, especially in environments without direct web UI access.

Key Features

  • 🗂️ Database-Driven Workflow Management

    • SQLite metadata store for tracking workflows
    • Support for new workflows without server ID (auto-generates draft ID)
    • Flexible base folder configuration
    • Plain text API key storage
  • 🚀 Seamless n8n Server Integration

    • Push and pull workflows directly from remote n8n servers
    • Workflow-server linking for automatic server resolution
    • Priority-based server configuration (linked server → ENV → --remote)
    • Support for multiple server configurations with API key management
  • 💻 Versatile CLI Interface

    • Emoji-rich output for interactive use
    • Script-friendly mode with --no-emoji flag
    • Comprehensive workflow operations

Installation

# Pip install
pip install n8n-deploy

# Use uv for faster setup and virtual environment
uv venv --python /usr/bin/python3 .venv
source .venv/bin/activate
uv pip install n8n-deploy

Quick Start

# Initialize database
n8n-deploy db init --data-dir ~/.n8n-deploy

# Create server and add API key
n8n-deploy server create production https://n8n.example.com
echo "your-n8n-api-key" | n8n-deploy apikey add - --name "prod-key"

# Link workflow to server (automatic server resolution)
n8n-deploy wf add workflow.json --link-remote production

# Push/pull uses linked server automatically (no --remote needed!)
n8n-deploy wf push workflow-name  # Uses production server
n8n-deploy wf pull workflow-name  # Uses production server

# Override with --remote for ad-hoc operations
n8n-deploy wf push workflow-name --remote staging

# List workflows from server
n8n-deploy wf server --remote production

Community & Support

💬 Get Help & Connect:

  • Discussions - Ask questions, share ideas, showcase workflows
  • Issues - Report bugs or request features
  • Documentation - Complete guides and API reference

Discussion Categories:

  • 📣 Announcements - Project updates and releases
  • 🙏 Q&A - Get help from the community
  • 💡 Ideas - Suggest new features
  • 🎯 Show and Tell - Share your workflows
  • #️⃣ General - Everything else

Configuration

n8n-deploy supports multiple configuration methods:

  1. CLI Flags
  2. Environment Variables
  3. .env Files (in development mode)

Environment Variables

  • N8N_DEPLOY_FLOWS_DIR: Workflow files directory
  • N8N_DEPLOY_DATA_DIR: Application data directory
  • N8N_SERVER_URL: n8n server URL for remote operations

Documentation

📚 Read the full documentation

Quick Links:

Contributing

We welcome contributions! Please see our Contributing Guide and Code of Conduct.

Quick Links:

License

This project is licensed under the MIT License - see the LICENSE file for details.

Requirements

  • Python 3.8+
  • n8n server (local or remote)
  • Basic understanding of workflow management

Performance Note

Designed for efficient workflow management with minimal overhead. Ideal for DevOps, automation engineers, and workflow enthusiasts.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

n8n_deploy-0.2.0.tar.gz (243.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

n8n_deploy-0.2.0-py3-none-any.whl (81.9 kB view details)

Uploaded Python 3

File details

Details for the file n8n_deploy-0.2.0.tar.gz.

File metadata

  • Download URL: n8n_deploy-0.2.0.tar.gz
  • Upload date:
  • Size: 243.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for n8n_deploy-0.2.0.tar.gz
Algorithm Hash digest
SHA256 4e38cda607696b8b7e6e9692e2d8dda73e4516f2063cb25c3d5ea750dcde7bdc
MD5 576e3a34ab52b2f497843b2280155a62
BLAKE2b-256 3bd28924a8cb2c0f27b7e0c1b8b8f30dab1e989da2fcfb28d9d6e2ae1171df2f

See more details on using hashes here.

Provenance

The following attestation bundles were made for n8n_deploy-0.2.0.tar.gz:

Publisher: ci.yml on lehcode/n8n-deploy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file n8n_deploy-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: n8n_deploy-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 81.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for n8n_deploy-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ec88a4f4f598f7579ab62658a28e5a1f3ff675ae568b09dcf4863f8f256d0919
MD5 7610857bda766431c5ec56e30d1cffdc
BLAKE2b-256 cd024c9165046db48daec9d08f2095c88c1eeaaafa5159624fd3535a1419966b

See more details on using hashes here.

Provenance

The following attestation bundles were made for n8n_deploy-0.2.0-py3-none-any.whl:

Publisher: ci.yml on lehcode/n8n-deploy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page