# `alta dev`

> alta dev: plays the game in demo with this content, in a temporary copy, read only.

Plays the game in demo with this content, in a temporary copy, read only.

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

## Usage

```text
alta dev <dir> [--port <n>] [--prepare-only] [--keep]
```

## Arguments

| Nom | | Description |
|---|---|---|
| `dir` | **requis** | The folder (or file) of content to play with. |

## Options

| Nom | Type | Défaut | Description |
|---|---|---|---|
| `--port` | *number* | *Défaut: a free port* | The port of the game server, 1024 to 65535. |
| `--prepare-only` | *flag* |  | Stage the game and stop, without starting the server. |
| `--keep` | *flag* |  | Keep the temporary copy when the server stops. |

## Codes de sortie

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

## Exemples

*Play your content in the game*

```sh [Terminal]
alta dev my-pack
```

*Démarre le serveur du jeu et affiche l'adresse à ouvrir ; arrête-le avec Ctrl+C. Le [démarrage rapide](https://docs.altasystem.ai/fr/quickstart) le montre.*

*Stage the game only (for a test)*

```sh [Terminal]
alta dev my-pack --prepare-only
```

```text [Sortie]
staged in <temporary folder>
  + content/quests/dev-quests.json
```

## Voir aussi

- [Démarrage rapide](https://docs.altasystem.ai/fr/quickstart)
- [alta lint](https://docs.altasystem.ai/fr/reference/cli/lint)
