WellTend Health Monitor adds the wp awc health command to WP-CLI. It lives under the shared wp awc namespace that all AllWPCare plugins use. The text below is taken from wp awc health --help on WordPress 7.1, so it matches what the plugin ships.
NAME wp awc healthDESCRIPTION Check your site's health from the command line.SYNOPSIS wp awc health <command>SUBCOMMANDS checks List the checks and their latest status. email-test Send the test email. history Show the score history or a growth metric. log Error log summary or the redacted tail. prune Delete history older than the retention period. report Send the weekly report now, or print it. run Run checks now. snooze Snooze a check: it stays listed but no longer affects the score. status Show the health score and the checks that need attention. unsnooze Remove a snooze.Check ids are the short names listed in the checks reference, for example log_fatals. Run any command with --help for its full text.
wp awc health status#
Show the health score and the checks that need attention.
wp awc health status [--format=<format>] [--group=<group>] [--min-status=<status>]| Option | Meaning |
|---|---|
--format=<format> | table or json. Default table. |
--group=<group> | Only this group: errors, cron, updates, vulns, platform, storage, performance, security, email or connectivity. |
--min-status=<status> | Only list checks at or above this status: pass, warn or fail. Default warn. |
Exits with status 1 when any check has failed, 0 otherwise.
$ wp awc health statusHealth score: 2 / 100 (At risk)id status critical messagelog_fatals fail yes Your site hit 16 fatal errors in the last 24 hours. Most of them came from Unknown source. Fatal errors can show visitors a broken page.log_warnings warn no Your site logged 210 warnings in the last 24 hours. They are not fatal, but they often point to a plugin or theme that needs attention.wp awc health run#
Run checks now.
wp awc health run [<check-id>...] [--group=<group>]| Option | Meaning |
|---|---|
<check-id>... | Check ids to run. Default: all checks, stored as a history row. |
--group=<group> | Run only this group. |
The count it reports includes WordPress's own Site Health tests and any that other plugins register, so it can be higher than 47.
wp awc health checks#
List the checks and their latest status.
wp awc health checks [--status=<status>] [--fields=<fields>] [--format=<format>]| Option | Meaning |
|---|---|
--status=<status> | Only this status. |
--fields=<fields> | Comma-separated fields. |
--format=<format> | table, json, csv, yaml or count. Default table. |
wp awc health history#
Show the score history or a growth metric.
wp awc health history [--days=<days>] [--metric=<metric>] [--format=<format>]| Option | Meaning |
|---|---|
--days=<days> | How far back. Default 30. |
--metric=<metric> | A metric such as db_bytes, uploads_bytes, autoload_bytes or fatal_count. Default: the score. |
--format=<format> | table, json or csv. Default table. |
wp awc health log#
Error log summary or the redacted tail.
wp awc health log [--summary] [--tail=<n>] [--level=<level>] [--format=<format>]| Option | Meaning |
|---|---|
--summary | Counts by level and the top offenders. This is the default. |
--tail=<n> | Print the last N lines of the log, redacted. |
--level=<level> | With --summary, only this level in the totals. |
--format=<format> | Output format for --summary: table or json. Default table. |
wp awc health snooze#
Snooze a check: it stays listed but no longer affects the score. Remove a snooze with wp awc health unsnooze <check-id>.
wp awc health snooze <check-id> [--days=<days>] [--note=<note>]| Option | Meaning |
|---|---|
<check-id> | The check to snooze. |
--days=<days> | 7, 30, 90, or 0 for "I understand and accept" (until removed). Default 30. |
--note=<note> | A note. |
wp awc health report#
Send the weekly report now, or print it.
wp awc health report [<action>] [--to=<email>] [--dry-run]| Option | Meaning |
|---|---|
<action> | Only send, which is the default. |
--to=<email> | Send to this address instead of the saved recipients. |
--dry-run | Print the plain-text report and send nothing. |
wp awc health email-test#
Send the test email.
wp awc health email-test [--to=<email>]| Option | Meaning |
|---|---|
--to=<email> | Recipient. Default: the site admin email. |
wp awc health prune#
Delete history older than the retention period. It takes no options. The retention period is a setting, 90 days by default.
wp awc health prune