n8n-deploy - a simple N8N Workflow Manager with SQLite metadata store
Project description
n8n-deploy: Database-First n8n Workflow Management CLI
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-emojiflag - 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:
- CLI Flags
- Environment Variables
.envFiles (in development mode)
Environment Variables
N8N_DEPLOY_FLOWS_DIR: Workflow files directoryN8N_DEPLOY_DATA_DIR: Application data directoryN8N_SERVER_URL: n8n server URL for remote operations
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file n8n_deploy-0.1.5.tar.gz.
File metadata
- Download URL: n8n_deploy-0.1.5.tar.gz
- Upload date:
- Size: 209.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd507db87762a870c891d33acef855cde43f4cf0100fc076bc406d5964b0d433
|
|
| MD5 |
e916491bef0fc187738fbb89331d6988
|
|
| BLAKE2b-256 |
cae1c8f59a8326220831362ea892b82b3de89e4dac870808ebc2117db216cf23
|
Provenance
The following attestation bundles were made for n8n_deploy-0.1.5.tar.gz:
Publisher:
ci.yml on lehcode/n8n-deploy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
n8n_deploy-0.1.5.tar.gz -
Subject digest:
dd507db87762a870c891d33acef855cde43f4cf0100fc076bc406d5964b0d433 - Sigstore transparency entry: 728622700
- Sigstore integration time:
-
Permalink:
lehcode/n8n-deploy@7c9bb6d1e929b246c14675992a6b8dbd8a9bb5b2 -
Branch / Tag:
refs/tags/v0.1.5 - Owner: https://github.com/lehcode
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@7c9bb6d1e929b246c14675992a6b8dbd8a9bb5b2 -
Trigger Event:
push
-
Statement type:
File details
Details for the file n8n_deploy-0.1.5-py3-none-any.whl.
File metadata
- Download URL: n8n_deploy-0.1.5-py3-none-any.whl
- Upload date:
- Size: 56.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c7a82a1eb18993585e2979011d99e6df2e42ab10e0d85138271b2a4ad2b0d59
|
|
| MD5 |
8474bb228325348c426519084330a357
|
|
| BLAKE2b-256 |
b85d0a70b341b50103fa73c2c9a3c9353b9451e13d039ca340d9e8aa62b2cedf
|
Provenance
The following attestation bundles were made for n8n_deploy-0.1.5-py3-none-any.whl:
Publisher:
ci.yml on lehcode/n8n-deploy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
n8n_deploy-0.1.5-py3-none-any.whl -
Subject digest:
9c7a82a1eb18993585e2979011d99e6df2e42ab10e0d85138271b2a4ad2b0d59 - Sigstore transparency entry: 728622705
- Sigstore integration time:
-
Permalink:
lehcode/n8n-deploy@7c9bb6d1e929b246c14675992a6b8dbd8a9bb5b2 -
Branch / Tag:
refs/tags/v0.1.5 - Owner: https://github.com/lehcode
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@7c9bb6d1e929b246c14675992a6b8dbd8a9bb5b2 -
Trigger Event:
push
-
Statement type: