Skip to content
Apothem
CLI 参考

verify

apothem verify 命令的 CLI 参考。

验证某个harness适配器的安装。

概要

apothem verify --harness NAME|all [--project PATH]
                [--quiet|-q] [--verbose|-v]
                [--format plain|json] [--json] [--no-color]

调用每个选定适配器的 verify() 实现。仅当所有选定的适配器都报告其托管目标存在且有效时才以 0 退出。

选项

选项描述
--harness NAME要验证的harness适配器,或用 all 表示整个注册表的集合(必填)。
--project PATH项目范围harness的项目根目录。
--quiet, -q抑制信息性输出;仅发出错误。
--verbose, -v发出额外的诊断输出。
--format plain|json输出格式(默认:plain)。
--json--format json 的简写。
--no-color禁用输出中的 ANSI 颜色代码。
-h, --help显示帮助并退出。

JSON 输出

{
  "status": "success",
  "command": "verify",
  "action": "verified",
  "harness": "claude-code",
  "files_written": [],
  "results": [
    {
      "harness": "claude-code",
      "outcome": "unchanged",
      "operation": "verify",
      "path": "C:\\Users\\Example\\.claude\\settings.json",
      "message": "managed targets verified",
      "installed": true,
      "verified": true
    }
  ],
  "warnings": [],
  "error": null,
  "installed": true,
  "verified": true,
  "output_path": "C:\\Users\\Example\\.claude\\settings.json"
}

当任何选定的harness缺失或无效时,statuserror,失败的结果行带有 verified: false,进程以代码 1 退出。

示例

apothem verify --harness claude-code
apothem verify --harness claude-code --json
apothem verify --harness all --project .

退出码

代码含义
0harness已安装
1harness未安装

另请参阅

On this page