---
title: "CLI commands"
label: "CLI commands"
description: "Exact setup and doctor commands, flags, environment inputs, effects, checks, and exit behavior."
publishedAt: 2026-07-10
updatedAt: 2026-10-13
order: 20
status: "published"
---

Installing `@cavuno/board` adds the `cavuno-board` binary. It has exactly two verbs:

```text
cavuno-board <setup|doctor>
```

Run it through the package or binary name:

```bash
npx @cavuno/board setup
npx @cavuno/board doctor
```

An omitted or unknown verb prints the usage line and exits 1.

## `setup`

```bash
npx @cavuno/board setup
```

Setup reads the current directory and the package’s shipped skill manifest. It does not create application routes, source files, environment files, or a Board SDK client.

### Framework detection

The current detector reads `dependencies` and `devDependencies` from the project’s `package.json`:

- `@tanstack/react-start` present → `tanstack-start`.
- Anything else, including no `package.json` → no detected framework.

Framework detection is informational. Setup copies the framework-neutral Cavuno skills; framework APIs come from the framework skills already installed in the project. For example, TanStack Start projects use their TanStack Intent skills for framework wiring and `cavuno-board-server-sessions` for Cavuno’s SSR session contract.

### Target directories

Setup checks these roots:

1. `.agents/skills`
2. `.claude/skills`
3. `.codex/skills`
4. `.cursor/skills`

If any exists, the corpus is copied to every existing root. If none exists, setup creates `.agents/skills`. Each selected `cavuno-board-*` directory is created and copied recursively. Re-running overwrites matching versioned skill files and does not intentionally touch unrelated skills.

The output lists:

- Installed package/manifest version.
- Detected framework or `none (core skills only)`.
- Target roots and unique copied skill names.
- The required `PUBLIC_CAVUNO_BOARD` value and optional `PUBLIC_CAVUNO_API_URL` override as next-step instructions.

Setup only prints those environment variables; it does not write them.

### Verify setup

```bash
test -f .claude/skills/cavuno-board-setup/SKILL.md || \
  test -f .codex/skills/cavuno-board-setup/SKILL.md || \
  test -f .cursor/skills/cavuno-board-setup/SKILL.md || \
  test -f .agents/skills/cavuno-board-setup/SKILL.md
```

Run setup again after every SDK upgrade. Doctor compares installed `SKILL.md` content with the corpus shipped by the currently installed package.

## `doctor`

```bash
npx @cavuno/board doctor [--frontend <url>] [--sandbox]
```

Doctor reads the current working directory and these environment variables:

| Variable | Required | Effect |
| --- | --- | --- |
| `PUBLIC_CAVUNO_API_URL` | No | API-origin override. Default: `https://api.cavuno.com`. Use only when Cavuno supplies another environment. |
| `PUBLIC_CAVUNO_BOARD` | Yes | Doctor requires a publishable key in the exact form `pk_` plus 32 hexadecimal characters. Unlike the runtime client, doctor does not accept a board ID or slug. |
| `RESEND_API_KEY` | Only for one platform sandbox check | Lets the email-boundary probe confirm that registration produced a verification send. Without it, that check skips loudly. |

### Tier 1 — static and API checks

These run on every invocation:

- `env.api-url`: the default or explicit override is a valid URL.
- `env.board-key`: key has the exact publishable-key shape.
- `static.api`: `{apiBase}/v1/openapi.json` returns a JSON object with an OpenAPI version string.
- `static.board`: `/v1/boards/{key}` resolves to JSON board context, including for a password-protected board.
- `static.skills`: installed Cavuno skill files match the current package corpus. Missing skill roots or no installed Cavuno skills are reported as skipped, not passed.

### `--frontend <url>` — tier 2 reads

```bash
npx @cavuno/board doctor \
  --frontend https://jobs.example.com
```

The flag adds eleven deployed frontend checks:

