# `alta template`

> alta template: what installing the chart does on a machine: its values, the charts it requires, its sign-ins, parts and proofs (read only).

What installing the chart does on a machine: its values, the charts it requires, its sign-ins, parts and proofs (read only).

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

## Usage

```text
alta template <dir> [--values <file>] [--bind <need=provider,…>] [--local-only] [--host <host>] [--renderer game] [--json]
```

## Arguments

| Nom | | Description |
|---|---|---|
| `dir` | **requis** | The chart folder. |

## Options

| Nom | Type | Défaut | Description |
|---|---|---|---|
| `--values` | *string* |  | A JSON file with the values the owner chooses. |
| `--bind` | *string* |  | The provider of each need, need=provider, comma separated (such as mind=local,channel=world): the player's "change". Absent: the player's own choice. |
| `--local-only` | *flag* |  | 100% local: only providers that keep everything on the machine. |
| `--host` | *string* | *Défaut: local* | The machine, one of local, hosted-free, hosted-paid. |
| `--renderer` | *string* |  | game: the same as the game renders it (quests, steps, achievements). |
| `--json` | *flag* |  | Print the result (alta.template/1) as JSON. |

## Codes de sortie

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

## Exemples

*What installing it does*

```sh [Terminal]
alta template my-agent
```

```text [Sortie]
my-agent 0.1.0 (agent) on local: installable
needs:
  My Agent will think with your Claude subscription · change
risk:
  Risk: medium. Read why below before you agree.
  - It installs programs on your machine.
  - It needs you to sign in (Claude).
  - An agent may reach the network where it chooses (message).
  - It talks to online services while it runs (Claude).
network:
  Needs online services to work.
  - Claude: It thinks with your Claude subscription: what you ask goes to Claude. A paid account is needed. What leaves your machine: what you ask.
requires:
  alta-os
sign-ins:
  need-claude          signin.cli
parts:
  agent                agent.create {"agent":"helper","chart":"my-agent"}   undo: agent.archive
proofs:
  agent helper
repairs (none allowed until you say so):
  need-claude-again    signin.again       (always asked)
```

*On a hosted machine*

```sh [Terminal]
alta template my-agent --host hosted-free
```

```text [Sortie]
my-agent 0.1.0 (agent) on hosted-free: installable
needs:
  My Agent will think with your Claude subscription · change
risk:
  Risk: medium. Read why below before you agree.
  - It installs programs on your machine.
  - It needs you to sign in (Claude).
  - An agent may reach the network where it chooses (message).
  - It talks to online services while it runs (Claude).
network:
  Needs online services to work.
  - Claude: It thinks with your Claude subscription: what you ask goes to Claude. A paid account is needed. What leaves your machine: what you ask.
requires:
  alta-os
sign-ins:
  need-claude          signin.cli
parts:
  agent                agent.create {"agent":"helper","chart":"my-agent"}   undo: agent.archive
proofs:
  agent helper
repairs (none allowed until you say so):
  need-claude-again    signin.again       (always asked)
```

*As the game shows it*

```sh [Terminal]
alta template my-agent --renderer game
```

```text [Sortie]
core.my-agent.install  Install My Agent
  consent                  choice  What this asks for
  requires-alta-os         check   Install alta-os first  [achievement: chart alta-os]
  signin-need-claude       action  Connect your Claude subscription.  [runs signin.cli]  [achievement: signin]
  part-agent               action  Create the agent helper  [runs agent.create]  [achievement: agent helper]
  ready-1                  check   My Agent works  [achievement: agent helper]

core.my-agent.remove  Remove My Agent
  undo-agent               action  Put the agent helper away  [runs agent.archive]
```

**JSON:**

*For a script*

```sh [Terminal]
alta template my-agent --json
```

```json [Sortie]
{
  "schema": "alta.template/1",
  "chart": "my-agent",
  "version": "0.1.0",
  "host": "local",
  "values": {},
  "bindings": {
    "mind": "claude"
  },
  "installable": {
    "ok": true
  }
}
```

## Voir aussi

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