Loading...
Loading...
Manage n8n workflows and troubleshoot executions. Use when user asks about n8n workflows, webhook triggers, execution errors, or wants to edit workflow nodes.
npx skill4agent add neversight/skills_feed n8n/webhook/<path>/webhook-test/<path>uvx --from git+https://github.com/pokgak/n8n-cli n8n-cli --helpN8N_API_KEYN8N_BASE_URLhttps://your-instance.app.n8n.cloud# List all workflows
uvx --from git+https://github.com/pokgak/n8n-cli n8n-cli workflows
# Active workflows only
uvx --from git+https://github.com/pokgak/n8n-cli n8n-cli workflows --active
# JSON output
uvx --from git+https://github.com/pokgak/n8n-cli n8n-cli workflows --json# Get workflow details
uvx --from git+https://github.com/pokgak/n8n-cli n8n-cli workflow <workflow_id>
# Full JSON output
uvx --from git+https://github.com/pokgak/n8n-cli n8n-cli workflow <workflow_id> --jsonuvx --from git+https://github.com/pokgak/n8n-cli n8n-cli activate <workflow_id>
uvx --from git+https://github.com/pokgak/n8n-cli n8n-cli deactivate <workflow_id># List all nodes (Code nodes marked with *)
uvx --from git+https://github.com/pokgak/n8n-cli n8n-cli nodes <workflow_id># View node details
uvx --from git+https://github.com/pokgak/n8n-cli n8n-cli node <workflow_id> "node name"
# View Code node's JavaScript
uvx --from git+https://github.com/pokgak/n8n-cli n8n-cli node <workflow_id> "node name" --code
# Update Code node from file
uvx --from git+https://github.com/pokgak/n8n-cli n8n-cli node <workflow_id> "node name" --set-code script.js
# Rename a node
uvx --from git+https://github.com/pokgak/n8n-cli n8n-cli node <workflow_id> "old name" --rename "new name"
# Set node parameter (supports dot notation for nested keys)
uvx --from git+https://github.com/pokgak/n8n-cli n8n-cli node <workflow_id> "HTTP Request" --set-param url="https://api.example.com"
uvx --from git+https://github.com/pokgak/n8n-cli n8n-cli node <workflow_id> "Agent" --set-param options.systemMessage="You are helpful"
# Set multiple parameters at once
uvx --from git+https://github.com/pokgak/n8n-cli n8n-cli node <workflow_id> "Node" -p timeout=5000 -p retries=3
# Bulk update parameters from JSON (deep merged)
uvx --from git+https://github.com/pokgak/n8n-cli n8n-cli node <workflow_id> "Node" --set-param-json '{"options": {"systemMessage": "Hello"}}'# Export all Code nodes to files
uvx --from git+https://github.com/pokgak/n8n-cli n8n-cli export-code <workflow_id> ./nodes/
# Import updated scripts back
uvx --from git+https://github.com/pokgak/n8n-cli n8n-cli import-code <workflow_id> ./nodes/# Trigger workflow by name via webhook
uvx --from git+https://github.com/pokgak/n8n-cli n8n-cli trigger "Workflow Name"
# With JSON payload
uvx --from git+https://github.com/pokgak/n8n-cli n8n-cli trigger "Workflow Name" --data '{"key": "value"}'
# With payload from file
uvx --from git+https://github.com/pokgak/n8n-cli n8n-cli trigger "Workflow Name" --file payload.json
# Use test webhook URL
uvx --from git+https://github.com/pokgak/n8n-cli n8n-cli trigger "Workflow Name" --test# Recent executions
uvx --from git+https://github.com/pokgak/n8n-cli n8n-cli executions
# Filter by workflow
uvx --from git+https://github.com/pokgak/n8n-cli n8n-cli executions --workflow <workflow_id>
# Filter by status (error, success, running, waiting, canceled)
uvx --from git+https://github.com/pokgak/n8n-cli n8n-cli executions --status error
# Limit results
uvx --from git+https://github.com/pokgak/n8n-cli n8n-cli executions -n 100# Get execution details (shows error info for failed executions)
uvx --from git+https://github.com/pokgak/n8n-cli n8n-cli execution <execution_id>
# Include full execution data
uvx --from git+https://github.com/pokgak/n8n-cli n8n-cli execution <execution_id> --data
# JSON output
uvx --from git+https://github.com/pokgak/n8n-cli n8n-cli execution <execution_id> --data --jsonuvx --from git+https://github.com/pokgak/n8n-cli n8n-cli retry <execution_id>
# Use latest workflow version
uvx --from git+https://github.com/pokgak/n8n-cli n8n-cli retry <execution_id> --latest# List all credentials (metadata only - id, name, type)
uvx --from git+https://github.com/pokgak/n8n-cli n8n-cli credentials
# Get schema for a credential type (shows required fields)
uvx --from git+https://github.com/pokgak/n8n-cli n8n-cli credential-schema httpHeaderAuth
uvx --from git+https://github.com/pokgak/n8n-cli n8n-cli credential-schema openAiApi --json
# Create a credential
uvx --from git+https://github.com/pokgak/n8n-cli n8n-cli create-credential --name "My API Key" --type httpHeaderAuth --data '{"name": "X-API-Key", "value": "secret"}'
# Create from file
uvx --from git+https://github.com/pokgak/n8n-cli n8n-cli create-credential --name "OpenAI" --type openAiApi --data-file credentials.json
# Delete a credential
uvx --from git+https://github.com/pokgak/n8n-cli n8n-cli delete-credential <credential_id># 1. Find failed executions
uvx --from git+https://github.com/pokgak/n8n-cli n8n-cli executions --status error
# 2. Get error details
uvx --from git+https://github.com/pokgak/n8n-cli n8n-cli execution <id>
# 3. Get full data for debugging
uvx --from git+https://github.com/pokgak/n8n-cli n8n-cli execution <id> --data --json# 1. Export all Code nodes
uvx --from git+https://github.com/pokgak/n8n-cli n8n-cli export-code <workflow_id> ./nodes/
# 2. Edit scripts in your editor
# Files: ./nodes/node_name.js
# 3. Import changes back
uvx --from git+https://github.com/pokgak/n8n-cli n8n-cli import-code <workflow_id> ./nodes/# View current code
uvx --from git+https://github.com/pokgak/n8n-cli n8n-cli node <workflow_id> "node name" --code > script.js
# Edit script.js...
# Update node
uvx --from git+https://github.com/pokgak/n8n-cli n8n-cli node <workflow_id> "node name" --set-code script.js# Trigger with test payload
uvx --from git+https://github.com/pokgak/n8n-cli n8n-cli trigger "Workflow Name" --test --file test_payload.json
# Check execution result
uvx --from git+https://github.com/pokgak/n8n-cli n8n-cli executions --workflow <id> -n 1--data --jsonexecution
├── id # Execution ID
├── status # success, error, running, etc.
├── mode # webhook, trigger, manual, retry
├── startedAt / stoppedAt # Timestamps
├── workflowData # Snapshot of workflow at execution time
│ ├── name
│ ├── nodes[]
│ └── connections
└── data
└── resultData
├── runData # Output from each node
│ └── [nodeName][]
│ ├── data.main[][] # Node output items
│ └── executionStatus
├── lastNodeExecuted
└── error # If failed
├── message
├── description
└── node # Which node failedexecution --data --jsonrunData.Webhook[0].data.main[0][0].json.bodynode <workflow_id> "node name" --code