WP CLI is the command-line interface for WordPress. We can do all the things from the command prompt. Download the complete list in PDF of WP CLI Commands.

E.g. Updating plugins, configure multisite installs switching theme, creating a user and much more.

Below is the complete list of all WP CLI commands.

wp admin wp admin

Open /wp-admin/ in a browser.

Git | Doc

wp cache wp cache

Adds, removes, fetches, and flushes the WP Object Cache object.

Git | Doc

Sub Commands

wp cache addGit | Doc
wp cache decrGit | Doc
wp cache deleteGit | Doc
wp cache flushGit | Doc
wp cache getGit | Doc
wp cache incrGit | Doc
wp cache replaceGit | Doc
wp cache setGit | Doc
wp cache typeGit | Doc

wp cap wp cap

Adds, removes, and lists capabilities of a user role.

Git | Doc

Sub Commands

wp cap addGit | Doc
wp cap listGit | Doc
wp cap removeGit | Doc

wp cli wp cli

Review current WP-CLI info, check for updates, or see defined aliases.

Git | Doc

Sub Commands

wp cli aliasGit | Doc
wp cli alias addGit | Doc
wp cli alias deleteGit | Doc
wp cli alias getGit | Doc
wp cli alias listGit | Doc
wp cli alias updateGit | Doc
wp cli cacheGit | Doc
wp cli cache clearGit | Doc
wp cli cache pruneGit | Doc
wp cli check-updateGit | Doc
wp cli cmd-dumpGit | Doc
wp cli completionsGit | Doc
wp cli has-commandGit | Doc
wp cli infoGit | Doc
wp cli param-dumpGit | Doc
wp cli updateGit | Doc
wp cli versionGit | Doc

wp comment wp comment

Creates, updates, deletes, and moderates comments.

Git | Doc

Sub Commands

wp comment approveGit | Doc
wp comment countGit | Doc
wp comment createGit | Doc
wp comment deleteGit | Doc
wp comment existsGit | Doc
wp comment generateGit | Doc
wp comment getGit | Doc
wp comment listGit | Doc
wp comment metaGit | Doc
wp comment meta addGit | Doc
wp comment meta deleteGit | Doc
wp comment meta getGit | Doc
wp comment meta listGit | Doc
wp comment meta patchGit | Doc
wp comment meta pluckGit | Doc
wp comment meta updateGit | Doc
wp comment recountGit | Doc
wp comment spamGit | Doc
wp comment statusGit | Doc
wp comment trashGit | Doc
wp comment unapproveGit | Doc
wp comment unspamGit | Doc
wp comment untrashGit | Doc
wp comment updateGit | Doc

wp config wp config

Generates and reads the wp-config.php file.

Git | Doc

Sub Commands

wp config createGit | Doc
wp config deleteGit | Doc
wp config editGit | Doc
wp config getGit | Doc
wp config hasGit | Doc
wp config listGit | Doc
wp config pathGit | Doc
wp config setGit | Doc
wp config shuffle-saltsGit | Doc

wp core wp core

Downloads, installs, updates, and manages a WordPressWordPress WordPress (WordPress.org) is a content management system (CMS) based on PHP and MySQL that is usually used with the MySQL or MariaDB database servers but can also use the SQLite database engine. installation.

Git | Doc

Sub Commands

wp core check-updateGit | Doc
wp core downloadGit | Doc
wp core installGit | Doc
wp core is-installedGit | Doc
wp core multisite-convertGit | Doc
wp core multisite-installGit | Doc
wp core update-dbGit | Doc
wp core updateGit | Doc
wp core verify-checksumsGit | Doc
wp core versionGit | Doc

wp cron wp cron

Tests, runs, and deletes WP-Cron events; manages WP-Cron schedules.

Git | Doc

Sub Commands

wp cron eventGit | Doc
wp cron event deleteGit | Doc
wp cron event listGit | Doc
wp cron event runGit | Doc
wp cron event scheduleGit | Doc
wp cron scheduleGit | Doc
wp cron schedule listGit | Doc
wp cron testGit | Doc

wp db wp db

Performs basic database operations using credentials stored in wp-config.php.

Git | Doc

Sub Commands

