---
title: "Diagnose your setup with doctor"
description: "Find what is missing or misconfigured with doctor and status, narrow the checks to one capability, let doctor fix what it can, and gate CI and a launch on its JSON and production posture."
canonical_url: "https://nuxt-backend.dev/docs/develop/doctor"
---
# Diagnose your setup with doctor

> Find what is missing or misconfigured with doctor and status, narrow the checks to one capability, let doctor fix what it can, and gate CI and a launch on its JSON and production posture.

Version: nuxt-backend 0.6.x · Tab: Develop · Kind: how-to · Status: stable

Every page: [llms.txt](https://nuxt-backend.dev/llms.txt) · Skill for coding agents: [nuxt-backend](https://nuxt-backend.dev/.well-known/skills/nuxt-backend/SKILL.md)

Commands use npm; use your project's package manager.

`npx nuxt-backend doctor` checks the project and its deployment, and every finding it prints names its fix. `npx nuxt-backend status` reads the same checks one [capability](https://nuxt-backend.dev/docs/start/concepts/capabilities) at a time.

<steps level="3">

### See what is wrong

```bash
npx nuxt-backend status
```

Each line is a capability, with its light, from live to failing. Under a capability that lacks something come the env names it misses and its most pressing finding, and the last line names the `doctor` run that shows every fix. Capabilities that are missing or in test mode are expected in development: only a failing one is an error.

### Read the findings of one capability

```bash
npx nuxt-backend doctor --only billing
```

`--only` runs the checks of the [capabilities](https://nuxt-backend.dev/docs/reference/capabilities) you name, comma-separated, and skips the rest, their deployment reads and provider calls included. Every finding has an id, a status (`pass`, `warn` or `fail`), a message and a fix, and its link, `https://nuxt-backend.dev/d/<id>`, opens its entry on [Diagnostics](https://nuxt-backend.dev/docs/reference/cli/diagnostics): what it checks, when it fails and how to fix it.

### Let doctor fix what it can

```bash
npx nuxt-backend doctor --fix
```

It restores a scaffold file that is gone (never one you changed), points a `convex dev --start "nuxt dev"` script at `nuxt-backend dev`, and runs [`env push`](https://nuxt-backend.dev/docs/reference/cli#env-push), which provisions what the dev deployment lacks and never replaces a value. What is left needs you: a provider key, a catalog, a decision.

</steps>

## Check it works

Run `npx nuxt-backend doctor` again: it exits with `0` once no finding fails, warnings allowed.

## Gate CI and the launch on it

`--json` prints one document, `{ $schema, findings, summary }`, described by [its schema](https://nuxt-backend.dev/schemas/doctor.json), with stable ids and statuses, so a script reads it rather than the wording:

```bash
npx nuxt-backend doctor --json > doctor.json   # exit code 1 when a finding fails
```

`--prod` checks the production deployment instead, with the optional capabilities' designed degradations turned into failures, a few values read where a name alone says too little, and the live site probed at the origin its `SITE_URL` names. It needs a production `CONVEX_DEPLOY_KEY` and refuses a dev or preview one. [Prepare for launch](https://nuxt-backend.dev/docs/ship/checklist) runs it as the last gate:

```bash
CONVEX_DEPLOY_KEY=prod:… npx nuxt-backend doctor --prod
```

## The same checks elsewhere

- The dev server runs the project's half on every start and sums it up in one line, `backend preflight: …`.
- The [DevTools Backend tab](https://nuxt-backend.dev/docs/develop/devtools) shows the findings by capability, and its **Run doctor** key adds the deployment-side checks and copies the run as `doctor --json` prints it.
- A coding agent reads `doctor --json` and follows each fix line, as the [install guide](https://nuxt-backend.dev/docs/start/installation) has it do.

## Related

- [`doctor`](https://nuxt-backend.dev/docs/reference/cli#doctor) and [`status`](https://nuxt-backend.dev/docs/reference/cli#status) in the CLI reference: every flag, the exit codes and the production posture.
- [Diagnostics](https://nuxt-backend.dev/docs/reference/cli/diagnostics): every finding, by id.
- [Troubleshooting](https://nuxt-backend.dev/docs/ship/operate/troubleshooting): the messages the package prints, with their fixes.


## Sitemap

See the full [sitemap](https://nuxt-backend.dev/sitemap.md) for all pages.
