reset
重置本地配置/状态(保留 CLI 安装)。
用法
bash
openclaw reset [选项]选项
--scope <config|config+creds+sessions|full>: 重置范围--yes: 自动确认--non-interactive: 非交互模式--dry-run: 干运行(不实际执行)
范围说明
config: 仅重置配置config+creds+sessions: 重置配置 + 凭据 + 会话full: 完全重置(包括工作区)
注意事项
--non-interactive 需要 --scope 和 --yes。
示例
bash
# 交互式重置
openclaw reset
# 仅重置配置
openclaw reset --scope config --yes
# 重置配置、凭据和会话
openclaw reset --scope config+creds+sessions --yes
# 完全重置
openclaw reset --scope full --yes
# 干运行
openclaw reset --scope full --dry-run
# 非交互式
openclaw reset --scope config --yes --non-interactive重置后
重置后需要重新运行入门向导:
bash
openclaw onboard