Agencies: WP-CLI
The command is wp update-doctor.
| Command | What it does | |
|---|---|---|
status | Preflight, pending updates, active run, pending proposals, AI status and snapshot disk use | |
check | The quick site check. Exits with 1 when a page fails | |
risk [--format=json] | Pending updates with their risk | |
| `update <plugin\ | theme> | 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 prune | List 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?
Tell us what was missing
