بنقرة واحدة
n8n-cli
Manage n8n workflows on the NextNode automation instance with the local n8n-cli tool.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Manage n8n workflows on the NextNode automation instance with the local n8n-cli tool.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Deep interview for a single feature or module brief that produces a final spec or implementation plan.
@nextnode-solutions/logger standards. Reference this skill when a project uses @nextnode-solutions/logger or when logger integration is being added.
NextNode brand guidelines — color palette, typography, logo system, and per-project branding rules. Use when doing UI/frontend work on a NextNode project.
NextNode ecosystem hub. Auto-load when working on any NextNode or SaaS project — covers nextnode.toml config, CI workflows, docker-compose rules, and cross-references to package skills.
Audit a NextNode/SaaS project against all NextNode standards — produces a compliance report with pass/fail/missing status for every required item.
Strategic project decomposition that turns a large idea into module briefs for later /interview runs.
| name | n8n-cli |
| description | Manage n8n workflows on the NextNode automation instance with the local n8n-cli tool. |
| user-invocable | true |
| argument-hint | <list|get|create|update|activate|deactivate|execute|delete> [args] |
| autoload-dirs | ["/Users/walid/Development/nextnode","/Users/walid/Development/saas"] |
Skill for managing n8n workflows using the n8n-cli command-line tool.
The n8n-cli tool provides command-line access to manage n8n workflows on the NextNode instance (https://automation.nextnode.fr). It supports listing, creating, updating, activating, and executing workflows.
n8n-cli must be installed at ~/.local/bin/n8n-cliN8N_API_KEY environment variable must be setjq is recommended for formatted JSON output (optional)n8n-cli list
Lists all workflows in the n8n instance with their IDs, names, and activation status.
n8n-cli get <workflow-id>
Retrieves detailed information about a specific workflow including nodes, connections, and settings.
n8n-cli create <workflow-file.json>
Creates a new workflow from a JSON file. Returns the new workflow ID and URL.
Example:
n8n-cli create dripify-hubspot-full.json
n8n-cli update <workflow-id> <workflow-file.json>
Updates an existing workflow while preserving metadata (name, tags, etc.).
Example:
n8n-cli update abc123 dripify-hubspot-full.json
n8n-cli activate <workflow-id>
n8n-cli deactivate <workflow-id>
Enables or disables a workflow. Only active workflows can be triggered by webhooks.
n8n-cli execute <workflow-id>
Manually triggers a workflow execution for testing purposes.
n8n-cli delete <workflow-id>
Permanently deletes a workflow (requires confirmation).
# Check if CLI is working
n8n-cli list
# Find your workflow ID (if updating existing)
n8n-cli list | grep -i "workflow-name"
WORKFLOW_ID="your-workflow-id"
n8n-cli get $WORKFLOW_ID > backup-$(date +%Y%m%d).json
Edit the JSON file with your changes, or have the AI generate a new version.
n8n-cli update $WORKFLOW_ID modified-workflow.json
# Activate if not already active
n8n-cli activate $WORKFLOW_ID
# Execute manually to test
n8n-cli execute $WORKFLOW_ID
# Check the workflow is running correctly
n8n-cli get $WORKFLOW_ID
Generate the workflow JSON:
httpMethod to "POST"pathCreate the workflow:
n8n-cli create my-webhook-workflow.json
Get the webhook URL:
https://automation.nextnode.fr/webhook/{path}https://automation.nextnode.fr/webhook/dripify-webhookActivate:
n8n-cli activate WORKFLOW_ID
Instead of deleting and reimporting:
# Get current ID
ID=$(n8n-cli list | jq -r '.data[] | select(.name=="My Workflow") | .id')
# Update directly
n8n-cli update $ID updated-workflow.json
# Activate all inactive workflows
n8n-cli list | jq -r '.data[] | select(.active==false) | .id' | while read id; do
n8n-cli activate $id
done
Common errors and solutions:
Solution: Export your API key:
export N8N_API_KEY="n8n_api_your_key_here"
Solution: Verify the workflow ID:
n8n-cli list | grep -i "workflow-name"
Solution: Validate the JSON file:
jq . workflow-file.json
When the user asks to:
n8n-cli create file.jsonn8n-cli update ID file.jsonn8n-cli get IDn8n-cli activate ID| Variable | Description | Default |
|---|---|---|
N8N_URL | n8n instance URL | https://automation.nextnode.fr |
N8N_API_KEY | API authentication key | Required |
The CLI uses the n8n REST API v1:
$N8N_URL/api/v1X-N8N-API-KEY headerapplication/json