# taggor dev

> Preview your components locally on a test page with hot reload. Usage, options, examples and exit codes.

## taggor dev

Preview your components locally on a test page with hot reload.

```sh title="Usage"
npx taggor dev [<component>] [options]
```

| Argument | What it does | Default |
| --- | --- | --- |
| `[<component>]` | Show only this component (and the ones it draws), by the tag in taggor.json; default: every component. | - |
| `--no-browser` | Do not open the browser (it opens on its own only at a terminal: never without one, with `--json` or with `--no-input`). | - |
| `--port <value>` | Port of the local server (default 4321; it listens on 127.0.0.1 only). | - |
| `--host-html <value>` | Use this HTML file of the project as the host page (default: a page with hostile CSS). | - |
| `--reset-data` | Clear the fake data of the previous runs (.taggor/dev-data.json) at start. | - |

Also takes the [common options](https://taggor.dev/docs/reference/cli.md#common-options): `--json`, `--no-input`.

```sh title="Examples"
npx taggor dev
npx taggor dev --port 4400 --reset-data
```

Exit codes: `0` ok, `1` generic, `2` usage. [What each code means](https://taggor.dev/docs/reference/cli.md#exit-codes).
