Recovery commands clear one subject rather than standing a whole layer down, from a shell the locked-out administrator already has, and each one logs what it did.
Nothing here checks a kill switch. Recovery must not depend on the layer it is recovering from. These commands work whether or not the module they touch is currently switched off.
Output is plain English and deliberately not translated — WP-CLI output is read by operators and grepped by scripts.
wp itxuo doctor
Reports why the site may be refusing to let you in. Read-only — it changes nothing.
Prints which kill switches are defined, whether premium is unlocked and how, which controls are on, the active lockouts, and whether a given address would survive the IP and country rules.
| Option | |
|---|---|
[--ip=<ip>] | Address to test the allowlist, blocklist and country rules against |
wp itxuo doctor
wp itxuo doctor --ip=203.0.113.9
Pass --ip. WP-CLI has no client address, so without it those two checks report "unknown" rather than an answer — and they are common causes.
It reports a kill switch even when the module that honours it failed to load, which is exactly the case an operator needs telling about.
wp itxuo unlock
Clears brute-force lockouts. The surgical replacement for ITXUO_DISABLE_LOGIN_SECURITY when the only problem is a lockout — the rest of the pre-password layer keeps protecting the site.
| Option | |
|---|---|
[--user=<user>] | ID, login or email |
[--ip=<ip>] | |
[--all] | Every active lockout. Asks for confirmation |
[--yes] | Skip the confirmation |
wp itxuo unlock --ip=203.0.113.9
wp itxuo unlock --user=jane@example.com
wp itxuo unlock --all --yes
--user matches lockouts stored against either the login or the email address, because the lock is keyed by whatever was typed into the form — and somebody who types their email is locked under their email.
wp itxuo 2fa-reset
Clears one account's second-factor enrolment so they can enrol again.
Replaces ITXUO_DISABLE_2FA for the common case — one person lost their phone *and* their recovery codes — without switching the second factor off for everybody else.
| Argument | |
|---|---|
<user> | ID, login or email |
wp itxuo 2fa-reset jane
wp itxuo passkey-revoke
Revokes one passkey, or every passkey a user holds.
| Argument | |
|---|---|
<user> | ID, login or email |
[--id=<credential>] | Credential row id, as listed by running without --id. Omit to revoke all |
[--yes] | Skip the confirmation when revoking all |
wp itxuo passkey-revoke jane
wp itxuo passkey-revoke jane --id=7
Run it without --id first to list what they hold.
wp itxuo sudo-clear
Ends a wedged re-authentication loop.
Two things cause one: five failed confirmations put the account behind a ten-minute attempt lock that silently bounces every attempt back to the dashboard, and a confirmation bound to a session token that has since rotated can never be recognised. Both live in transients; both are cleared here.
| Argument | |
|---|---|
[<user>] | ID, login or email. Omit to clear every user's sudo state |
[--yes] | Skip the confirmation on the site-wide form |
wp itxuo sudo-clear jane
wp itxuo sudo-clear --yes
wp itxuo offboard
Runs an offboarding workflow.
wp itxuo offboard <user> --template=<name>
wp itxuo user and wp itxuo export
From the Integrations module:
wp itxuo user disable <user>
wp itxuo user enable <user>
wp itxuo user logout <user>
wp itxuo user status <user>
wp itxuo export
Everything is audited
Every mutating recovery command writes an event recording what it did and that it came from the CLI.
A second factor cleared from a shell is indistinguishable in outcome from one cleared in the admin — so the log has to distinguish them, or the audit trail has a blind spot exactly where the emergency access is.