N8n cli bulk

From 8Dvibes/n8n-cli · View interactive version

N8n cli bulk is an AI agent skill from the GitHub repository 8Dvibes/n8n-cli. Run bulk activate/deactivate/archive/transfer operations across n8n workflows with mandatory dry-run first. Operates on existing tags -- NOT tag design (use /n8n-cli-tag-governance). Use for batch state changes and project reorgs.

How to use this skill

Skill file

/n8n-cli-bulk — Bulk Workflow Operations

Run safe bulk operations against n8n with mandatory dry-run-first behavior.

Supported operations

Procedure

  1. Parse the user's bulk request into one of the supported operations above
  2. Resolve the target set:
  1. Build a dry-run plan:

```

## Dry run: archive-by-age 90

The following 12 workflows will be ARCHIVED (no executions in 90+ days):

1. Foo (id: abc, last run: 2025-12-01)

2. Bar (id: def, last run: never)

...

Workflows that will NOT be touched:

Type CONFIRM to proceed, or ABORT to cancel.

```

  1. Wait for explicit confirmation — the literal string "CONFIRM" or equivalent. Never proceed on a vague "yes" for destructive operations.
  2. Execute the operation in batches:
  1. Report results:
  1. Offer rollback for reversible operations:

Safety rules

Output format

Tips

Important n8n quirks to know

  1. n8n cloud prunes execution history. Only the last N executions are retained (varies by plan, typically 7-30 days). For archive-by-age operations, "no recent executions in the API" does NOT necessarily mean "the workflow is dead" — it might just mean the executions have been pruned. Always cross-reference with the workflow's triggerCount or updatedAt timestamp before recommending archival. Surface this caveat in the dry-run output so the user knows.
  1. wf set-tags requires at least one tag ID. You cannot clear all tags via wf set-tags <id> (the CLI requires at least one positional arg). To remove ALL tags from a workflow, the workaround is to PUT an empty array directly to /workflows/{id}/tags via the n8n API. If you need this often, propose adding a wf clear-tags subcommand to n8n-cli.
  1. wf set-tags REPLACES existing tags, not appends. If you want to add a tag without removing existing ones, first fetch current tags with wf tags <id>, combine with the new tag, then set the combined list.
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.