2026-01-15 06:12:54 +00:00
|
|
|
---
|
2026-01-30 03:15:10 +01:00
|
|
|
summary: "CLI reference for `openclaw reset` (reset local state/config)"
|
2026-01-15 06:12:54 +00:00
|
|
|
read_when:
|
|
|
|
|
- You want to wipe local state while keeping the CLI installed
|
|
|
|
|
- You want a dry-run of what would be removed
|
2026-01-31 16:04:03 -05:00
|
|
|
title: "reset"
|
2026-01-15 06:12:54 +00:00
|
|
|
---
|
|
|
|
|
|
2026-01-30 03:15:10 +01:00
|
|
|
# `openclaw reset`
|
2026-01-15 06:12:54 +00:00
|
|
|
|
|
|
|
|
Reset local config/state (keeps the CLI installed).
|
|
|
|
|
|
2026-04-04 08:30:16 +01:00
|
|
|
Options:
|
|
|
|
|
|
|
|
|
|
- `--scope <scope>`: `config`, `config+creds+sessions`, or `full`
|
|
|
|
|
- `--yes`: skip confirmation prompts
|
|
|
|
|
- `--non-interactive`: disable prompts; requires `--scope` and `--yes`
|
|
|
|
|
- `--dry-run`: print actions without removing files
|
|
|
|
|
|
|
|
|
|
Examples:
|
|
|
|
|
|
2026-01-15 06:12:54 +00:00
|
|
|
```bash
|
2026-03-09 04:21:20 +08:00
|
|
|
openclaw backup create
|
2026-01-30 03:15:10 +01:00
|
|
|
openclaw reset
|
|
|
|
|
openclaw reset --dry-run
|
2026-04-04 08:30:16 +01:00
|
|
|
openclaw reset --scope config --yes --non-interactive
|
2026-01-30 03:15:10 +01:00
|
|
|
openclaw reset --scope config+creds+sessions --yes --non-interactive
|
2026-04-04 08:30:16 +01:00
|
|
|
openclaw reset --scope full --yes --non-interactive
|
2026-01-15 06:12:54 +00:00
|
|
|
```
|
2026-03-09 04:21:20 +08:00
|
|
|
|
2026-04-04 08:30:16 +01:00
|
|
|
Notes:
|
|
|
|
|
|
|
|
|
|
- Run `openclaw backup create` first if you want a restorable snapshot before removing local state.
|
|
|
|
|
- If you omit `--scope`, `openclaw reset` uses an interactive prompt to choose what to remove.
|
|
|
|
|
- `--non-interactive` is only valid when both `--scope` and `--yes` are set.
|