A command line interface for WordPress

wp-cli/package-index Package Index

WP-CLI packages are community-maintained commands you can install with wp package install (doc).

There are a few advantages to distributing custom commands as packages, instead of bundling them in plugins:

See the commands cookbook for learning how to write your own command. For a non-exhaustive list of commands available in plugins, please see the tools page.

Publish your own package by submitting it to the package index.

Filter by package name:


A set of WP-CLI commands to support the migration of single WordPress instances to multisite

Homepage https://github.com/10up/MU-Migration
License MIT
Authors Nícholas André
Releases dev-develop, dev-master, dev-feature/behat-tests, dev-feature/filter-process-args, dev-feature/cleanup


View PHPDoc of any class, method, property, or function.

Homepage https://github.com/alleyinteractive/wp-doc-command
License MIT
Releases dev-main


Install any plugins that are active but missing.

Homepage https://github.com/billerickson/wp-cli-plugin-install-missing
License MIT
Releases dev-master


Create quick db snapshots for development purposes.

Homepage https://github.com/binarygary/db-checkpoint
License MIT
Authors Gary Kovar
Releases 0.2.1, 0.2.0.x-dev, 0.2.0, 0.1.1, 0.1.0, dev-master, dev-feature/add-functional-test


Git helper for wp-cli core, plugin, and theme commands

Homepage https://github.com/boonebgorges/wp-cli-git-helper
License MIT
Authors Boone B Gorges
Releases 0.1.x-dev, 0.1.0, dev-master


A command to invoke a deployment via envoyer using the DEPLOY_URL environment variable

Homepage https://github.com/brightoak/wp-cli-envoyer
Releases dev-master


WP-CLI Community Package of BuddyPress commands

Homepage https://github.com/buddypress/wp-cli-buddypress
License MIT
Authors The BuddPress Contributors
Releases 2.0.1, 2.0, 1.8, 1.7, 1.6, 1.5, 1.1.1, 1.1.0, 1.0.0, dev-master, dev-dependabot/composer/rmccue/requests-1.8.0


Deploys the local WordPress database or the uploads directory to a remote server using ssh.

Homepage https://github.com/c10b10/wp-cli-deploy
License MIT
Authors Alex Ciobica
Releases v1.0.0, dev-dev, dev-master


Tool to reset WordPress database. This reset WP database but retains given administrator user account.

Homepage https://github.com/ernilambar/database-command
License MIT
Authors Nilambar Sharma
Releases v0.1.2, v0.1.1, v0.1.0, dev-master


General migration command for WP-CLI

License WTFPL
Authors Stian Liknes
Releases v0.0.2, v0.0.1, v0.0.0, dev-master


A WP-CLI command to list all sites in a Multisite network that have activated a given plugin

Homepage https://github.com/iandunn/wp-cli-plugin-active-on-sites
License GPLv2
Authors Ian Dunn
Releases dev-master


A WP-CLI command to rename WordPress' database prefix.

Homepage https://github.com/iandunn/wp-cli-rename-db-prefix
License GPLv2
Authors Ian Dunn
Releases dev-master


Manage TGMPA plugins with WP-CLI

Homepage https://github.com/itspriddle/wp-cli-tgmpa-plugin
License MIT
Authors Joshua Priddle
Releases v0.3.0, v0.2.0, v0.1.3, v0.1.2, v0.1.1, v0.1.0, dev-master, dev-refactor/wp-admin


WP CLI Hammer Command to remove personally identifiable information and extra content for dev/test/stage purposes

Homepage https://github.com/10up/wp-hammer
License MIT
Authors Ivan Kruchkoff
Releases dev-add/update-uri, dev-master


A robust random post generator for WP CLI which supports multisite, post types, post counts, taxonomies, terms, term counts and featured images.

Homepage http://plugish.com
License GPLv2
Authors Jay Wood
Releases 2.0, 1.4, 1.3, 1.2, 1.1, dev-develop, dev-master, dev-feature/allow-test-data-removal, dev-feature/faker


Scaffold wp-browser based tests for a plugin or theme

