mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-18 08:31:49 -06:00
b834477565
* fix(cli): guard live state cleanup * fix(cli): preserve linked paths on cleanup failure * fix(cli): retain gateway ownership through cleanup * fix(cli): keep cleanup planning read-only * fix(cli): skip mutating bootstrap for cleanup * fix(apple): keep identity locks sandbox-writable * docs(apple): clarify identity lock domains
2.2 KiB
2.2 KiB
summary, read_when, title
| summary | read_when | title | ||
|---|---|---|---|---|
| CLI reference for `openclaw reset` (reset local state/config) |
|
Reset |
openclaw reset
Reset local config/state (keeps the CLI installed).
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
Options
--scope <scope>:config,config+creds+sessions, orfull--yes: skip confirmation prompts--non-interactive: disable prompts; requires--scopeand--yes--dry-run: print actions without removing files
Scopes
| Scope | Removes | Stops gateway first |
|---|---|---|
config |
config file only | no |
config+creds+sessions |
config file, OAuth/credentials dir, per-agent session directories | yes |
full |
state dir (including the shared SQLite database) plus workspace directories | yes |
config+creds+sessions and full stop a running managed gateway service before deleting state.
Notes
- Run
openclaw backup createfirst for a restorable snapshot before removing local state. - Before removing the state directory,
fullrequires exclusive state ownership. If an unmanaged or externally supervised Gateway is still running, reset refuses and asks you to stop it first. - Workspace setup state and attestations are rows in the shared SQLite database, so
fullremoves them with the state directory; there are no current attestation sidecar files to remove separately. - Without
--scope,openclaw resetprompts interactively for the scope to remove. --non-interactiveis only valid when both--scopeand--yesare set.config+creds+sessionsandfullprintNext: openclaw onboard --install-daemonwhen done.