Skip to content

sp health:后端健康检查 ​

AI 代理何时使用: 长时间的诊断会话开始前先做预检;CI 冒烟检查。

概要 ​

检查 sp-backend 是否可用。

用法 ​

bash
sp health --json
sp health --api-url https://sp.example.com --json

JSON 输出 ​

json
{
  "ok": true,
  "command": "health",
  "data": {
    "status": "UP",
    "url": "http://127.0.0.1:8090"
  }
}

REST 接口对照 ​

方法路径
GET/vi/health

默认部署下不需要认证(请按你的环境核实)。

错误 ​

情况退出码
连接被拒绝1
HTTP 非 2001

捕获 Session · 审查 Steps · 改进关键所在