openclaw uninstall 卸载 Gateway 服务和本地数据,CLI 本身保留。
用法
openclaw backup create # 建议先备份
openclaw uninstall # 交互式卸载
openclaw uninstall --dry-run # 预览将删除的内容
openclaw uninstall --all --yes # 完整卸载,跳过确认
openclaw uninstall --service --yes --non-interactive # 仅卸载 Gateway 服务
openclaw uninstall --state --workspace --yes --non-interactive选项
| 选项 | 说明 |
|---|---|
--service | 移除 Gateway 服务 |
--state | 移除状态和配置 |
--workspace | 移除 workspace 目录 |
--app | 移除 macOS app |
--all | 移除 service + state + workspace + app |
--yes | 跳过确认提示 |
--non-interactive | 禁用交互提示,需同时设置 --yes |
--dry-run | 打印将删除的内容,不实际删除 |
注意事项
--all是--service --state --workspace --app的简写--non-interactive必须配合--yes使用- 卸载前建议先运行
openclaw backup create保存快照
相关链接
- cli-backup — 卸载前备份数据
- cli-reset — 仅重置状态(保留 CLI 和 Gateway)