health-check icon indicating copy to clipboard operation
health-check copied to clipboard

Be able to enable troubleshooting mode using a WP-CLI command

Open lukecav opened this issue 4 years ago • 4 comments

Something similar to this would be very useful.

wp health-check troubleshooting

lukecav avatar Aug 17 '20 20:08 lukecav

Seems unusual this module doesn't have CLI management.

karudonaldson avatar Sep 08 '20 04:09 karudonaldson

Please. It would have been useful in debugging today.

rickmgithub avatar Jan 19 '21 13:01 rickmgithub

Hmm, interesting idea, a bit cumbersome to administrate, and would only affect the CLI instance, as well as require a start and stop sub-function (since you can't tie it to a session, like we do in the browser).

All of that said, yeah I can definitely see a use for this.

Clorith avatar Jan 19 '21 14:01 Clorith

It could have the parameter "--user" and tie the troubleshooting flag to the user meta.

I'm available to do this if wanted.

Lucisu avatar Oct 04 '22 04:10 Lucisu

Looking (and thinking) more on this recently, and I'm not sure if a troubleshooting mode support for WP-CLI makes sense a this time.

The WP-CLI instance has global parameters for --skip-plugins[=<plugins>] and --skip-themes[=<themes>], which basically let you run individual commands or instances without any plugins, themes, or specific plugins or themes. This is in theory what troubleshooting mode does within a browser instance as well, so trying to "re-invent the wheel" here, as it were, seems counter productive unfortunately.

Based on this, I'm closing the ticket for now, but if good use cases should appear, the ticket can of course be re-opened at such a time :)

Clorith avatar Jun 25 '23 22:06 Clorith