cli-anything-n8n
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesecli-anything-n8n
cli-anything-n8n
CLI harness for n8n workflow automation — built with the CLI-Anything pattern.
Verified against n8n OpenAPI spec v1.1.1.
基于CLI-Anything模式构建的n8n工作流自动化CLI工具。
已针对n8n OpenAPI规范v1.1.1验证通过。
Installation
安装
bash
pip install cli-anything-n8nbash
pip install cli-anything-n8nConfiguration
配置
bash
cli-anything-n8n config set base_url https://your-n8n-instance.com
cli-anything-n8n config set api_key your-api-keybash
cli-anything-n8n config set base_url https://your-n8n-instance.com
cli-anything-n8n config set api_key your-api-keyOr 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
undefinedexport N8N_BASE_URL=https://your-n8n-instance.com
export N8N_API_KEY=your-api-key
export N8N_TIMEOUT=60 # 可选,默认30秒
undefinedCommand 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 |
| 分组 | 命令 |
|---|---|
| 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
针对AI Agents的说明
- Always use flag for structured output
--json - Use to pass complex JSON from files
@file.json - Check return codes: 0 = success, non-zero = error
- All IDs are strings, not integers
- API key is always masked in output
config show - Not available in public API: data tables, credential listing, execution stop
- 始终使用参数获取结构化输出
--json - 使用从文件中传递复杂JSON数据
@file.json - 检查返回码:0表示成功,非零表示错误
- 所有ID均为字符串类型,而非整数
- 在输出中API key始终会被掩码处理
config show - 以下功能未在公开API中提供:数据表、凭证列表、执行停止