# `alta rollback`

> alta rollback: goes back to an earlier revision of a release (the one before by default): a new revision with its version, values and files, kept on this machine when it was installed; prints the plan, runs it with --yes.

Goes back to an earlier revision of a release (the one before by default): a new revision with its version, values and files, kept on this machine when it was installed; prints the plan, runs it with --yes.

*Les descriptions et les sorties sont en anglais, comme la CLI.*

## Usage

```text
alta rollback <chart> [<revision>] [--yes] [--replace-edited] [--server <url>] [--timeout <s>]
```

## Arguments

| Nom | | Description |
|---|---|---|
| `chart` | **requis** | The id of an installed chart. |
| `revision` | *facultatif* | The revision to go back to (alta status --history `<chart>`); default: the one before the current. |

## Options

| Nom | Type | Défaut | Description |
|---|---|---|---|
| `--yes` | *flag* |  | The owner's yes: run the changes planned. Without it, nothing changes. |
| `--replace-edited` | *flag* |  | Go on when files of its agents were edited since they were installed: they go to the archive, then this version's files are written. |
| `--server` | *string* | *Défaut: http://127.0.0.1:8790* | The machine's server. Its token comes from the WORLD_TOKEN environment variable, never from an argument. |
| `--timeout` | *number* | *Défaut: 600* | Seconds to wait for each change. |

## Codes de sortie

| Nom | Description |
|---|---|
| `0` | ok |
| `1` | problèmes trouvés |
| `2` | mauvais usage |
| `3` | pas dans cette version |

## Exemples

*The plan, nothing changed*

```sh [Terminal]
alta rollback morning-brief
```

*Parle au serveur de la machine (WORLD_TOKEN défini) : affiche le plan, puis chaque changement et les preuves.*

*Go back to revision 1*

```sh [Terminal]
alta rollback morning-brief 1 --yes
```

*Parle au serveur de la machine (WORLD_TOKEN défini) : affiche le plan, puis chaque changement et les preuves.*
