About cli-anything-n8n
cli-anything-n8n is a command-line tool for managing n8n workflows and related objects, for workflow automation and AI agent use. It exposes commands for workflows, executions, credentials, variables, and tags through the n8n API, with structured JSON output.
Key features
- 01Create, update, and activate workflows
- 02List, delete, and retry executions
- 03Create, delete, and transfer credentials
- 04Manage variables and tags
- 05Configure API connection
- 06Structured JSON output
Use cases
- 01Maintain n8n workflows from the command line
- 02Inspect or retry workflow executions
- 03Manage variables, tags, and credentials
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ hkuds/ cli-anything --skill cli-anything-n8nAfter installing, type/cli-anything-n8nin Claude Code to confirm it loaded.
Details
From the project READMEcli-anything-n8n
CLI harness for n8n workflow automation — built with the CLI-Anything pattern. Verified against n8n OpenAPI spec v1.1.1.
Installation
pip install cli-anything-n8n
Configuration
cli-anything-n8n config set base_url https://your-n8n-instance.com
cli-anything-n8n config set api_key your-api-key
# Or environment variables
export N8N_BASE_URL=https://your-n8n-instance.com
export N8N_API_KEY=your-api-key
export N8N_TIMEOUT=60 # optional, default 30s
Command Groups
| Group | Commands |
|---|---|
| workflow | list, get, create, update, delete, activate, deactivate, tags, set-tags, transfer |
| execution | list, get, delete, retry |
| credential | create, delete, schema, transfer |
| variable | list, create, update, delete |
| tag | list, get, create, update, delete |
| config | show, set |
For AI Agents
- Always use
--jsonflag for structured output - Use
@file.jsonto pass complex JSON from files - Check return codes: 0 = success, non-zero = error
- All IDs are strings, not integers
- API key is always masked in
config showoutput - Not available in public API: data tables, credential listing, execution stop
Comments
Markdown supported