# `alta attest`

> alta attest: for publishers and reviewers: signs a statement that names the chart's id, version and tree digest; writes <id>-<version>.<type>.intoto.json.

For publishers and reviewers: signs a statement that names the chart's id, version and tree digest; writes `<id>`-`<version>`.`<type>`.intoto.json.

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

## Usage

```text
alta attest <dir|archive> --key <private key file> [--type publish|review] [--audit <status>] [--tier <tier>] [--out <file>] [--json]
```

## Arguments

| Nom | | Description |
|---|---|---|
| `dir|archive` | **requis** | The chart folder (it must pass alta lint) or its archive. |

## Options

| Nom | Type | Défaut | Description |
|---|---|---|---|
| `--key` | *string* | *Défaut: ALTA_SIGNING_KEY_FILE* | The file of your Ed25519 private key (PEM), readable by you only. Never the key itself. |
| `--type` | *string* | *Défaut: publish* | publish: you publish these files. review: you reviewed them (needs --audit and --tier). |
| `--audit` | *string* |  | review: the audit status, pass, review, warn, malicious, pending or error. |
| `--tier` | *string* |  | review: official, verified or community. |
| `--out` | *string* | *Défaut: `<id>-<version>.<type>.intoto.json`* | Where to write the attestation (never inside the chart folder: it would change the digest). |
| `--json` | *flag* |  | Print the result (alta.attest/1) as JSON. |

## Codes de sortie

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

## Exemples

*Sign what you publish*

```sh [Terminal]
alta attest my-agent --key ~/.config/alta/keys/publisher.key
```

*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é.*