wp db checkGit | Doc
wp db cleanGit | Doc
wp db cliGit | Doc
wp db columnsGit | Doc
wp db createGit | Doc
wp db dropGit | Doc
wp db exportGit | Doc
wp db importGit | Doc
wp db optimizeGit | Doc
wp db prefixGit | Doc
wp db queryGit | Doc
wp db repairGit | Doc
wp db resetGit | Doc
wp db searchGit | Doc
wp db sizeGit | Doc
wp db tablesGit | Doc

wp dist-archive wp dist-archive

Create a distribution archive based on a project’s .distignore file.

Git | Doc

wp embed wp embed

Inspects oEmbed providers, clears embed cache, and more.

Git | Doc

Sub Commands

wp embed cacheGit | Doc
wp embed cache clearGit | Doc
wp embed cache findGit | Doc
wp embed cache triggerGit | Doc
wp embed fetchGit | Doc
wp embed handlerGit | Doc
wp embed handler listGit | Doc
wp embed providerGit | Doc
wp embed provider listGit | Doc
wp embed provider matchGit | Doc

wp eval-file wp eval-file

Loads and executes a PHP file.

Git | Doc

wp eval wp eval

Executes arbitrary PHP code.

Git | Doc

wp export wp export

Exports WordPress content to a WXR file.

Git | Doc

wp find wp find

Find WordPress installations on the filesystem.

Git | Doc

wp help wp help

Get help on WP-CLI, or on a specific command.

Git | Doc

wp i18n wp i18n

Provides internationalization tools for WordPress projects.

Git | Doc

Sub Commands

wp i18n make-jsonGit | Doc
wp i18n make-potGit | Doc

wp import wp import

Imports content from a given WXR file.

Git | Doc

wp language wp language

Installs, activates, and manages language packs.

Git | Doc

Sub Commands

wp language coreGit | Doc
wp language core activateGit | Doc
wp language core installGit | Doc
wp language core is-installedGit | Doc
wp language core listGit | Doc
wp language core uninstallGit | Doc
wp language core updateGit | Doc
wp language pluginGit | Doc
wp language plugin installGit | Doc
wp language plugin is-installedGit | Doc
wp language plugin listGit | Doc
wp language plugin uninstallGit | Doc
wp language plugin updateGit | Doc
wp language themeGit | Doc
wp language theme installGit | Doc
wp language theme is-installedGit | Doc
wp language theme listGit | Doc
wp language theme uninstallGit | Doc
wp language theme updateGit | Doc

wp maintenance-mode wp maintenance-mode

Activates, deactivates or checks the status of the maintenance mode of a site.

Git | Doc

Sub Commands

wp maintenance-mode activateGit | Doc
wp maintenance-mode deactivateGit | Doc
wp maintenance-mode is-activeGit | Doc
wp maintenance-mode statusGit | Doc

wp media wp media

Imports files as attachments, regenerates thumbnails, or lists registered image sizes.

Git | Doc

Sub Commands

wp media fix-orientationGit | Doc
wp media image-sizeGit | Doc
wp media importGit | Doc
wp media regenerateGit | Doc

Lists, creates, assigns, and deletes the active theme’s navigation menus.

Git | Doc

Sub Commands

wp menu createGit | Doc
wp menu deleteGit | Doc
wp menu itemGit | Doc
wp menu item add-customGit | Doc
wp menu item add-postGit | Doc
wp menu item add-termGit | Doc
wp menu item deleteGit | Doc
wp menu item listGit | Doc
wp menu item updateGit | Doc
wp menu listGit | Doc
wp menu locationGit | Doc
wp menu location assignGit | Doc
wp menu location listGit | Doc
wp menu location removeGit | Doc

wp network wp network

Perform network-wide operations.

Git | Doc

Sub Commands

wp network metaGit | Doc
wp network meta addGit | Doc
wp network meta deleteGit | Doc
wp network meta getGit | Doc
wp network meta listGit | Doc
wp network meta patchGit | Doc
wp network meta pluckGit | Doc
wp network meta updateGit | Doc

wp option wp option

Retrieves and sets site options, including plugin and WordPress settings.

Git | Doc

Sub Commands

wp option addGit | Doc
wp option deleteGit | Doc
wp option getGit | Doc
wp option listGit | Doc
wp option patchGit | Doc
wp option pluckGit | Doc
wp option updateGit | Doc

