# `alta status`

> alta status: the releases of this machine: version, revision, state and pin; --history: each revision of one release (read only).

The releases of this machine: version, revision, state and pin; --history: each revision of one release (read only).

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

## Usage

```text
alta status [<chart>] [--history <chart>] [--json]
```

## Arguments

| Nom | | Description |
|---|---|---|
| `chart` | *facultatif* | One release only. |

## Options

| Nom | Type | Défaut | Description |
|---|---|---|---|
| `--history` | *string* |  | Each revision of this release: its version, date, why it was made (install, upgrade, rollback), its digest, and whether its files are kept for a rollback. |
| `--json` | *flag* |  | Print the releases (alta.status/1), or the history (alta.history/1) as JSON. |

## Codes de sortie

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

## Exemples

*The releases here*

```sh [Terminal]
alta status
```

```text [Sortie]
no release on this machine
```

*The revisions of one release*

```sh [Terminal]
alta status --history morning-brief
```

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

**JSON:**

*For a script*

```sh [Terminal]
alta status --json
```

```json [Sortie]
{
  "schema": "alta.status/1",
  "releases": []
}
```

## Voir aussi

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