mix ash_billing.doctor (ash_billing v0.7.0)

Copy Markdown View Source

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.