WordPress / health-check

Health Check is a WordPress plugin that will perform a number of checks on your WordPress install to detect common configuration errors and known issues.
GNU General Public License v2.0
174 stars 51 forks source link

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

Closed lukecav closed 1 year ago

lukecav commented 4 years ago

Something similar to this would be very useful.

wp health-check troubleshooting

karudonaldson commented 4 years ago

Seems unusual this module doesn't have CLI management.

rickmgithub commented 3 years ago

Please. It would have been useful in debugging today.

Clorith commented 3 years ago

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.

Lucisu commented 1 year ago

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

I'm available to do this if wanted.

Clorith commented 1 year ago

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 :)