1.8 KiB
1.8 KiB
Doctor CLI Command Group
Module
Cli
Status
IMPLEMENTED
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