# ocloud preview

Source: https://olef.dev/docs/reference/ocloud/preview

Generated from **ocloud 3.17.3**. [All ocloud commands](https://olef.dev/docs/reference/ocloud) · [Olef Cloud overview](https://olef.dev/docs/cloud/overview) · [`olef` commands](https://olef.dev/docs/reference/commands)

Expose a workspace web port at its own private browser preview URL

Global options (`--org`, `--project-root`, `--quiet`, `--redact`) apply across commands; see the [`ocloud` command catalog](https://olef.dev/docs/reference/ocloud#global-options).

## ocloud preview ls

The workspace's previews

```bash
ocloud preview ls --help
```

| Argument | Description |
| --- | --- |
| `--workspace` / `-w` |  |

## ocloud preview open

Open a workspace port in the browser: makes the preview when it's new, starts the workspace when it isn't running, and opens a single-use link

```bash
ocloud preview open --help
```

| Argument | Description |
| --- | --- |
| `<port>` | **Required.** The port the workspace's server listens on (e.g. 5173) |
| `--workspace` / `-w` | The workspace (name or id; default: the linked project here) |
| `--name` | A name for the preview when it's new |
| `--no-browser` | Print the link instead of opening a browser (it works once, for five minutes) |

## ocloud preview rm

Remove a preview (by port or id): open pages lose it within a minute

```bash
ocloud preview rm --help
```

| Argument | Description |
| --- | --- |
| `<preview>` | **Required.** The port, or the preview's id |
| `--workspace` / `-w` |  |
