Unlock Hidden Powers: Transform Your WordPress Workflow with WP-CLI Today!

Unlock Hidden Powers: Transform Your WordPress Workflow with WP-CLI Today!
wp plugin deactivate --all

To deactivate all plugins except for specific plugins, use the following command:

wp plugin deactivate --all --exclude=akismet,hello-dolly

You can view the other options in the wp plugin deactivate command documentation, and for more plugin-related commands, view the wp plugin command documentation

How to manage WordPress posts using WP-CLI

You can also work with posts and pages using WP-CLI. 

wp post list

First up, you can quickly get a list of all posts on a site using the following command:

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38