Below is a listing of all currently available WP-CLI commands with links to documentation on usage and subcommands.
|Adds, removes, fetches, and flushes the WP Object Cache object.
|Adds, removes, and lists capabilities of a user role.
|Reviews current WP-CLI info, checks for updates, or views defined aliases.
|Creates, updates, deletes, and moderates comments.
|Generates and reads the wp-config.php file.
|Downloads, installs, updates, and manages a WordPress installation.
|Tests, runs, and deletes WP-Cron events; manages WP-Cron schedules.
|Performs basic database operations using credentials stored in wp-config.php.
|Create a distribution archive based on a project’s .distignore file.
|Inspects oEmbed providers, clears embed cache, and more.
|Loads and executes a PHP file.
|Executes arbitrary PHP code.
|Exports WordPress content to a WXR file.
|Find WordPress installations on the filesystem.
|Gets help on WP-CLI, or on a specific command.
|Imports content from a given WXR file.
|Installs, activates, and manages language packs.
|Imports files as attachments, regenerates thumbnails, or lists registered image sizes.
|Lists, creates, assigns, and deletes the active theme’s navigation menus.
|Perform network-wide operations.
|Retrieves and sets site options, including plugin and WordPress settings.
|Lists, installs, and removes WP-CLI packages.
|Manages plugins, including installs, activations, and updates.
|Retrieves details on the site’s registered post types.
|Manages posts, content, and meta.
|Quickly identify what’s slow with WordPress.
|Lists or flushes the site’s rewrite rules, updates the permalink structure.
|Manages user roles, including creating new roles and resetting to defaults.
|Generates code for post types, taxonomies, plugins, child themes, etc.
|Searches/replaces strings in the database.
|Launches PHP’s built-in web server for a specific WordPress installation.
|Opens an interactive PHP console for running and testing PHP code.
|Lists registered sidebars.
|Creates, deletes, empties, moderates, and lists one or more sites on a multisite installation.
|Lists, adds, or removes super admin users on a multisite installation.
|Retrieves information about registered taxonomies.
|Manages taxonomy terms and term meta, with create, delete, and list commands.
|Manages themes, including installs, activations, and updates.
|Adds, gets, and deletes entries in the WordPress Transient Cache.
|Manages users, along with their roles, capabilities, and meta.
|Manages widgets, including adding and moving them within sidebars.
|Provides internationalization tools for WordPress projects.
|Activates, deactivates or checks the status of the maintenance mode of a site.
|Open /wp-admin/ in a browser.