Skip to content

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.

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

health:detect and health:records are interactive by default when both standard input and standard output are attached to a terminal:

Terminal window
php artisan health:detect
php artisan health:records

Detection 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:

Terminal window
php artisan health:detect -n --no-progress
php 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 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.

Terminal window
php artisan help health:detect
php artisan help health:records
php artisan help health:make:finding