cli-anything-n8n

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

cli-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-n8n
bash
pip install cli-anything-n8n

Configuration

配置

bash
cli-anything-n8n config set base_url https://your-n8n-instance.com
cli-anything-n8n config set api_key your-api-key
bash
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
undefined
export N8N_BASE_URL=https://your-n8n-instance.com export N8N_API_KEY=your-api-key export N8N_TIMEOUT=60 # 可选,默认30秒
undefined

Command Groups

命令组

GroupCommands
workflowlist, get, create, update, delete, activate, deactivate, tags, set-tags, transfer
executionlist, get, delete, retry
credentialcreate, delete, schema, transfer
variablelist, create, update, delete
taglist, get, create, update, delete
configshow, set
分组命令
workflowlist, get, create, update, delete, activate, deactivate, tags, set-tags, transfer
executionlist, get, delete, retry
credentialcreate, delete, schema, transfer
variablelist, create, update, delete
taglist, get, create, update, delete
configshow, set

For AI Agents

针对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
  • 始终使用
    --json
    参数获取结构化输出
  • 使用
    @file.json
    从文件中传递复杂JSON数据
  • 检查返回码:0表示成功,非零表示错误
  • 所有ID均为字符串类型,而非整数
  • config show
    输出中API key始终会被掩码处理
  • 以下功能未在公开API中提供:数据表、凭证列表、执行停止