跳轉到主要內容

openclaw reset

重設本機設定/狀態(保留已安裝的命令列介面)。
openclaw reset
openclaw reset --dry-run
openclaw reset --scope config --yes --non-interactive
openclaw reset --scope config+creds+sessions --yes --non-interactive
openclaw reset --scope full --yes --non-interactive

選項

  • --scope <scope>configconfig+creds+sessionsfull
  • --yes:略過確認提示
  • --non-interactive:停用提示;需要 --scope--yes
  • --dry-run:列印動作而不移除檔案

範圍

範圍移除先停止閘道
config僅設定檔
config+creds+sessions設定檔、OAuth/認證資料目錄、每個代理程式的工作階段目錄
full狀態目錄(包含其中巢狀的設定/認證資料)加上工作區目錄與工作區證明
config+creds+sessionsfull 會在刪除狀態前停止執行中的受管理閘道服務。

備註

  • 移除本機狀態前,請先執行 openclaw backup create 建立可還原的快照。
  • 若沒有 --scopeopenclaw reset 會以互動方式提示選擇要移除的範圍。
  • --non-interactive 只有在同時設定 --scope--yes 時才有效。
  • config+creds+sessionsfull 完成時會列印 Next: openclaw onboard --install-daemon

相關