N8n cli upgrade preflight

From 8Dvibes/n8n-cli · View interactive version

N8n cli upgrade preflight is an AI agent skill from the GitHub repository 8Dvibes/n8n-cli. Pre-flight safety check before upgrading n8n. Scans for deprecated nodes, breaking changes, and at-risk community packages. Outputs a go/no-go report. Use before any major n8n version bump.

How to use this skill

Skill file

/n8n-cli-upgrade-preflight — n8n Upgrade Risk Assessment

Scan an n8n instance against a target version and produce a report of what's likely to break.

Procedure

  1. Identify current and target versions:
  1. Pull n8n changelog for the version range:
  1. Inventory the instance:
  1. Cross-reference:

a. Deprecated nodes — check the inventory against known deprecations in the changelog

b. Type version bumps — nodes where the typeVersion is now behind the latest (these usually still work but lose new features)

c. Removed credential types — credentials whose type was removed

d. Community packages — for each installed package, check if it's compatible with the target n8n version (if known)

e. Code node syntax — any Python or JS Code nodes that might break with a runtime upgrade

  1. Build the report:
## n8n Upgrade Pre-flight: vX.Y.Z → vA.B.C

### Summary
- Workflows scanned: N
- Unique node types in use: M
- 🔴 Critical issues: X
- 🟡 Warnings: Y
- 🟢 Compatible: Z

### Critical issues (will break)
1. **Node `n8n-nodes-base.deprecatedFoo` removed in vA.B.C**
   - Used in 4 workflows: ...
   - Migration: replace with `n8n-nodes-base.newFoo`
   - Recommended action: update workflows BEFORE upgrading

2. **Community package `@some/package` not compatible**
   - Installed as: ...
   - Used in: workflow X
   - Recommended action: check the package repo for vA.B.C compatibility, or remove the package and replace its usage

### Warnings (might break, depending on usage)
1. **Code node syntax change** — Python 3.9 deprecated in target version
   - Affected: 3 Code nodes in 2 workflows
   - Recommendation: review and test these specifically after upgrade

### Compatible (no action needed)
- N node types are unchanged between versions
- N credential types are unchanged

### Recommended upgrade path
1. Back up the entire instance first: `n8n-cli skills install n8n-cli-backup && /n8n-cli-backup`
2. Resolve the X critical issues above by updating affected workflows
3. Test the affected workflows manually after the changes
4. Take a fresh snapshot
5. Upgrade n8n
6. Run /n8n-cli-status to verify all active workflows are healthy
7. Watch /n8n-cli-monitor for the next 24 hours

Output format

Tips

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.