Homepage https://github.com/lucatume/wpcli-wpbrowser-tests
License MIT
Authors Luca Tumedei
Releases 1.0.3, 1.0.2, 1.0.1, 1.0.0, dev-master


WP Installer CLI Command

Homepage https://github.com/mattgrshaw/wp-installer
License GPLv3
Authors Matt Shaw
Releases dev-master


WordPress Git helpers, like pre-commit hooks for automatic MySQL database dumps.

Homepage https://github.com/mattes/wp-cli-git-command
License MIT
Authors Matthias Kadenbach
Releases v1.0.2, v1.0.1, v1.0.0, dev-master


Quick WordPress helpers.

Homepage https://github.com/mattes/wp-cli-quick-command
License MIT
Authors Matthias Kadenbach
Releases dev-master


Makes wp-config to load settings from ENV variables.

Homepage https://github.com/michaloo/wp-cli-environmentalize
License MIT
Authors Michał Rączka
Releases dev-master


WP-CLI command to grab favorited plugins from any wordpress.org account.

Homepage https://github.com/mikedance/wp-cli-favorite-plugins
License GPLv2
Authors Michael Dance
Releases 1.2, 1.1, dev-dev, dev-master


WP-CLI command for Plugins API

Homepage http://github.com/miya0001/wp-cli-plugins-api
License GPL-2.0
Authors Takayuki Miyauchi
Releases 1.0.1, 1.0, dev-master


Manage multiple WordPress sites in the server.

Homepage https://github.com/miya0001/wp-cli-vhosts
License GPL-2.0
Authors Takayuki Miyauchi
Releases 1.4.1, 1.4.0, 1.2.0, 1.1.0, 1.0.0, dev-master, dev-stable


WP CLI Command to Search Replace Strings in revolution slider

Homepage https://github.com/Nikschavan/revslider-search-replace
License MIT
Releases dev-master


Clear the cache of a user or a site.

Homepage https://github.com/ocean90/wp-cli-flush-cache
License GPL-2.0+
Releases dev-master


Manage Databases and Domains for Oderland Hosting Services

Homepage https://github.com/oderland/wp-cli-oderland
License MIT
Authors Package Maintainer
Releases dev-new2, dev-master, dev-new


Check against a WordPress for performance and security

License MIT
Releases 0.6.x-dev, v0.6.8, v0.6.7, v0.6.6, v0.6.5, v0.6.3, v0.6.2, v0.6.1, v0.6.0, dev-add-license-1, dev-master, dev-travis, dev-fix_travis, dev-fix_utils_typo, dev-readme-object-cache, dev-use_wpcli_to_sanitize


Database and table sizes command for WP-CLI

Homepage https://github.com/petenelson/wp-cli-size
License MIT
Authors Pete Nelson
Releases dev-master, dev-feature/media-size


wp-cli debug proxy setup (mitmproxy.org)

Homepage https://github.com/pixline/wp-cli-proxy
License MIT
Authors Paolo Tresso
Releases 0.1.3, dev-master


Unofficial WP-CLI wrapper for the WP Static HTML Output Plugin

Homepage https://github.com/astorm/wp-static-html-output-plugin
License MIT
Authors Alan Storm
Releases dev-alanstorm-dot-com, dev-master


Creates a local config for any WordPress installation, based on a few questions you get asked.

License MIT
Authors Jeroen Ketelaar, Redkiwi
Releases 0.3.1, 0.3, 0.2.2, 0.2.1, 0.1, dev-master

Assign featured images to posts that support thumbnails.

Homepage https://runcommand.io/wp/assign-featured-images/
License MIT
Authors Daniel Bachhuber
Releases dev-master


Find a specific string in the database.

Homepage https://runcommand.io/wp/db-ack/
License MIT
Authors Daniel Bachhuber
Releases dev-master


Find unused themes on a multisite network.

Homepage https://runcommand.io/wp/find-unused-themes/
License MIT
Authors Daniel Bachhuber
Releases dev-master


List callbacks registered to a given action or filter.

Homepage https://runcommand.io/wp/hook/
License MIT
Authors Daniel Bachhuber
Releases dev-master


See what's going on inside of WordPress.

