CLI commands

リセット

openclaw reset

ローカルの設定/状態をリセットします(CLI はインストールされたままです)。

bash
openclaw resetopenclaw reset --dry-runopenclaw reset --scope config --yes --non-interactiveopenclaw reset --scope config+creds+sessions --yes --non-interactiveopenclaw reset --scope full --yes --non-interactive

オプション

  • --scope <scope>: configconfig+creds+sessions、または full
  • --yes: 確認プロンプトを省略
  • --non-interactive: プロンプトを無効化。--scope--yes が必要
  • --dry-run: ファイルを削除せずに実行内容を表示

スコープ

スコープ 削除対象 最初に Gateway を停止
config 設定ファイルのみ いいえ
config+creds+sessions 設定ファイル、OAuth/認証情報ディレクトリ、エージェントごとのセッションディレクトリ はい
full 状態ディレクトリ(設定/認証情報がその内部にある場合はそれらを含む)、ワークスペースディレクトリ、ワークスペース証明 はい

config+creds+sessionsfull は、状態を削除する前に、実行中の管理対象 Gateway サービスを停止します。

注意事項

  • ローカル状態を削除する前に、復元可能なスナップショットを作成するため、まず openclaw backup create を実行してください。
  • --scope を指定しない場合、openclaw reset は削除するスコープを対話形式で確認します。
  • --non-interactive は、--scope--yes の両方が設定されている場合にのみ有効です。
  • config+creds+sessionsfull は、完了時に Next: openclaw onboard --install-daemon を表示します。

関連項目

Was this useful?
On this page

On this page