# email-sdk doctor (/docs/reference/cli/doctor)



```bash
RESEND_API_KEY=re_xxx email-sdk doctor --adapter resend
```

Success prints:

```text
resend looks configured.
```

## Selection [#selection]

Use `--adapter <name>` or the `--provider` alias. Without either flag, the command selects the first adapter whose required environment variables are all set.

## What it checks [#what-it-checks]

`doctor` checks the required environment variables from the CLI registry. It also recognizes the corresponding credential flags, such as `--api-key`, `--server-token`, `--host`, or provider-specific account fields.

It does not call the provider, verify sender domains, inspect API scopes, or prove deliverability.

## Failures [#failures]

* Unknown adapter: `Unsupported adapter "<name>".`
* Missing values: `Missing environment for <adapter>: <NAMES>`
* No explicit or detectable route: `Pass --adapter or set the required environment for one adapter.`

Use `send --dry-run` after doctor to validate a representative message and adapter-specific constraints.

<Card title="Send command" href="/docs/reference/cli/send" description="Validate the exact message without provider delivery." />
