cli-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
--json flag for structured output
- Use
@file.json to 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 show output
- Not available in public API: data tables, credential listing, execution stop
1---2name: cli-anything-n8n3description: Command-line interface for n8n workflow automation platform. Manages workflows, executions, credentials, variables, and tags. Based on n8n Public API v1.1.1 (n8n >= 1.0.0).4---5
6# cli-anything-n8n
7
8CLI harness for n8n workflow automation — built with the CLI-Anything pattern.
9Verified against n8n OpenAPI spec v1.1.1.
10
11## Installation
12
13```bash
14pip install cli-anything-n8n
15```
16
17## Configuration
18
19```bash
20cli-anything-n8n config set base_url https://your-n8n-instance.com
21cli-anything-n8n config set api_key your-api-key
22
23# Or environment variables
24export N8N_BASE_URL=https://your-n8n-instance.com
25export N8N_API_KEY=your-api-key
26export N8N_TIMEOUT=60 # optional, default 30s
27```
28
29## Command Groups
30
31| Group | Commands |
32|-------|----------|
33| workflow | list, get, create, update, delete, activate, deactivate, tags, set-tags, transfer |
34| execution | list, get, delete, retry |
35| credential | create, delete, schema, transfer |
36| variable | list, create, update, delete |
37| tag | list, get, create, update, delete |
38| config | show, set |
39
40## For AI Agents
41
42- Always use `--json` flag for structured output
43- Use `@file.json` to pass complex JSON from files
44- Check return codes: 0 = success, non-zero = error
45- All IDs are strings, not integers
46- API key is always masked in `config show` output
47- Not available in public API: data tables, credential listing, execution stop