更新与回滚
更新
推荐:重新运行安装脚本
bash
curl -fsSL https://openclaw.ai/install.sh | bash -s -- --no-onboardnpm 更新
bash
npm i -g openclaw@latest
openclaw doctor
openclaw gateway restart回滚
回到指定版本
bash
npm i -g [email protected]
openclaw doctor
openclaw gateway restart源码回滚
bash
git fetch origin
git checkout "$(git rev-list -n 1 --before=\"2026-03-01\" origin/main)"
pnpm install && pnpm build
openclaw gateway restart更新前备份
bash
# 备份关键文件
cp ~/.openclaw/openclaw.json ~/.openclaw/openclaw.json.bak
cp -r ~/.openclaw/credentials/ ~/.openclaw/credentials.bak/