wp package wp package

Lists, installs, and removes WP-CLI packages.

Git | Doc

Sub Commands

wp package browseGit | Doc
wp package installGit | Doc
wp package listGit | Doc
wp package pathGit | Doc
wp package uninstallGit | Doc
wp package updateGit | Doc

wp plugin wp plugin

Manages plugins, including installs, activations, and updates.

Git | Doc

Sub Commands

wp plugin activateGit | Doc
wp plugin deactivateGit | Doc
wp plugin deleteGit | Doc
wp plugin getGit | Doc
wp plugin installGit | Doc
wp plugin is-activeGit | Doc
wp plugin is-installedGit | Doc
wp plugin listGit | Doc
wp plugin pathGit | Doc
wp plugin searchGit | Doc
wp plugin statusGit | Doc
wp plugin toggleGit | Doc
wp plugin uninstallGit | Doc
wp plugin updateGit | Doc
wp plugin verify-checksumsGit | Doc

wp post-type wp post-type

Retrieves details on the site’s registered post types.

Git | Doc

Sub Commands

wp post-type getGit | Doc
wp post-type listGit | Doc

wp post wp post

Manages posts, content, and meta.

Git | Doc

Sub Commands

wp post createGit | Doc
wp post deleteGit | Doc
wp post editGit | Doc
wp post existsGit | Doc
wp post generateGit | Doc
wp post getGit | Doc
wp post listGit | Doc
wp post metaPost Meta Meta has several meanings, but generally means information about. In WordPress, meta usually refers to administrative type information.Git | Doc
wp post meta addGit | Doc
wp post meta deleteGit | Doc
wp post meta getGit | Doc
wp post meta listGit | Doc
wp post meta patchGit | Doc
wp post meta pluckGit | Doc
wp post meta updateGit | Doc
wp post termGit | Doc
wp post term addGit | Doc
wp post term listGit | Doc
wp post term removeGit | Doc
wp post term setGit | Doc
wp post updateGit | Doc

wp profile wp profile

Git | Doc

Sub Commands

wp profile eval-fileGit | Doc
wp profile evalGit | Doc
wp profile hookGit | Doc
wp profile stageGit | Doc

wp rewrite wp rewrite

Lists or flushes the site’s rewrite rules, updates the permalink structure.

Git | Doc

Sub Commands

wp rewrite flushGit | Doc
wp rewrite listGit | Doc
wp rewrite structureGit | Doc

wp role wp role

Manages user roles, including creating new roles and resetting to defaults.

Git | Doc

Sub Commands

wp role createGit | Doc
wp role deleteGit | Doc
wp role existsGit | Doc
wp role listGit | Doc
wp role resetGit | Doc

wp scaffold wp scaffold

Generates code for post types, taxonomies, plugins, child themes, etc.

Git | Doc

Sub Commands

wp scaffold blockGit | Doc
wp scaffold child-themeGit | Doc
wp scaffold plugin-testsGit | Doc
wp scaffold pluginGit | Doc
wp scaffold post-typeGit | Doc
wp scaffold taxonomyGit | Doc
wp scaffold theme-testsGit | Doc
wp scaffold underscoresGit | Doc

wp search-replace wp search-replace

Searches/replaces strings in the database.

Git | Doc

wp server wp server

Launches PHP’s built-in web server for a specific WordPress installation.

Git | Doc

wp shell wp shell

Opens an interactive PHP console for running and testing PHP code.

Git | Doc

Lists registered sidebars.

Git | Doc

Sub Commands

wp sidebar listGit | Doc

wp site wp site

Creates, deletes, empties, moderates, and lists one or more sites on a multisite installation.

Git | Doc

Sub Commands

