# ry preview

> One preview address per branch - opened by a push, closed by itself.

```text
ry preview [options] [command]
```

## Subcommands

### `ry preview list`

Show the previews of an app and when each one expires.

```text
ry preview list [options] [app]
```

Arguments:

- `[app]`: The app (default: "app" from rytiv.json in this directory or above).

Example:

```bash
ry preview list web
```

### `ry preview create`

Open a preview for a branch without waiting for a push.

```text
ry preview create [options] [app]
```

Arguments:

- `[app]`: The app (default: "app" from rytiv.json in this directory or above).

Options:

- `--branch <branch>`: The branch this preview follows.

Example:

```bash
ry preview create web --branch feature/login
```

### `ry preview destroy`

Close a preview now instead of waiting for the branch to go.

```text
ry preview destroy [options] <app> <branch>
```

Options:

- `-y, --yes`: Skip confirmation (required for automation).

Example:

```bash
ry preview destroy web feature/login
```
