# `alta repairs`

> alta repairs: the repairs you allow to run without asking when a release's proof fails; every one is asked until you allow it.

The repairs you allow to run without asking when a release's proof fails; every one is asked until you allow it.

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

## Usage

```text
alta repairs list [<chart>] | grant <chart> <repair> | revoke <chart> <repair> | pause | resume | log [--json] [--server <url>]
```

## Arguments

| Nom | | Description |
|---|---|---|
| `list|grant|revoke|pause|resume|log` | **requis** | list: each repair of the installed releases and its state. grant: allow one repair of one release until you revoke it (only a service restart, a model download or a gateway recovery). revoke: take it back. pause and resume: stop every automatic repair at once, or let them run again. log: what was repaired, asked or given up. |
| `chart` | *facultatif* | list: one release only. grant, revoke: the release. |
| `repair` | *facultatif* | grant, revoke: the repair's id (from alta repairs list). |

## Options

| Nom | Type | Défaut | Description |
|---|---|---|---|
| `--json` | *flag* |  | Print the answer as JSON. |
| `--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. |

## Codes de sortie

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

## Exemples

*What may be repaired here*

```sh [Terminal]
alta repairs list
```

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

*Allow Ollama to be restarted when it stops*

```sh [Terminal]
alta repairs grant alta-os restart-ollama
```

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

*Take it back*

```sh [Terminal]
alta repairs revoke alta-os restart-ollama
```

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