Packages can be installed to add functionality to WP-CLI, for example wp-cli/wp-super-cache-cli package will add functions for managing WP Super Cache plugin from the terminal.
Here is a list of My favourite packages from the wp-cli/package-index:
billerickson/wp-cli-plugin-install-missing | install any plugins that are “active” but not installed |
binarygary/db-checkpoint | create quick db snapshots for development purposes |
jaywood/jw-wpcli-random-posts | random post generator of post types, post counts, taxonomies, terms, term counts and featured images |
buddypress/wp-cli-buddypress | community package with many BuddyPress commands |
c10b10/wp-cli-deploy | deploys the local database or the uploads directory to a remote server using ssh |
ivankruchkoff/wp-hammer | remove personally identifiable information and extra content for dev/test/stage purposes |
Before installing or running any packages, make sure to back up your wp-config.php
file and run wp db export
.
To install a package run:
wp package install PACKAGE-NAME
Was this post helpful?
Let me know if you liked the post. That’s the only way I can improve. 🙂