# taggor preview

> Get a private preview link, a new one every time: the latest version of a component (no build), or with --build a new build of the project's component

## taggor preview

Get a private preview link, a new one every time: the latest version of a component (no build), or with `--build` a new build of the project's component.

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

| Argument | What it does | Default |
| --- | --- | --- |
| `<component>` | Component tag or id (cmp_...). Required. | - |
| `--version <value>` | Version to preview: its id (ver_...) or its number (1.2.0). Default: the latest version. | - |
| `--channel <value>` | Channel whose version to preview: production or staging. Default: the latest version. | - |
| `--build` | Build the project's component and preview that build, with no version made. This spends one build of your workspace's quota. To see without spending a build, leave it out: the latest version is shown. | - |
| `--timeout <value>` | Seconds to wait for each build (default 600). | - |

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

```sh title="Examples"
npx taggor preview price-card
npx taggor preview price-card --build
```

Exit codes: `0` ok, `1` generic, `2` usage, `3` unauthenticated, `4` not_found, `5` conflict, `7` rate_limited, `8` network, `9` forbidden. [What each code means](https://taggor.dev/docs/reference/cli.md#exit-codes).
