> ## Documentation Index
> Fetch the complete documentation index at: https://docs.inklyai.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Preview locally

> Run a local Inkly preview before you publish a demo or hub.

Use local preview to review a hub or captured demo before your audience sees it.

## Preview a hub

From inside a hub, run:

```bash theme={null}
inkly dev
```

The CLI starts a local preview server, watches your files, and prints the URL to open. By default, it starts at `http://localhost:3000`. If that port is taken, Inkly uses the next available port.

Choose a port when needed:

```bash theme={null}
inkly dev --port 3333
```

## Preview a captured demo folder

You can preview a bare exported demo folder without adding it to a hub first:

```bash theme={null}
inkly dev ./out/onboarding
```

This is useful right after `inkly capture stop` or `inkly capture-html stop`.

## What to check

* The demo opens without validation errors.
* Each step shows the right screen.
* Labels, annotations, and pointer positions make sense.
* Private or draft demos look correct before publishing.

For the full command reference, see [CLI commands](/cli/commands).
