<!-- GENERATED FILE — do not edit. Rebuilt by scripts/docs_site/generate_reference.py from openprogram/interfaces/cli/parser.py. -->


# versions

List the versions this install keeps, or go back to one; runs outside every version

```text
usage: openprogram versions [-h] verb ...
```

## `versions list`

List retained versions with their commit, date and which is current, last good or previous good

## `versions use`

Stop the worker, switch to a retained version and start it

| Option | Description |
|---|---|
| `version` | Version id from `openprogram versions list` |

## `versions restore-data`

Restore a data snapshot taken before a destructive migration, with the worker stopped

| Option | Description |
|---|---|
| `backup` | Backup name, starting with pre-switch- |

## `versions rebuild-pointer`

Rebuild a lost version pointer from the newest version on the local line
