Skip to content

WP-CLI is the command-line interface for WordPress. You can update plugins, configure multisite installs and much more, without using a web browser.

Notifications You must be signed in to change notification settings

maheshwaghmare/wp-cli-commands-cheat-sheet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

WP CLI Commands Cheat Sheet (Complete List of WP CLI Commands)

WP-CLI is the command-line interface for WordPress. You can update plugins, configure multisite installs and much more, without using a web browser.

Below is the complete list of WP CLI commands:

Cache
1 wp cache add Docs | Git
2 wp cache decr Docs | Git
3 wp cache delete Docs | Git
4 wp cache flush Docs | Git
5 wp cache get Docs | Git
6 wp cache incr Docs | Git
7 wp cache replace Docs | Git
8 wp cache set Docs | Git
9 wp cache type Docs | Git
Cap
1 wp cap add Docs | Git
2 wp cap list Docs | Git
3 wp cap remove Docs | Git
Cli
1 wp cli alias Docs | Git
2 wp cli check-update Docs | Git
3 wp cli cmd-dump Docs | Git
4 wp cli completions Docs | Git
5 wp cli has-command Docs | Git
6 wp cli info Docs | Git
7 wp cli param-dump Docs | Git
8 wp cli update Docs | Git
9 wp cli version Docs | Git
Comment
1 wp comment approve Docs | Git
2 wp comment count Docs | Git
3 wp comment create Docs | Git
4 wp comment delete Docs | Git
5 wp comment exists Docs | Git
6 wp comment generate Docs | Git
7 wp comment get Docs | Git
8 wp comment list Docs | Git
9 wp comment meta Docs | Git
10 wp comment recount Docs | Git
11 wp comment spam Docs | Git
12 wp comment status Docs | Git
13 wp comment trash Docs | Git
14 wp comment unapprove Docs | Git
15 wp comment unspam Docs | Git
16 wp comment untrash Docs | Git
17 wp comment update Docs | Git
18 wp comment meta add Docs | Git
19 wp comment meta delete Docs | Git
20 wp comment meta get Docs | Git
21 wp comment meta list Docs | Git
22 wp comment meta patch Docs | Git
23 wp comment meta pluck Docs | Git
24 wp comment meta update Docs | Git
Config
1 wp config create Docs | Git
2 wp config delete Docs | Git
3 wp config get Docs | Git
4 wp config has Docs | Git
5 wp config list Docs | Git
6 wp config path Docs | Git
7 wp config set Docs | Git
Core
1 wp core check-update Docs | Git
2 wp core download Docs | Git
3 wp core install Docs | Git
4 wp core is-installed Docs | Git
5 wp core multisite-convert Docs | Git
6 wp core multisite-install Docs | Git
7 wp core update-db Docs | Git
8 wp core update Docs | Git
9 wp core verify-checksums Docs | Git
10 wp core version Docs | Git
Cron
1 wp cron event Docs | Git
2 wp cron schedule Docs | Git
3 wp cron test Docs | Git
4 wp cron event delete Docs | Git
5 wp cron event list Docs | Git
6 wp cron event run Docs | Git
7 wp cron event schedule Docs | Git
8 wp cron schedule list Docs | Git
Db
1 wp db check Docs | Git
2 wp db cli Docs | Git
3 wp db create Docs | Git
4 wp db drop Docs | Git
5 wp db export Docs | Git
6 wp db import Docs | Git
7 wp db optimize Docs | Git
8 wp db prefix Docs | Git
9 wp db query Docs | Git
10 wp db repair Docs | Git
11 wp db reset Docs | Git
12 wp db search Docs | Git
13 wp db size Docs | Git
14 wp db tables Docs | Git
Embed
1 wp embed cache Docs | Git
2 wp embed fetch Docs | Git
3 wp embed handler Docs | Git
4 wp embed provider Docs | Git
5 wp embed cache clear Docs | Git
6 wp embed cache find Docs | Git
7 wp embed cache trigger Docs | Git
8 wp embed handler list Docs | Git
9 wp embed provider list Docs | Git
10 wp embed provider match Docs | Git
Language
1 wp language core Docs | Git
2 wp language core activate Docs | Git
3 wp language core install Docs | Git
4 wp language core list Docs | Git
5 wp language core uninstall Docs | Git
6 wp language core update Docs | Git
Media
1 wp media image-size Docs | Git
2 wp media import Docs | Git
3 wp media regenerate Docs | Git
Menu
1 wp menu create Docs | Git
2 wp menu delete Docs | Git
3 wp menu item Docs | Git
4 wp menu list Docs | Git
5 wp menu location Docs | Git
6 wp menu item add-custom Docs | Git
7 wp menu item add-post Docs | Git
8 wp menu item add-term Docs | Git
9 wp menu item delete Docs | Git
10 wp menu item list Docs | Git
11 wp menu item update Docs | Git
12 wp menu location assign Docs | Git
13 wp menu location list Docs | Git
14 wp menu location remove Docs | Git
Network
1 wp network meta Docs | Git
2 wp network meta add Docs | Git
3 wp network meta delete Docs | Git
4 wp network meta get Docs | Git
5 wp network meta list Docs | Git
6 wp network meta patch Docs | Git
7 wp network meta pluck Docs | Git
8 wp network meta update Docs | Git
Option
1 wp option add Docs | Git
2 wp option delete Docs | Git
3 wp option get Docs | Git
4 wp option list Docs | Git
5 wp option patch Docs | Git
6 wp option pluck Docs | Git
7 wp option update Docs | Git
Package
1 wp package browse Docs | Git
2 wp package install Docs | Git
3 wp package list Docs | Git
4 wp package path Docs | Git
5 wp package uninstall Docs | Git
6 wp package update Docs | Git
Plugin
1 wp plugin activate Docs | Git
2 wp plugin deactivate Docs | Git
3 wp plugin delete Docs | Git
4 wp plugin get Docs | Git
5 wp plugin install Docs | Git
6 wp plugin is-installed Docs | Git
7 wp plugin list Docs | Git
8 wp plugin path Docs | Git
9 wp plugin search Docs | Git
10 wp plugin status Docs | Git
11 wp plugin toggle Docs | Git
12 wp plugin uninstall Docs | Git
13 wp plugin update Docs | Git
14 wp plugin verify-checksums Docs | Git
Post-type
1 wp post-type get Docs | Git
2 wp post-type list Docs | Git
Post
1 wp post create Docs | Git
2 wp post delete Docs | Git
3 wp post edit Docs | Git
4 wp post generate Docs | Git
5 wp post get Docs | Git
6 wp post list Docs | Git
7 wp post meta Docs | Git
8 wp post term Docs | Git
9 wp post update Docs | Git
10 wp post meta add Docs | Git
11 wp post meta delete Docs | Git
12 wp post meta get Docs | Git
13 wp post meta list Docs | Git
14 wp post meta patch Docs | Git
15 wp post meta pluck Docs | Git
16 wp post meta update Docs | Git
17 wp post term add Docs | Git
18 wp post term list Docs | Git
19 wp post term remove Docs | Git
20 wp post term set Docs | Git
Profile
1 wp profile eval-file Docs | Git
2 wp profile eval Docs | Git
3 wp profile hook Docs | Git
4 wp profile stage Docs | Git
Rewrite
1 wp rewrite flush Docs | Git
2 wp rewrite list Docs | Git
3 wp rewrite structure Docs | Git
Role
1 wp role create Docs | Git
2 wp role delete Docs | Git
3 wp role exists Docs | Git
4 wp role list Docs | Git
5 wp role reset Docs | Git
Scaffold
1 wp scaffold _s Docs | Git
2 wp scaffold block Docs | Git
3 wp scaffold child-theme Docs | Git
4 wp scaffold plugin-tests Docs | Git
5 wp scaffold plugin Docs | Git
6 wp scaffold post-type Docs | Git
7 wp scaffold taxonomy Docs | Git
8 wp scaffold theme-tests Docs | Git
Sidebar
1 wp sidebar list Docs | Git
Site
1 wp site activate Docs | Git
2 wp site archive Docs | Git
3 wp site create Docs | Git
4 wp site deactivate Docs | Git
5 wp site delete Docs | Git
6 wp site empty Docs | Git
7 wp site list Docs | Git
8 wp site mature Docs | Git
9 wp site option Docs | Git
10 wp site private Docs | Git
11 wp site public Docs | Git
12 wp site spam Docs | Git
13 wp site unarchive Docs | Git
14 wp site unmature Docs | Git
15 wp site unspam Docs | Git
16 wp site option add Docs | Git
17 wp site option delete Docs | Git
18 wp site option get Docs | Git
19 wp site option list Docs | Git
20 wp site option patch Docs | Git
21 wp site option pluck Docs | Git
22 wp site option update Docs | Git
Super-admin
1 wp super-admin add Docs | Git
2 wp super-admin list Docs | Git
3 wp super-admin remove Docs | Git
Taxonomy
1 wp taxonomy get Docs | Git
2 wp taxonomy list Docs | Git
Term
1 wp term create Docs | Git
2 wp term delete Docs | Git
3 wp term generate Docs | Git
4 wp term get Docs | Git
5 wp term list Docs | Git
6 wp term meta Docs | Git
7 wp term recount Docs | Git
8 wp term update Docs | Git
9 wp term meta add Docs | Git
10 wp term meta delete Docs | Git
11 wp term meta get Docs | Git
12 wp term meta list Docs | Git
13 wp term meta patch Docs | Git
14 wp term meta pluck Docs | Git
15 wp term meta update Docs | Git
Theme
1 wp theme activate Docs | Git
2 wp theme delete Docs | Git
3 wp theme disable Docs | Git
4 wp theme enable Docs | Git
5 wp theme get Docs | Git
6 wp theme install Docs | Git
7 wp theme is-installed Docs | Git
8 wp theme list Docs | Git
9 wp theme mod Docs | Git
10 wp theme path Docs | Git
11 wp theme search Docs | Git
12 wp theme status Docs | Git
13 wp theme update Docs | Git
14 wp theme mod get Docs | Git
15 wp theme mod remove Docs | Git
16 wp theme mod set Docs | Git
Transient
1 wp transient delete Docs | Git
2 wp transient get Docs | Git
3 wp transient set Docs | Git
4 wp transient type Docs | Git
User
1 wp user add-cap Docs | Git
2 wp user add-role Docs | Git
3 wp user create Docs | Git
4 wp user delete Docs | Git
5 wp user generate Docs | Git
6 wp user get Docs | Git
7 wp user import-csv Docs | Git
8 wp user list-caps Docs | Git
9 wp user list Docs | Git
10 wp user meta Docs | Git
11 wp user remove-cap Docs | Git
12 wp user remove-role Docs | Git
13 wp user reset-password Docs | Git
14 wp user session Docs | Git
15 wp user set-role Docs | Git
16 wp user spam Docs | Git
17 wp user term Docs | Git
18 wp user unspam Docs | Git
19 wp user update Docs | Git
20 wp user meta add Docs | Git
21 wp user meta delete Docs | Git
22 wp user meta get Docs | Git
23 wp user meta list Docs | Git
24 wp user meta patch Docs | Git
25 wp user meta pluck Docs | Git
26 wp user meta update Docs | Git
27 wp user session destroy Docs | Git
28 wp user session list Docs | Git
29 wp user term add Docs | Git
30 wp user term list Docs | Git
31 wp user term remove Docs | Git
32 wp user term set Docs | Git
Widget
1 wp widget add Docs | Git
2 wp widget deactivate Docs | Git
3 wp widget delete Docs | Git
4 wp widget list Docs | Git
5 wp widget move Docs | Git
6 wp widget reset Docs | Git
7 wp widget update Docs | Git

About

WP-CLI is the command-line interface for WordPress. You can update plugins, configure multisite installs and much more, without using a web browser.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages