superplane-cli
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSuperPlane CLI
SuperPlane CLI
Operate a SuperPlane instance through the CLI.
superplane通过 CLI操作SuperPlane实例。
superplaneQuick Reference
快速参考
| Task | Command |
|---|---|
| Connect to org | |
| Who am I | |
| List/switch contexts | |
| List canvases | |
| Create canvas | |
| Create canvas from YAML | |
| Export canvas | |
| Update canvas | |
| List available providers | |
| Describe a provider | |
| List connected integrations | |
| Inspect connected integration | |
| List integration resources | |
| List components | |
| Components from provider | |
| Describe a component | |
| List triggers | |
| Triggers from provider | |
| Describe a trigger | |
| List secrets | |
| Create secret | |
| List events | |
| Trace event executions | |
| List node executions | |
| Cancel execution | |
| 任务 | 命令 |
|---|---|
| 连接到组织 | |
| 查看当前用户 | |
| 列出/切换上下文 | |
| 列出Canvas | |
| 创建Canvas | |
| 从YAML创建Canvas | |
| 导出Canvas | |
| 更新Canvas | |
| 列出可用提供商 | |
| 描述某一提供商 | |
| 列出已连接的集成 | |
| 查看已连接的集成详情 | |
| 列出集成资源 | |
| 列出组件 | |
| 列出某提供商的组件 | |
| 描述某一组件 | |
| 列出触发器 | |
| 列出某提供商的触发器 | |
| 描述某一触发器 | |
| 列出密钥 | |
| 创建密钥 | |
| 列出事件 | |
| 追踪事件执行记录 | |
| 列出节点执行记录 | |
| 取消执行 | |
Verify CLI Is Installed
验证CLI是否已安装
Before any CLI operation, confirm the CLI is available:
bash
superplane whoamiIf this returns , the CLI is not installed. Stop and tell the user:
command not foundThe SuperPlane CLI is not installed. Install it from https://docs.superplane.com/installation/cli and then re-run this task.
Do not attempt to install the CLI on behalf of the user. Do not continue with doc-based guesswork — the CLI provides exact trigger names, component names, integration IDs, and config schemas that documentation cannot reliably substitute.
进行任何CLI操作前,请确认CLI已可用:
bash
superplane whoami如果返回,说明CLI未安装。请告知用户:
command not foundSuperPlane CLI未安装,请从https://docs.superplane.com/installation/cli下载安装后再执行此任务。
请勿尝试代用户安装CLI,也不要仅凭文档猜测操作——CLI提供了文档无法可靠替代的准确触发器名称、组件名称、集成ID和配置schema。
Core Workflow
核心工作流
1. Authenticate
1. 身份验证
Create a service account in the SuperPlane UI, then:
bash
superplane connect https://superplane.example.com <API_TOKEN>
superplane whoami在SuperPlane UI中创建服务账户,然后执行:
bash
superplane connect https://superplane.example.com <API_TOKEN>
superplane whoami2. Discover What Exists
2. 查看可用资源
Run these first to understand what's available:
bash
superplane index integrations # available providers
superplane integrations list # connected instances in this org
superplane index triggers # all trigger types
superplane index components # all component typesNarrow to one provider:
bash
superplane index triggers --from github
superplane index components --from githubInspect required config fields and payload shapes:
bash
superplane index triggers --name github.onPush
superplane index components --name semaphore.runWorkflowList runtime options for fields (e.g., repos, projects):
integration-resourcebash
superplane integrations list-resources --id <integration-id> --type <type> --parameters key1=value1,key2=value2Use first to find valid integration IDs.
superplane integrations list先运行以下命令了解当前可用的资源:
bash
superplane index integrations # 可用提供商
superplane integrations list # 当前组织已连接的实例
superplane index triggers # 所有触发器类型
superplane index components # 所有组件类型筛选单个提供商的资源:
bash
superplane index triggers --from github
superplane index components --from github查看必填配置字段和负载结构:
bash
superplane index triggers --name github.onPush
superplane index components --name semaphore.runWorkflow列出字段的运行时选项(如仓库、项目):
integration-resourcebash
superplane integrations list-resources --id <integration-id> --type <type> --parameters key1=value1,key2=value2请先执行获取有效的集成ID。
superplane integrations list3. Build a Canvas Incrementally
3. 逐步构建Canvas
Create a blank canvas, then iterate:
bash
superplane canvases create my-canvas
superplane canvases get my-canvas > canvas.yaml创建空白Canvas后逐步迭代:
bash
superplane canvases create my-canvas
superplane canvases get my-canvas > canvas.yamledit canvas.yaml
编辑canvas.yaml
superplane canvases update --file canvas.yaml
See [Canvas YAML Spec](references/canvas-yaml-spec.md) for the full format.superplane canvases update --file canvas.yaml
完整格式请参考[Canvas YAML 规范](references/canvas-yaml-spec.md)。4. Manage Secrets
4. 管理密钥
bash
superplane secrets create --file secret.yaml
superplane secrets list
superplane secrets update --file secret.yaml
superplane secrets delete <name_or_id>bash
superplane secrets create --file secret.yaml
superplane secrets list
superplane secrets update --file secret.yaml
superplane secrets delete <name_or_id>5. Monitor Runs
5. 监控运行状态
bash
superplane events list --canvas-id <id>
superplane events list-executions --canvas-id <id> --event-id <eid>bash
superplane events list --canvas-id <id>
superplane events list-executions --canvas-id <id> --event-id <eid>6. Troubleshooting Checklist
6. 排查问题清单
Run after every canvas update:
bash
superplane canvases get <name>Check:
- All required fields are present
configuration - Edges use the correct output channels
- No node remains (especially "integration is required")
errorMessage - No about duplicate names
warningMessage - Expressions reference existing node names (case-sensitive)
每次更新Canvas后执行:
bash
superplane canvases get <name>检查以下内容:
- 所有必填字段已填写
configuration - 节点间连线使用正确的输出通道
- 没有节点残留(尤其是“integration is required”)
errorMessage - 没有关于名称重复的
warningMessage - 表达式引用的节点名称存在且大小写正确
Resolving "integration is required"
解决“integration is required”问题
When a field type is (like or ), the node needs a connected integration instance.
integration-resourcerepositoryproject- — confirm the provider is connected
superplane integrations list - — inspect the connection
superplane integrations get <id> - Add to the node in the canvas YAML
integration.id - — find valid resource values
superplane integrations list-resources --id <id> --type <type> - — apply the fix
superplane canvases update --file canvas.yaml - — verify errors are cleared
superplane canvases get <name>
当字段类型为(如或)时,节点需要已连接的集成实例。
integration-resourcerepositoryproject- 执行——确认该提供商已连接
superplane integrations list - 执行——检查连接状态
superplane integrations get <id> - 在Canvas YAML中为节点添加字段
integration.id - 执行——查找有效的资源值
superplane integrations list-resources --id <id> --type <type> - 执行——应用修复
superplane canvases update --file canvas.yaml - 执行——验证错误已清除
superplane canvases get <name>
When to Use Other Skills
何时使用其他技能
| Need | Use Skill |
|---|---|
| Design a canvas from requirements | superplane-canvas-builder |
| Debug a failed execution | superplane-monitor |
| 需求 | 使用对应技能 |
|---|---|
| 根据需求设计Canvas | superplane-canvas-builder |
| 排查执行失败问题 | superplane-monitor |
Documentation
文档资源
For agents that can fetch URLs, the full SuperPlane docs are available in LLM-friendly format:
- Compact index: https://docs.superplane.com/llms.txt
- Full content: https://docs.superplane.com/llms-full.txt
对于可获取URL的Agent,完整的SuperPlane文档提供了LLM友好格式:
References
参考资料
- Canvas YAML Spec — Full YAML format with examples
- Canvas YAML 规范——包含示例的完整YAML格式说明