CLI Overview
Data Health exposes seven Artisan commands. Start with php artisan health for the menu, or use a direct command for the task at hand.
Contents
Section titled “Contents”Commands
Section titled “Commands”All commands below run through php artisan.
| Entrypoint | Purpose | Reference |
|---|---|---|
health |
Open the menu for detection and record management. | Main Menu |
health:detect [findings...] |
Detect problems for all or selected finding classes. | Detection |
health:records |
Browse records, inspect details, and run batch actions. | Record Browser |
health:explain ID |
Explain current facts without changing status. | Explanation |
health:verify ID |
Verify one finding record. | Verification |
health:resolve ID |
Execute resolution for one finding record. | Resolution |
health:make:finding NAME |
Generate a finding class and method placeholders. | Finding Generator |
Interactive defaults
Section titled “Interactive defaults”health:detect and health:records are interactive by default when both standard input and standard output are attached to a terminal:
php artisan health:detectphp artisan health:recordsDetection opens a finding selector. Records opens a keyboard-controlled table, or Laravel’s menu fallback where raw keyboard input is unavailable. Use --interactive to request interaction explicitly.
Use --no-interaction (-n) to run without prompting. Piped or redirected runs are non-interactive automatically:
php artisan health:detect -n --no-progressphp artisan health:records --status=all -n--interactive and --no-interaction cannot be combined. The health menu requires interaction and rejects -n. Direct verification, resolution, and generation do not open the record browser or finding selector.
Record actions
Section titled “Record actions”Record IDs identify rows in data_health_findings, rather than related application models. See Findings and Records for identity and lifecycle rules. Finding keys and class names identify finding types and are used by detection and the record filter.
| Action | Behavior |
|---|---|
Verify (v) |
Runs verification; a final true marks the record resolved. |
Resolve (r) |
Runs the resolver; a final true marks the record resolved. |
Ignore (i) |
Changes an active record to ignored. |
Mark as solved (s) |
Changes an active or ignored record to resolved directly. |
Ignore and mark as solved are actions in the record browser. They update record status without calling verification or resolution logic or changing the affected model. Use r when the resolver should perform a correction. For a web interface to the same records, see Filament Integration.
See the Record Browser for every key and Automation and Exit Codes for scripting behavior.
Built-in help
Section titled “Built-in help”php artisan help health:detectphp artisan help health:recordsphp artisan help health:make:finding