Homepage https://runcommand.io/wp/manifest/
License MIT
Releases dev-active-plugins, dev-master


Sideload embedded images, and update post content references.

Homepage https://runcommand.io/wp/media-sideload/
License MIT
Authors Daniel Bachhuber
Releases dev-master


List media sizes registered with WordPress.

Homepage https://runcommand.io/wp/media-sizes/
License MIT
Releases dev-master


Proactively download and cache core, theme, and plugin files for later installation.

Homepage https://runcommand.io/wp/precache/
License MIT
Authors Daniel Bachhuber
Releases dev-master


Find the query causing your performance issues.

Homepage https://runcommand.io/wp/query-debug/
License MIT
Authors Daniel Bachhuber
Releases dev-master


Reset passwords for one or more WordPress users.

Homepage https://runcommand.io/wp/user-reset-password/
License MIT
Authors Daniel Bachhuber
Releases v0.1.0, dev-master


Manage your WordPress dependencies using the power of Composer, WP-CLI, and http://wpackagist.org/

Authors De'Yonté W.
Releases dev-dev, dev-master


Manage salts for your WordPress installation

Homepage https://github.com/sebastiaandegeus/wp-cli-salts-command
License MIT
Releases dev-master


WP-CLI commands for the Shifter

Homepage https://github.com/getshifter/wp-cli-shifter
License GPL-2.0
Authors Shifter Team
Releases v1.8.1, 1.8.0, 1.7.0, 1.6.0, 1.5.1, 1.5.0, 1.4.0, 1.3.0, 1.2.2, 1.2.1, 1.2.0, 1.1.0, 1.0.2, 1.0.1, 0.1.1, 0.1.0, dev-add-generate-command, dev-allow-to-exec-on-staging, dev-master, dev-stable, dev-renovate/configure, dev-feature/new-api/archive


Perform operations on prefixed database tables.

Homepage https://github.com/szepeviktor/wp-cli-database-prefix-command
License MIT
Authors Viktor Szépe
Releases dev-master


WP-CLI command to optimize WordPress image attachments using the Kraken Image Optimizer.

Homepage https://github.com/tillkruss/wp-cli-kraken
License MIT
Authors Till Krüss
Releases dev-master


Find, list and update templates for WP-CLI

Homepage https://github.com/timhysniu/wp-cli-template
License MIT
Authors Tim Hysniu
Releases dev-master


Database change management for WP-CLI

Homepage https://github.com/timhysniu/wp-dbdelta
License MIT
Authors Tim Hysniu
Releases dev-master


Extract a single blog from a multisite

Homepage https://github.com/trepmal/blog-extractor
License MIT
Authors Kailey Lampert
Releases dev-master


Get informations as YAML format for Wordmove's movefile.yml from WordPress

Homepage https://github.com/vccw-team/wp-cli-scaffold-movefile
License GPL-2.0
Authors Takayuki Miyauchi
Releases 1.9.0, 1.8.1, 1.7.0, 1.6.0, 1.5.0, 1.4.4, 1.4.3, 1.4.2, 1.4.1, 1.4.0, 1.3.0, 1.2.0, 1.1.2, dev-master


Homepage https://github.com/vccw-team/scaffold-vccw
License MIT
Releases 1.4.0, 1.3.0, 1.2.0, 1.1.1, 1.1.0, 1.0.1, 1.0.0, dev-master, dev-stable


Environment package for wp-cli

License MIT
Authors Piotr Kierzniewski
Releases 0.2.0, 0.1.0, dev-develop, dev-master


Homepage https://github.com/welaika/wp-cli-db2utf8
License MIT
Releases dev-master


Unlock the potential of the WP REST API at the command line.

License MIT
Authors Daniel Bachhuber
Releases v0.3.0, v0.2.0, v0.1.0, dev-master, dev-regenerate-readme, dev-dependabot/composer/behat/behat-approx-3.10


Add a `wp rocket` command to support the WP Rocket plugin

Homepage https://github.com/wp-media/wp-rocket-cli
License MIT
Authors WP Rocket Team
Releases v1.3, v1.2, v1.1.2, v1.1.1, 1.0, dev-develop, dev-trunk