# `alta install`

> alta install: installs a chart through the machine's server: prints the plan; with --yes, runs each change in order and shows its proofs.

Installs a chart through the machine's server: prints the plan; with --yes, runs each change in order and shows its proofs.

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

## Usage

```text
alta install <chart> [--values <file>] [--bind <need=provider,…>] [--local-only] [--yes] [--server <url>] [--timeout <s>]
```

## Arguments

| Nom | | Description |
|---|---|---|
| `chart` | **requis** | The id of a chart of the machine's repos (`alta repo search`). |

## Options

| Nom | Type | Défaut | Description |
|---|---|---|---|
| `--values` | *string* |  | A JSON file with the values the owner chooses. |
| `--bind` | *string* |  | The provider of each need, need=provider, comma separated (such as mind=local,channel=world): the player's "change". Absent: the player's own choice. |
| `--local-only` | *flag* |  | 100% local: only providers that keep everything on the machine. |
| `--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 install morning-brief --values values.json
```

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

*Install it*

```sh [Terminal]
alta install morning-brief --values values.json --yes
```

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

## Voir aussi

- [alta template](https://docs.altasystem.ai/fr/reference/cli/template)
- [alta status](https://docs.altasystem.ai/fr/reference/cli/status)
