Skip to content

rvr doctor

Run diagnostic checks on your RIVORA project to identify configuration issues, missing dependencies, and potential problems.

Usage

bash
rvr doctor [options]

Options

FlagDescriptionDefault
--fixAttempt to auto-fix detected issuesfalse
--verboseShow detailed check outputfalse
--jsonOutput results as JSONfalse

Health Checks

The doctor command verifies the following:

CheckDescription
.NET SDKVerifies the correct .NET SDK version is installed
NuGet packagesChecks for outdated or vulnerable packages
DatabaseTests database connectivity
RedisTests Redis connection (if configured)
RabbitMQTests RabbitMQ connection (if configured)
DockerVerifies Docker is available and running
ConfigurationValidates rivora.json and appsettings.json
ArchitectureChecks project structure conforms to Clean Architecture
MigrationsDetects pending database migrations

Output

bash
rvr doctor
RIVORA Doctor - Project Health Check
─────────────────────────────────────

  .NET SDK 9.0.1          OK
  NuGet packages           OK (32 packages up to date)
  PostgreSQL               OK (localhost:5432)
  Redis                    OK (localhost:6379)
  RabbitMQ                 WARNING (not configured)
  Docker                   OK (Docker 27.1.1)
  Configuration            OK
  Architecture             OK (Clean Architecture validated)
  Pending migrations       WARNING (1 pending)

Score: 8/9  (89%)

Recommendations:
  - Apply pending migration: 20260320_AddOrderTable
  - Consider configuring RabbitMQ for async messaging

Examples

Run doctor with auto-fix:

bash
rvr doctor --fix

Output as JSON for CI integration:

bash
rvr doctor --json > doctor-report.json

Use in CI to fail on issues:

bash
rvr doctor --json | jq -e '.score == .total'

Released under the MIT License.