- `read.home`: the root returns successful HTML.
- `read.jobs`: `/jobs` contains a canonical `/companies/{company}/jobs/{job}` detail link, or returns HTML and the unfiltered jobs API confirms zero published jobs. API failures and malformed responses do not count as empty boards. For confirmed empty boards, the job-detail JSON-LD check is skipped.
- `read.jsonld`: the first linked detail page contains parseable `JobPosting` JSON-LD.
- `read.boardIdentity`: the host in robots.txt's `Sitemap:` line is the board's own canonical domain, so it is compared against `primaryDomain` from `GET /v1/boards/{board}`. A mismatch warns without failing the run: it is how a deployment bound to the wrong board looks — check `CAVUNO_BOARD` in the deployed environment — but also how a headless frontend whose canonical base and custom domain differ looks. Every other read check passes against another board's data, so this is the only one that surfaces it at all. Skips when robots.txt advertises no sitemap or the board endpoint cannot answer.
- `read.sitemap`: `/sitemap.xml` parses, a child sitemap is followed when necessary, and a sample page resolves.
- `read.robots`: `/robots.txt` returns 200 with a `User-agent` directive (fail otherwise). Warns when `Disallow: /go/` or the exact `Sitemap:` line for `canonicalBase` is missing — hosted boards emit both.
- `read.adsTxt`: `/ads.txt` matches the dashboard body, or 404s when unconfigured. A 200 on an unconfigured board warns (clone leftover) without failing the run.
- `read.indexNow`: the same polarity for `/indexnow-key.txt` versus `indexNowKey`.
- `read.googleVerification`: home HTML includes the `google-site-verification` meta tag when a token is configured.
- `read.oauthCallback`: `/api/board-auth/oauth/{google,linkedin}/callback` reach the hosted app (a bare GET answers `400 Missing code or state`). Warns when the frontend does not forward them — only relevant if you registered your own domain's callback with the provider; otherwise register the `cavuno.com` callback.
- `read.localizedUrls`: for a board whose route manifest (`/.well-known/cavuno.json`) publishes its fixed URL words in another language, every translated page without parameters is checked twice, without following redirects. The English path (for example `/jobs`) must answer `308` with a `Location` on the same origin at exactly the published path (`/vacatures`). The published path must answer `2xx`. The employers and job alert pages may instead redirect within the board, and the blog, about page, talent directory and legal pages may answer `404` when the board does not publish them. A redirect to the password or coming-soon gate, or to another origin, always fails. Skipped as not applicable, with no extra requests, for English boards and boards without a readable manifest.

The frontend base is used for probes even when sitemap `<loc>` values contain the production canonical host. Without `--frontend`, all eleven checks remain visible as skipped.

### `--sandbox` — tier 3 writes

```bash
PUBLIC_CAVUNO_BOARD=pk_0123456789abcdef0123456789abcdef \
npx @cavuno/board doctor --sandbox
```

`--sandbox` opts into these write checks:

1. Confirm the resolved board context has `sandbox: true`.
2. Register one generated candidate and log in with the same credentials.
3. If `RESEND_API_KEY` exists, poll the platform Resend account for the verification send.
4. Apply as that candidate to the first job returned by the sandbox.
5. Create an anonymous, consented job-alert subscription.

Doctor refuses the entire write tier when the board is not the platform sandbox. The remaining write checks then skip. Probe data is not cleaned up; the platform sandbox is reset separately.

Registration can hit its server rate limit after repeated runs. Doctor reports that failure and advises waiting rather than claiming the downstream checks passed.

## Exit and output behavior

Every check prints an ID, tier, status mark, and detail. The summary lists passed, failed, and skipped IDs.

- Exit `0`: no check failed. Skips can still be present and are printed as “NOT verified.”
- Exit `1`: one or more checks failed.
- Exit `1`: doctor crashed before producing a normal summary.
- Setup returns `0` when copying completes; filesystem or manifest failures terminate non-zero.

Skipped checks never count as passes or failures. A zero exit therefore means “everything that ran passed,” not “every tier ran.”

## Recommended release command

```bash
npx @cavuno/board setup
npx @cavuno/board doctor --frontend https://preview.jobs.example.com
```

Use `--sandbox` only in a separate run pointed at the platform sandbox key. See [Run doctor](/docs/sdk/production/run-doctor) for the release workflow.
