Skip to content

重設

重設本地配置/狀態(保留已安裝的 CLI)。

選項:

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

範例:

Terminal window
openclaw backup create
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

備註:

  • 如果您在移除本機狀態之前需要可還原的快照,請先執行 openclaw backup create
  • 如果您省略 --scopeopenclaw reset 會使用互動式提示來選擇要移除的內容。
  • --non-interactive 僅在 --scope--yes 同時設定時有效。