| title | Client 管理命令 |
|---|
本页记录 Client 侧常用资源管理命令。命令以当前 RPC 和服务端模型为准;没有服务端字段或存储能力的管理动作不会在 Client 侧伪造状态。
cert inspect <cert_name>
cert verify <cert_name>
cert renew <cert_name> --domain example.com
cert update --cert-name <cert_name> --cert fullchain.pem --key privkey.pem
cert apply --cert-name <cert_name>
cert list-refs <cert_name>
cert prune --expiredinspect下载并展示证书元数据。verify校验证书有效期;如果证书条目包含私钥,也会校验证书与私钥是否匹配。renew调用 ACME 获取流程。未指定--domain时,会尝试使用证书条目的domain或证书名称;默认续期后重载引用。update只更新显式提供的字段,未传--ca-cert时保留原 CA,并默认重载引用;--clear-ca显式清 CA,--no-reload延后重载。apply重载所有引用该证书的 Website 和 HTTP/TCP Pipeline,也可用--listener、--pipeline缩小范围。list-refs查询 website/pipeline 中引用该证书的条目。prune --expired删除已经过期的证书。
listener inspect <listener_id>
pipeline inspect <pipeline>
pipeline restart <pipeline>
pipeline update <pipeline> --enable
pipeline cert bind --pipeline <pipeline> --listener <listener_id> --cert-name <cert_name>
pipeline cert unbind --pipeline <pipeline> --listener <listener_id>
pipeline cert generate --pipeline <pipeline> --listener <listener_id> --save-as <cert_name>
pipeline cert show --pipeline <pipeline> --listener <listener_id>
pipeline health
job inspect <job>
job kill <job>pipeline inspect从本地缓存或ListPipelines查询 pipeline。pipeline restart顺序调用StopPipeline和StartPipeline。pipeline update需要本地已有 pipeline 缓存,然后调用SyncPipeline更新enable、parser等字段;证书使用pipeline cert bind管理。pipeline cert bind同时用于首次绑定和换绑。运行中的 HTTP/TCP Pipeline 会自动停止并重启,失败时恢复旧绑定;停止态只保存配置。pipeline cert子命令全部使用命名 Flag,不接受位置参数。完整流程见 Pipeline 证书绑定与更新。pipeline health汇总已配置 pipeline、启用数量和当前运行 job 数。job kill会停止该 job 对应的 pipeline。
artifact inspect <artifact_name>
artifact publish <artifact_name> --website <website> --path /payload.bin
artifact prune --failed
artifact prune --older-than 720hinspect是artifact show的语义化别名。publish下载 artifact 后写入 website content。prune可以按失败状态或时间阈值删除 artifact。
当前 artifact 模型没有 tag 字段,UpdateArtifact 也只支持 comment 更新,因此 Client 不提供假 tag 或 rename 状态。
website inspect <website>
website route add <file> --website <website> --path /index.html
website route add --artifact <artifact> --website <website> --path /payload.bin
website route list <website>
website route remove <content_id>
website cert <website> --cert-name <cert_name>
website tls <website> --generateroute子命令复用现有 website content RPC。cert是website tls的证书管理入口,可绑定已有证书、导入 inline cert/key、生成临时自签名证书或禁用 TLS。