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

## Usage

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

## Arguments

| Name | | Description |
|---|---|---|
| `chart` | *optional* | One release only. |

## Options

| Name | Type | Default | 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. |

## Exit codes

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

## Examples

*The releases here*

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

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

*The revisions of one release*

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

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

**JSON:**

*For a script*

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

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

## See also

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