# `mix vic.health`
[🔗](https://github.com/blackuprise/vicander/blob/v0.1.1/lib/mix/tasks/vic.health.ex#L1)

Prints `DDD.Health.check/1` and exits non-zero unless everything is `ok`, so it can run as a
deploy gate or a container health probe.

    mix vic.health
    mix vic.health --json
    mix vic.health --projection MyApp.Projections.ListSummary --max-outbox-age 5000

Options:

  * `--json` - print the result as JSON
  * `--projection Module` - check a projection (repeatable; adds to the configured ones)
  * `--max-outbox-age ms`, `--max-dead-letters n`, `--max-projection-lag ms` - thresholds
  * `--repo Module` - default: the configured repo (`config :vicander, repo: MyApp.Repo`)

---

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