Skip to content
Apothem
CLI 参考

harnesses

apothem harnesses 命令组的 CLI 参考。

列出并查看已注册的工具适配器。

harnesses 是一个命令组,包含两个子命令:list 和 show。

概要

apothem harnesses list [--quiet|-q] [--verbose|-v]
                       [--format plain|json] [--json] [--no-color]
apothem harnesses show NAME
                       [--quiet|-q] [--verbose|-v]
                       [--format plain|json] [--json] [--no-color]

子命令

harnesses list

列出所有已注册的工具适配器。

选项描述
--quiet, -q抑制信息性输出;只输出错误。
--verbose, -v输出额外的诊断信息。
--format plain|json输出格式(默认:plain)。
--json--format json 的简写。
--no-color在输出中禁用 ANSI 颜色代码。
-h, --help显示帮助并退出。

harnesses show NAME

显示特定工具适配器的详细信息。NAME 是 kebab-case 形式的工具标识符;运行 apothem harnesses list 可查看可用的标识符。

选项描述
NAME要查看的工具适配器(必需的位置参数)。
--quiet, -q抑制信息性输出;只输出错误。
--verbose, -v输出额外的诊断信息。
--format plain|json输出格式(默认:plain)。
--json--format json 的简写。
--no-color在输出中禁用 ANSI 颜色代码。
-h, --help显示帮助并退出。

示例

apothem harnesses list
apothem harnesses list --json
apothem harnesses show claude-code
apothem harnesses show claude-code --json

已注册的工具 ID 如下:

antigravity
claude-code
codebuddy
codex
cursor
gemini-cli
github-copilot
glm
hermes
kimi-code
kiro
open-claw
opencode
qwen-code
trae
windsurf
zed

退出码

代码含义
0成功
1未找到工具(harnesses show 使用了未知的 NAME),或者每个适配器都未能加载或报告(harnesses list)
2至少列出了一个适配器,但至少有一个未能报告(harnesses list)
64用法错误:未知的选项或命令,或者缺失或无效的选项值。在 --json 下,该错误是一个代码为 cli.usage 的 JSON 信封。

另请参阅

On this page