In this tutorial, we will learn about the list of WordPress CLI commands with description. WP-CLI is the command-line interface for WordPress. You can update plugins, configure multisite installations and much more, without using a web browser.
Here is a simple steps to install WP CLI.
Below is the list of main WP-CLI Commands:
Open /wp-admin/ in a browser.
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.
Executes arbitrary PHP code.
Loads and executes a PHP file.
Exports WordPress content to a WXR file.
Find WordPress installations on the filesystem.
Gets help on WP-CLI, or on a specific command.
Provides internationalization tools for WordPress projects.
Imports content from a given WXR file.
Installs, activates, and manages language packs.
Activates, deactivates or checks the status of the maintenance mode of a site.
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.
Manages posts, content, and meta.
Retrieves details on the site’s registered post types.
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.
If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.