Reference
WP-CLI
Every `wp hellolog` subcommand, with what it does.
All commands are namespaced under wp hellolog.
| Command | What it does |
|---|---|
wp hellolog status | Current state: is a key set, is the site active, IP anonymization, queue counts by status, disabled sensors. |
wp hellolog flush | Flush the local queue to the backend right now, instead of waiting for the scheduled drain. |
wp hellolog test | Send a one-off test event, bypassing the queue. A successful response activates the site — the only path from "key stored" to "sensors attached." |
wp hellolog set-token <token> | Set the site's bearer token. Run test afterward to activate it. |
wp hellolog clear-token | Clear the stored token. Detaches sensors and stops the outgoing queue. |
wp hellolog clear-queue [--status=<pending, sending, or dead>] | Delete rows from the local outgoing queue. Without --status, deletes all of them. |
wp hellolog requeue-dead | Move every dead row back to pending so the next flush retries it. |
wp hellolog sensors | List every registered sensor and whether it's currently enabled. |
wp hellolog enable-sensor <key> | Enable a sensor by its key (see wp hellolog sensors for the list). |
wp hellolog disable-sensor <key> | Disable a sensor by its key. |
Example: recover from a backend outage
Terminal
wp hellolog status # see the dead count
wp hellolog test # confirm the backend accepts a ping
wp hellolog requeue-dead # dead -> pending
wp hellolog flush # send them now