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