# taggor logs

> Show the log of a build, or follow it until it ends. Usage, options, examples and exit codes.

## taggor logs

Show the log of a build, or follow it until it ends.

```sh title="Usage"
npx taggor logs <target> [options]
```

| Argument | What it does | Default |
| --- | --- | --- |
| `<target>` | Build id (bld_...) or component (tag or cmp_... id; its newest version's build). Required. | - |
| `--follow` | Keep reading until the build ends (exit 0 if it succeeded, 6 if it failed). | - |
| `--timeout <value>` | With `--follow`, seconds to wait for the build to end (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 logs price-card
npx taggor logs bld_0123456789abcdefghjkmnpqrs --follow
```

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