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:
								


                                    
                                    
                                    
                                    
                                    
                                    
                                    
                                    
                                    
Post Comment