跳到主要内容

诊断检查

对 CLI 环境执行诊断检查。

check​

验证 CLI 安装的健康状态。各项检查只读取本地文件(不发网络请求),也不检查登录状态——登录状态用 shoplazza auth status 查看。

shell
shoplazza doctor check
检查项报告内容
config_version配置文件是否为 v2 格式
auth_locks_dirs凭证目录(auth/)和锁目录(locks/)是否可写
metadata当前 API 元数据的来源(embedded 或 cached)、版本以及上次检查更新的时间
skillsAgent Skills 是否已安装

每项检查的 status 为 ok、warn 或 fail;只有全部为 ok 时,顶层 ok 才为 true。

输出​

json
{
"checks": [
{ "name": "config_version", "status": "ok", "message": "config is v2" },
{ "name": "auth_locks_dirs", "status": "ok", "message": "auth/ and locks/ are writable" },
{ "name": "metadata", "status": "ok", "message": "source=embedded revision=2026-10-09T07:59:22Z last_check=never" },
{ "name": "skills", "status": "ok", "message": "not installed" }
],
"ok": true
}

示例​

shell
# 执行健康检查
shoplazza doctor check

# 查看认证状态
shoplazza auth status
在此页面