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

## Usage

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

## Arguments

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

## Options

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

## Exit codes

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

## Examples

*Download a chart, then install it*

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

*Reaches the repository's address (the only commands that use the network): it prints what it fetched and checked.*

*One version of one repository*

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

*Reaches the repository's address (the only commands that use the network): it prints what it fetched and checked.*

## See also

- [Find and install a chart](https://docs.os.altasystem.ai/marketplace/find-and-install)
- [alta install](https://docs.os.altasystem.ai/reference/cli/install)
- [alta search](https://docs.os.altasystem.ai/reference/cli/search)