wp site activateGit | Doc
wp site archiveGit | Doc
wp site createGit | Doc
wp site deactivateGit | Doc
wp site deleteGit | Doc
wp site emptyGit | Doc
wp site listGit | Doc
wp site matureGit | Doc
wp site metaGit | Doc
wp site meta addGit | Doc
wp site meta deleteGit | Doc
wp site meta getGit | Doc
wp site meta listGit | Doc
wp site meta patchGit | Doc
wp site meta pluckGit | Doc
wp site meta updateGit | Doc
wp site optionGit | Doc
wp site option addGit | Doc
wp site option deleteGit | Doc
wp site option getGit | Doc
wp site option listGit | Doc
wp site option patchGit | Doc
wp site option pluckGit | Doc
wp site option updateGit | Doc
wp site privateGit | Doc
wp site publicGit | Doc
wp site spamGit | Doc
wp site switch-languageGit | Doc
wp site unarchiveGit | Doc
wp site unmatureGit | Doc
wp site unspamGit | Doc

wp super-admin wp super-admin

Lists, adds, or removes super admin users on a multisite installation.

Git | Doc

Sub Commands

wp super-admin addGit | Doc
wp super-admin listGit | Doc
wp super-admin removeGit | Doc

wp taxonomy wp taxonomy

Retrieves information about registered taxonomies.

Git | Doc

Sub Commands

wp taxonomy getGit | Doc
wp taxonomy listGit | Doc

wp term wp term

Manages taxonomy terms and term meta, with create, delete, and list commands.

Git | Doc

Sub Commands

wp term createGit | Doc
wp term deleteGit | Doc
wp term generateGit | Doc
wp term getGit | Doc
wp term listGit | Doc
wp term metaGit | Doc
wp term meta addGit | Doc
wp term meta deleteGit | Doc
wp term meta getGit | Doc
wp term meta listGit | Doc
wp term meta patchGit | Doc
wp term meta pluckGit | Doc
wp term meta updateGit | Doc
wp term migrateGit | Doc
wp term recountGit | Doc
wp term updateGit | Doc

wp theme wp theme

Manages themes, including installs, activations, and updates.

Git | Doc

Sub Commands

wp theme activateGit | Doc
wp theme deleteGit | Doc
wp theme disableGit | Doc
wp theme enableGit | Doc
wp theme getGit | Doc
wp theme installGit | Doc
wp theme is-activeGit | Doc
wp theme is-installedGit | Doc
wp theme listGit | Doc
wp theme modGit | Doc
wp theme mod getGit | Doc
wp theme mod listGit | Doc
wp theme mod removeGit | Doc
wp theme mod setGit | Doc
wp theme pathGit | Doc
wp theme searchGit | Doc
wp theme statusGit | Doc
wp theme updateGit | Doc

wp transient wp transient

Adds, gets, and deletes entries in the WordPress Transient Cache.

Git | Doc

Sub Commands

wp transient deleteGit | Doc
wp transient getGit | Doc
wp transient listGit | Doc
wp transient setGit | Doc
wp transient typeGit | Doc

wp user wp user

Manages users, along with their roles, capabilities, and meta.

Git | Doc

Sub Commands

wp user add-capGit | Doc
wp user add-roleGit | Doc
wp user check-passwordGit | Doc
wp user createGit | Doc
wp user deleteGit | Doc
wp user generateGit | Doc
wp user getGit | Doc
wp user import-csvGit | Doc
wp user list-capsGit | Doc
wp user listGit | Doc
wp user metaGit | Doc
wp user meta addGit | Doc
wp user meta deleteGit | Doc
wp user meta getGit | Doc
wp user meta listGit | Doc
wp user meta patchGit | Doc
wp user meta pluckGit | Doc
wp user meta updateGit | Doc
wp user remove-capGit | Doc
wp user remove-roleGit | Doc
wp user reset-passwordGit | Doc
wp user sessionGit | Doc
wp user session destroyGit | Doc
wp user session listGit | Doc
wp user set-roleGit | Doc
wp user spamGit | Doc
wp user termGit | Doc
wp user term addGit | Doc
wp user term listGit | Doc
wp user term removeGit | Doc
wp user term setGit | Doc
wp user unspamGit | Doc
wp user updateGit | Doc

wp widget wp widget

Manages widgets, including adding and moving them within sidebars.

Git | Doc

Sub Commands

wp widget addGit | Doc
wp widget deactivateGit | Doc
wp widget deleteGit | Doc
wp widget listGit | Doc
wp widget moveGit | Doc
wp widget resetGit | Doc
wp widget updateGit | Doc

Click on below button to download the complete list of all WP CLI commands in PDF format.

Leave a Reply

Your email address will not be published. Required fields are marked *