# `alta pull`

> alta pull: downloads a chart from a repository added here, checks its sha256 and its tree digest against the index, lints it and keeps it for alta install.

Downloads a chart from a repository added here, checks its sha256 and its tree digest against the index, lints it and keeps it for alta install.

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

## Usage

```text
alta pull <id>[@<version>] [--repo <name>] [--json]
```

## Arguments

| Nom | | Description |
|---|---|---|
| `id[@version]` | **requis** | The chart's id, and a version of the index (default: the newest installable one). |

## Options

| Nom | Type | Défaut | Description |
|---|---|---|---|
| `--repo` | *string* |  | The repository, when two list the same id. |
| `--json` | *flag* |  | Print the result (alta.pull/1) as JSON. |

## Codes de sortie

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

## Exemples

*Download a chart, then install it*

```sh [Terminal]
alta pull reading-log
```

*Contacte l'adresse du dépôt (les seules commandes qui utilisent le réseau) : affiche ce qu'elle a récupéré et vérifié.*

*One version of one repository*

```sh [Terminal]
alta pull reading-log@0.2.0 --repo community
```

*Contacte l'adresse du dépôt (les seules commandes qui utilisent le réseau) : affiche ce qu'elle a récupéré et vérifié.*

## Voir aussi

- [Trouver et installer un chart](https://docs.altasystem.ai/fr/marketplace/find-and-install)
- [alta install](https://docs.altasystem.ai/fr/reference/cli/install)
- [alta search](https://docs.altasystem.ai/fr/reference/cli/search)
