# `mix ash_billing.doctor`
[🔗](https://github.com/sfelixalejandro/ash_billing/blob/v0.7.0/lib/mix/tasks/ash_billing.doctor.ex#L1)

Inspects an `AshBilling` deployment and reports `PASS`, `WARN`, and `FAIL` checks across
structural Ash contracts, PostgreSQL migrations/indexes, and optional read-only provider
connectivity.

By default, this task is strictly **read-only** and never mutates PostgreSQL or Stripe.
Secrets, API keys, and sensitive customer identifiers are never printed.

## Usage

    mix ash_billing.doctor \
      --customer-resource MyApp.Accounts.User \
      --subscription-resource MyApp.Billing.Subscription \
      --deduplication-resource MyApp.Billing.WebhookEvent

## Options

  * `--customer-resource` - Ash customer resource module.
  * `--subscription-resource` - Ash subscription resource module.
  * `--deduplication-resource` (alias `--webhook-event-resource`) - Ash webhook event resource module.
  * `--expected-livemode` - Explicit boolean (`true` or `false`) for Stripe livemode checks.
  * `--stripe-account` - Optional Stripe Connect account ID.
  * `--format` - Output format: `text` (default) or `json`.
  * `--json` - Shorthand for `--format json`.
  * `--check-database` / `--no-check-database` - Enable/disable read-only PostgreSQL checks (defaults to `true` when PostgreSQL resources are provided).
  * `--check-provider` - Enable optional read-only provider connectivity probe (default `false`).
  * `--strict` - Exit non-zero on warnings as well as failures.
  * `--no-start` - Do not start the application before running diagnostics.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
