What This Checks
tm doctor is a broad local diagnosis command. It inspects configuration and credential readiness across the CLI, but it does not prove that a live API call will succeed.
Use tm auth whoami for a live Control Plane auth check and tm infer chat for an end-to-end inference check.
Usage
Examples
Check the current CLI configuration and credential state.
Use shell-friendly exit codes when required credentials are missing.
Options
| Name | Type | Required | Default | Details |
|---|---|---|---|---|
--exit-status | boolean | no | false | Exit non-zero when checks report a not-ready state. Boolean flag. |
Inherited Global Options
| Name | Type | Required | Default | Details | ||||
|---|---|---|---|---|---|---|---|---|
--version, -V | boolean | no | false | Show the version and exit. Boolean flag. | ||||
--config | path | no | "~/.config/tensormesh/config.toml" | Path to config TOML file | ||||
--output | `choice[text | json | yaml | raw | table]` | no | "text" | Output format (text is human-readable; json is machine-friendly). |
--quiet | boolean | no | false | Suppress non-essential output. Boolean flag. | ||||
--debug | boolean | no | false | Print debug logs to stderr (secrets redacted). Boolean flag. | ||||
--ca-bundle | path | no | Path to a PEM CA bundle for TLS verification (overrides TENSORMESH_CA_BUNDLE). | |||||
--timeout | float | no | Default HTTP timeout in seconds (overrides TENSORMESH_TIMEOUT_SECONDS; subcommands may override). | |||||
--max-retries | integer | no | Max retries for idempotent HTTP requests on transient errors (overrides TENSORMESH_MAX_RETRIES; subcommands may override). | |||||
--controlplane-base | text | no | Override the Control Plane base URL. | |||||
--gateway-provider | text | no | Inference Gateway provider for built-in host selection (nebius, lambda, yotta). |
Caveats
- Reports local readiness only. Use
tm auth whoamito live-validate Control Plane auth andtm infer chatfor an end-to-end inference check. - Use
tm infer doctorfor direct gateway gating andtm auth status/tm auth whoamifor Control Plane-specific checks.

