Installation
Requires Node >= 22.18 — the CLI is TypeScript (.mts), executed natively
via Node’s type stripping; there is no build step for development.
npm install -g n8n-decanter
Alternatives:
- From a git checkout:
npm link(runnpm run buildonce first — the installed bin is the compileddist/), or invokenode n8n-decanter.mts …directly, no build needed. - Per sync dir: add
n8n-decanterto the sync dir’sdevDependenciesinstead of installing globally. A local install lands innode_modules/.bin, not on yourPATH, so invoke it asnpx n8n-decanter <verb>(or via annpm runscript — npm putsnode_modules/.binonPATHitself). A baren8n-decanter <verb>is the one form that won’t resolve.npx n8n-decanter …works under a global install too, so it is the safe form to use in scripts and docs shared across a team. The agent configinitscaffolds allows both forms, and the MCP guard it wires up usesnpx --no-installfor exactly this reason.
Old Node fails with a SyntaxError
On Node older than 22.18 the CLI fails at startup with a confusing
SyntaxError rather than a clean version message: npm’s engines field only
warns at install time (unless you set engine-strict). If you see a syntax
error pointing into a .mts file, check node --version first.
Next: Quickstart — set up a sync dir and pull your first workflow.