OpenParable
Skip to content
← Back to skills

N8n CLI

Apps & Automation
n8n-cli

N8n CLI is an Agent Skill for apps & automation published in the majiayu000/claude-skill-registry repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Manage n8n workflows, credentials, executions, tags, and data tables via the n8n REST API.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/majiayu000/claude-skill-registry/blob/HEAD/skills/workflow/n8n-cli/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/n8n-cli, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Default output is LLM-friendly text. -j/--json for JSON. Pipe with - for stdin.

# Credentials — list|get|create|update|delete|test|schema
n8n-cli credential list
n8n-cli credential get|delete|test <id>
n8n-cli credential create|update <id> cred.json
n8n-cli credential schema httpBasicAuth

# Workflows — list|get|create|update|delete|activate|deactivate
n8n-cli workflow list [--active|--inactive] [--tags t1,t2] [--name text] [--limit N]
n8n-cli workflow get <id>              # full JSON for round-trip editing
n8n-cli workflow create wf.json
n8n-cli workflow update <id> wf.json   # auto-filters to writable fields only
n8n-cli workflow delete|activate|deactivate <id>

# Executions — list|get|delete|retry|stop
n8n-cli execution list [--workflow <id>] [--status error] [--limit 5]
n8n-cli execution get <id> [--show-data]
n8n-cli execution delete|stop <id>
n8n-cli execution retry <id> [--load-workflow]

# Tags — list|get|create|update|delete
n8n-cli tag list
n8n-cli tag create <name>
n8n-cli tag update <id> <new-name>
n8n-cli tag get|delete <id>

# Data tables
n8n-cli datatable list|get|create|update|delete <id> [...]
n8n-cli datatable rows <id> [--filter '<json>' --sort col:asc --limit 20]
n8n-cli datatable insert <id> rows.json [--return count|id|all]
n8n-cli datatable update-rows|upsert <id> body.json  # {"filter":{...},"data":{...}}
n8n-cli datatable delete-rows <id> --filter '<json>' [--dry-run]
# filter: {"type":"and","filters":[{"columnName":"c","condition":"eq","value":"v"}]}

# Test webhook
n8n-cli test <id> [-d '{"key":"val"}'] [--wait-execution] [--activate] [--dry-run]

# Bulk sync
n8n-cli import -d ./definitions [--ids a,b] [--dry-run]   # server → local JSON
n8n-cli apply -d ./definitions [--ids a,b] [--dry-run] [--force]  # local → server

# Raw API
n8n-cli raw GET|POST|PUT|DELETE /path [body.json]