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

## Usage

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

## Arguments

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

## Options

| Name | Type | Default | Description |
|---|---|---|---|
| `--port` | *number* | *Default: 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. |

## Exit codes

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

## Examples

*Play your content in the game*

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

*Starts the game server and prints the address to open; stop it with Ctrl+C. The [quickstart](https://docs.altasystem.ai/quickstart) shows it.*

*Stage the game only (for a test)*

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

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

## See also

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