ideas icon indicating copy to clipboard operation
ideas copied to clipboard

Add an --only-plugins and --only-themes config flag

Open Orrison opened this issue 5 years ago • 1 comments

Today we have a --skip-plugins and --skip-themes flag that allow us to specify what plugins and themes NOT to load. But sometimes you want to load one or more plugin/theme but none of the others. Perhaps a plugin exposes some wp-cli command you need to use but you don't want any other plugins loaded while running it.

To do so now would take some run around to get a list of plugins then pass them to the --skip-plugins command sans the plugin you actually wanted loaded.

Orrison avatar Oct 30 '20 16:10 Orrison

Thanks for the suggestion, @Orrison !

--skip-themes and --skip-plugins are global parameters, and global parameters can conflict with plugin parameters. As such, I think we're unlikely to introduce --only-plugins and --only-themes global parameters.

danielbachhuber avatar Apr 26 '23 20:04 danielbachhuber