Black Friday: 79% off every plugin Shop the sale →

Agencies: WP-CLI

The command is wp update-doctor.

CommandWhat it does
statusPreflight, pending updates, active run, pending proposals, AI status and snapshot disk use
checkThe quick site check. Exits with 1 when a page fails
risk [--format=json]Pending updates with their risk
`update <plugin\theme> [–yes]`A safe update. Exits with 1 when the run ends restored, restore_failed, regressed or error
runs [--status=<status>] and run <id>List runs, and show one with its findings, diagnosis and timeline
proposals [--status=<status>]List proposed actions
approve <id> --user=<user>Approve and execute, checking that user’s capabilities
reject <id> --user=<user> [--reason=<text>]Reject a proposal
undo <id> --user=<user>Undo an executed proposal, once
audit verify and `audit export [–format=csv\json]`Verify or export the audit log
snapshots list and snapshots pruneList or prune snapshots
wp update-doctor check
wp update-doctor update plugin woocommerce --yes
wp update-doctor approve 12 --user=admin
Was this article helpful?