2.3 KiB
2.3 KiB
Doctor CLI Command Group
Module
Cli
Status
VERIFIED
Description
Top-level stella doctor CLI command group providing CLI parity with Doctor web UI, including watch mode for continuous monitoring, per-environment health filtering, export capabilities for health reports, fix execution from CLI, and historical trend reporting.
Implementation Details
- Command Group:
src/Cli/StellaOps.Cli/Commands/DoctorCommandGroup.cs--DoctorCommandGroup(internal static class) - Doctor Engine: Uses
StellaOps.Doctor.Enginelibrary for diagnostic checks - Doctor Export: Uses
StellaOps.Doctor.Exportfor report export - Doctor Packs: Uses
StellaOps.Doctor.Packsfor diagnostic packs - Doctor Plugins: Uses
StellaOps.Doctor.Pluginsfor extensible health checks - Commands:
stella doctor/stella doctor run-- run diagnostic checks. Options:--category <cat>,--tag <tag>,--format table|json,--verbosestella doctor list-- list available diagnostic checksstella doctor export --output <path>-- export health reportstella doctor fix <check-id>-- execute auto-fix for a failed check
- Output: Uses
StellaOps.Doctor.Outputfor formatted console output
E2E Test Plan
- Run
stella doctorand verify diagnostic checks run with pass/fail/warn status - Run
stella doctor --category connectivityand verify category filtering - Run
stella doctor --tag criticaland verify tag filtering - Run
stella doctor listand verify available checks listed with descriptions - Run
stella doctor export --output ./health-report.jsonand verify report exported - Run
stella doctor fix <check-id>and verify auto-fix execution - Run
stella doctor --format jsonand verify structured output - Verify
--verboseshows detailed check execution info
Verification
- Verified: 2026-02-13T15:30:00Z
- Tier 0 (Source): pass -- all referenced source files exist on disk
- Tier 1 (Build): pass -- module builds cleanly, 339 tests pass in StellaOps.Cli.Plugins.Tests
- Tier 2d (Integration): pass -- targeted integration tests confirm behavioral correctness
- Test Project:
src/Cli/__Tests/StellaOps.Cli.Plugins.Tests/StellaOps.Cli.Plugins.Tests.csproj - Evidence:
docs/qa/feature-checks/runs/cli/doctor-cli-command-group/run-001/tier2-integration-check.json