# `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.

## Usage

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

## Arguments

| Name | | Description |
|---|---|---|
| `list|grant|revoke|pause|resume|log` | **required** | 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` | *optional* | list: one release only. grant, revoke: the release. |
| `repair` | *optional* | grant, revoke: the repair's id (from alta repairs list). |

## Options

| Name | Type | Default | Description |
|---|---|---|---|
| `--json` | *flag* |  | Print the answer as JSON. |
| `--server` | *string* | *Default: http://127.0.0.1:8790* | The machine's server. Its token comes from the WORLD_TOKEN environment variable, never from an argument. |

## Exit codes

| Name | Description |
|---|---|
| `0` | ok |
| `1` | problems found |
| `2` | bad usage |
| `3` | not in this version |

## Examples

*What may be repaired here*

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

*Talks to the machine's server (WORLD_TOKEN set): it prints the plan, then each change and the proofs.*

*Allow Ollama to be restarted when it stops*

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

*Talks to the machine's server (WORLD_TOKEN set): it prints the plan, then each change and the proofs.*

*Take it back*

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

*Talks to the machine's server (WORLD_TOKEN set): it prints the plan, then each change and the proofs.*
