Other Useful Commands

There are many other useful external commands you can install and use. You can install it using wp package command. Refer wp package command documentation to learn more.

WP-CLI packages are community-maintained commands you can install with wp package install command. There are many ready to use packages created by the community which can be found here.

Here are couple of more useful commands.

Ideas to Explore:

  • You have a WordPress multisite network with several subsites. One of the subsites is experiencing a fatal error due to a specific plugin. You need to deactivate the problematic plugin for that subsite only, without affecting other subsites. Using WP-CLI:
    • How you would identify the subsite by its subdomain?
    • List the active plugins for that subsite
    • Deactivate the problematic plugin only for that subsite
  • Using WP-CLI, illustrate the steps involved to search all the database values from http://xyz.com to https://abc.com.
  • What is the –skip-plugin switch in WP CLI?

References