npmove
Small command-line tool to move, back up, and diff n8n workflows between instances.
npmove talks to the n8n REST API. It is useful when you have more than one n8n instance (typical setup: dev / staging / prod) and you want to keep workflows in sync without clicking through the UI or hand-editing exported JSON.
Install
pip install npmove
Python 3.9+ required.
Quick start
Save credentials for an instance (do this once per server):
npmove auth dev https://dev.n8n.example.com --token <api-token>
npmove auth prod https://n8n.example.com --token <api-token> --default
List workflows on the default instance:
npmove list
npmove list --active
Test string for example Export a single workflow to stdout:
npmove export 42
Export a single workflow to a file:
npmove export 42 -o workflows/my-flow.json
Export every workflow to a directory (one JSON per workflow, named <slug>.<id>.json):
npmove export --all -o ./backups/
Import a workflow onto another instance:
npmove import workflows/my-flow.json --instance prod
Optionally rename on import:
npmove import workflows/my-flow.json --instance prod --name "My Flow (prod)"
Compare a local file with the remote version (auto-match by workflow name, or pass --id):
npmove diff workflows/my-flow.json --instance prod
diff exits with status 1 if there are differences — handy for CI checks.
Commands
| Command | Purpose |
|---|---|
npmove auth <name> <url> --token <token> |
Save instance credentials |
npmove instances |
List configured instances |
npmove forget <name> |
Remove an instance |
npmove list |
List workflows on the configured instance |
npmove export <id> |
Export one workflow |
npmove export --all -o <dir> |
Export every workflow |
npmove import <file> |
Create a new workflow on the instance |
npmove diff <file> |
Compare local file with the remote workflow |
Run npmove <command> --help to see all flags.
Where credentials are stored
Default location: ~/.npmove/config.json (the file is chmod-600 on POSIX).
You can override the directory with the NPMOVE_HOME environment variable.
The file holds plain text tokens — treat it like any other dotfile that contains secrets.
What npmove import does (and does not)
It creates a new workflow on the target instance. It does not overwrite an existing one by name or id. If you need to overwrite, delete the target workflow first (DELETE in the n8n UI or via the API), then import.
Server-managed fields (id, versionId, createdAt, updatedAt, meta.instanceId, ...) are stripped before the create call — n8n assigns them.
Limitations
- Credentials inside workflows are not transferred — n8n does not expose secrets via the workflow API, by design. After import, re-link credentials in the n8n UI.
- The tool currently supports the standard self-hosted n8n REST API (
/api/v1/...). n8n Cloud uses the same shape, set the--urlaccordingly.
License
MIT
Metadata
Release files for npmove 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| npmove-0.0.2.tar.gz | 9.8 kB | Without provenance | Details for npmove-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| npmove-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for npmove-0.0.2-py3-none-any.whl |
Total release size: 19.2 kB
Release files / npmove-0.0.2.tar.gz
| Download URL | npmove-0.0.2.tar.gz |
|---|---|
| Size | 9.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
52d4cfab6ba46b044081e631c1adc6c392c2b0f787a6da97d20ab363f74f85b0
|
|
BLAKE2b-256 checksum How to use checksums |
212f1047ffce6fe39aaa73642f24fc26934db4c64f4a2d3571c7675568e8fe8d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Release files / npmove-0.0.2-py3-none-any.whl
| Download URL | npmove-0.0.2-py3-none-any.whl |
|---|---|
| Size | 9.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8ff019510e8850fc05aeb3e1f336e2646b91ee56d4e02445eb8376543f3d5ca7
|
|
BLAKE2b-256 checksum How to use checksums |
db5ade9622447b5ec43de9eaa9216d4678c878c0d4db91020b1a96030934e484
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Security for npmove 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.