11wp-cli/extension-command
22========================
33
4- Manage WordPress plugins and themes.
4+ Manages plugins and themes, including installs, activations, and updates .
55
66[ ![ Build Status] ( https://travis-ci.org/wp-cli/extension-command.svg?branch=master )] ( https://travis-ci.org/wp-cli/extension-command )
77
@@ -11,9 +11,50 @@ Quick links: [Using](#using) | [Installing](#installing) | [Contributing](#contr
1111
1212This package implements the following commands:
1313
14+ ### wp plugin
15+
16+ Manages plugins, including installs, activations, and updates.
17+
18+ ~~~
19+ wp plugin
20+ ~~~
21+
22+ See the WordPress [ Plugin Handbook] ( https://developer.wordpress.org/plugins/ ) developer resource for more information on plugins.
23+
24+ ** EXAMPLES**
25+
26+ # Activate plugin
27+ $ wp plugin activate hello
28+ Plugin 'hello' activated.
29+ Success: Activated 1 of 1 plugins.
30+
31+ # Deactivate plugin
32+ $ wp plugin deactivate hello
33+ Plugin 'hello' deactivated.
34+ Success: Deactivated 1 of 1 plugins.
35+
36+ # Delete plugin
37+ $ wp plugin delete hello
38+ Deleted 'hello' plugin.
39+ Success: Deleted 1 of 1 plugins.
40+
41+ # Install the latest version from wordpress.org and activate
42+ $ wp plugin install bbpress --activate
43+ Installing bbPress (2.5.9)
44+ Downloading install package from https://downloads.wordpress.org/plugin/bbpress.2.5.9.zip...
45+ Using cached file '/home/vagrant/.wp-cli/cache/plugin/bbpress-2.5.9.zip'...
46+ Unpacking the package...
47+ Installing the plugin...
48+ Plugin installed successfully.
49+ Activating 'bbpress'...
50+ Plugin 'bbpress' activated.
51+ Success: Installed 1 of 1 plugins.
52+
53+
54+
1455### wp plugin activate
1556
16- Activate a plugin.
57+ Activates a plugin.
1758
1859~~~
1960wp plugin activate [<plugin>...] [--all] [--network]
@@ -46,7 +87,7 @@ wp plugin activate [<plugin>...] [--all] [--network]
4687
4788### wp plugin deactivate
4889
49- Deactivate a plugin.
90+ Deactivates a plugin.
5091
5192~~~
5293wp plugin deactivate [<plugin>...] [--uninstall] [--all] [--network]
@@ -77,7 +118,7 @@ wp plugin deactivate [<plugin>...] [--uninstall] [--all] [--network]
77118
78119### wp plugin delete
79120
80- Delete plugin files without deactivating or uninstalling.
121+ Deletes plugin files without deactivating or uninstalling.
81122
82123~~~
83124wp plugin delete <plugin>...
@@ -104,7 +145,7 @@ wp plugin delete <plugin>...
104145
105146### wp plugin get
106147
107- Get details about an installed plugin.
148+ Gets details about an installed plugin.
108149
109150~~~
110151wp plugin get <plugin> [--field=<field>] [--fields=<fields>] [--format=<format>]
@@ -141,7 +182,7 @@ wp plugin get <plugin> [--field=<field>] [--fields=<fields>] [--format=<format>]
141182
142183### wp plugin install
143184
144- Install a plugin.
185+ Installs a plugin.
145186
146187~~~
147188wp plugin install <plugin|zip|url>... [--version=<version>] [--force] [--activate] [--activate-network]
@@ -227,7 +268,7 @@ wp plugin install <plugin|zip|url>... [--version=<version>] [--force] [--activat
227268
228269### wp plugin is-installed
229270
230- Check if the plugin is installed.
271+ Checks if a given plugin is installed.
231272
232273~~~
233274wp plugin is-installed <plugin>
@@ -251,7 +292,7 @@ Returns exit code 0 when installed, 1 when uninstalled.
251292
252293### wp plugin list
253294
254- Get a list of plugins.
295+ Gets a list of plugins.
255296
256297~~~
257298wp plugin list [--<field>=<value>] [--field=<field>] [--fields=<fields>] [--format=<format>]
@@ -327,7 +368,7 @@ These fields are optionally available:
327368
328369### wp plugin path
329370
330- Get the path to a plugin or to the plugin directory.
371+ Gets the path to a plugin or to the plugin directory.
331372
332373~~~
333374wp plugin path [<plugin>] [--dir]
@@ -352,7 +393,7 @@ wp plugin path [<plugin>] [--dir]
352393
353394### wp plugin search
354395
355- Search the WordPress.org plugin directory.
396+ Searches the WordPress.org plugin directory.
356397
357398~~~
358399wp plugin search <search> [--page=<page>] [--per-page=<per-page>] [--field=<field>] [--fields=<fields>] [--format=<format>]
@@ -431,7 +472,7 @@ search query.
431472
432473### wp plugin status
433474
434- See the status of one or all plugins.
475+ Reveals the status of one or all plugins.
435476
436477~~~
437478wp plugin status [<plugin>]
@@ -467,7 +508,7 @@ wp plugin status [<plugin>]
467508
468509### wp plugin toggle
469510
470- Toggle a plugin's activation state.
511+ Toggles a plugin's activation state.
471512
472513~~~
473514wp plugin toggle <plugin>... [--network]
@@ -500,7 +541,7 @@ inactive, then it will be activated.
500541
501542### wp plugin uninstall
502543
503- Uninstall a plugin.
544+ Uninstalls a plugin.
504545
505546~~~
506547wp plugin uninstall <plugin>... [--deactivate] [--skip-delete]
@@ -528,7 +569,7 @@ wp plugin uninstall <plugin>... [--deactivate] [--skip-delete]
528569
529570### wp plugin update
530571
531- Update one or more plugins.
572+ Updates one or more plugins.
532573
533574~~~
534575wp plugin update [<plugin>...] [--all] [--exclude=<name>] [--minor] [--patch] [--format=<format>] [--version=<version>] [--dry-run]
@@ -616,9 +657,51 @@ wp plugin update [<plugin>...] [--all] [--exclude=<name>] [--minor] [--patch] [-
616657
617658
618659
660+ ### wp theme
661+
662+ Manages themes, including installs, activations, and updates.
663+
664+ ~~~
665+ wp theme
666+ ~~~
667+
668+ See the WordPress [ Theme Handbook] ( https://developer.wordpress.org/themes/ ) developer resource for more information on themes.
669+
670+ ** EXAMPLES**
671+
672+ # Install the latest version of a theme from wordpress.org and activate
673+ $ wp theme install twentysixteen --activate
674+ Installing Twenty Sixteen (1.2)
675+ Downloading install package from http://downloads.wordpress.org/theme/twentysixteen.1.2.zip...
676+ Unpacking the package...
677+ Installing the theme...
678+ Theme installed successfully.
679+ Activating 'twentysixteen'...
680+ Success: Switched to 'Twenty Sixteen' theme.
681+
682+ # Get details of an installed theme
683+ $ wp theme get twentysixteen --fields=name,title,version
684+ +---------+----------------+
685+ | Field | Value |
686+ +---------+----------------+
687+ | name | Twenty Sixteen |
688+ | title | Twenty Sixteen |
689+ | version | 1.2 |
690+ +---------+----------------+
691+
692+ # Get status of theme
693+ $ wp theme status twentysixteen
694+ Theme twentysixteen details:
695+ Name: Twenty Sixteen
696+ Status: Active
697+ Version: 1.2
698+ Author: the WordPress team
699+
700+
701+
619702### wp theme activate
620703
621- Activate a theme.
704+ Activates a theme.
622705
623706~~~
624707wp theme activate <theme>
@@ -638,7 +721,7 @@ wp theme activate <theme>
638721
639722### wp theme delete
640723
641- Delete a theme.
724+ Deletes a theme.
642725
643726~~~
644727wp theme delete <theme>...
@@ -661,7 +744,7 @@ Removes the theme from the filesystem.
661744
662745### wp theme disable
663746
664- Disable a theme on a WordPress multisite install.
747+ Disables a theme on a WordPress multisite install.
665748
666749~~~
667750wp theme disable <theme> [--network]
@@ -694,7 +777,7 @@ on a WordPress multisite install.
694777
695778### wp theme enable
696779
697- Enable a theme on a WordPress multisite install.
780+ Enables a theme on a WordPress multisite install.
698781
699782~~~
700783wp theme enable <theme> [--network] [--activate]
@@ -734,7 +817,7 @@ multisite install.
734817
735818### wp theme get
736819
737- Get details about a theme.
820+ Gets details about a theme.
738821
739822~~~
740823wp theme get <theme> [--field=<field>] [--fields=<fields>] [--format=<format>]
@@ -777,7 +860,7 @@ wp theme get <theme> [--field=<field>] [--fields=<fields>] [--format=<format>]
777860
778861### wp theme install
779862
780- Install a theme.
863+ Installs a theme.
781864
782865~~~
783866wp theme install <theme|zip|url>... [--version=<version>] [--force] [--activate]
@@ -821,7 +904,7 @@ wp theme install <theme|zip|url>... [--version=<version>] [--force] [--activate]
821904
822905### wp theme is-installed
823906
824- Check if the theme is installed.
907+ Checks if a given theme is installed.
825908
826909~~~
827910wp theme is-installed <theme>
@@ -845,7 +928,7 @@ Returns exit code 0 when installed, 1 when uninstalled.
845928
846929### wp theme list
847930
848- Get a list of themes.
931+ Gets a list of themes.
849932
850933~~~
851934wp theme list [--<field>=<value>] [--field=<field>] [--fields=<fields>] [--format=<format>]
@@ -901,9 +984,35 @@ These fields are optionally available:
901984
902985
903986
987+ ### wp theme mod
988+
989+ Sets, gets, and removes theme mods.
990+
991+ ~~~
992+ wp theme mod
993+ ~~~
994+
995+ ** EXAMPLES**
996+
997+ # Set the 'background_color' theme mod to '000000'.
998+ $ wp theme mod set background_color 000000
999+ Success: Theme mod background_color set to 000000
1000+
1001+ # Get single theme mod in JSON format.
1002+ $ wp theme mod get background_color --format=json
1003+ [{"key":"background_color","value":"dd3333"}]
1004+
1005+ # Remove all theme mods.
1006+ $ wp theme mod remove --all
1007+ Success: Theme mods removed.
1008+
1009+
1010+
1011+
1012+
9041013### wp theme mod get
9051014
906- Get one or more theme mods.
1015+ Gets one or more theme mods.
9071016
9081017~~~
9091018wp theme mod get [<mod>...] [--field=<field>] [--all] [--format=<format>]
@@ -964,7 +1073,7 @@ wp theme mod get [<mod>...] [--field=<field>] [--all] [--format=<format>]
9641073
9651074### wp theme mod set
9661075
967- Set the value of a theme mod.
1076+ Sets the value of a theme mod.
9681077
9691078~~~
9701079wp theme mod set <mod> <value>
@@ -988,7 +1097,7 @@ wp theme mod set <mod> <value>
9881097
9891098### wp theme mod remove
9901099
991- Remove one or more theme mods.
1100+ Removes one or more theme mods.
9921101
9931102~~~
9941103wp theme mod remove [<mod>...] [--all]
@@ -1020,7 +1129,7 @@ wp theme mod remove [<mod>...] [--all]
10201129
10211130### wp theme path
10221131
1023- Get the path to a theme or to the theme directory.
1132+ Gets the path to a theme or to the theme directory.
10241133
10251134~~~
10261135wp theme path [<theme>] [--dir]
@@ -1049,7 +1158,7 @@ wp theme path [<theme>] [--dir]
10491158
10501159### wp theme search
10511160
1052- Search the WordPress.org theme directory.
1161+ Searches the WordPress.org theme directory.
10531162
10541163~~~
10551164wp theme search <search> [--per-page=<per-page>] [--field=<field>] [--fields=<fields>] [--format=<format>]
@@ -1114,7 +1223,7 @@ search query.
11141223
11151224### wp theme status
11161225
1117- See the status of one or all themes.
1226+ Reveals the status of one or all themes.
11181227
11191228~~~
11201229wp theme status [<theme>]
@@ -1138,7 +1247,7 @@ wp theme status [<theme>]
11381247
11391248### wp theme update
11401249
1141- Update one or more themes.
1250+ Updates one or more themes.
11421251
11431252~~~
11441253wp theme update [<theme>...] [--all] [--exclude=<theme-names>] [--format=<format>] [--version=<version>] [--dry-run]
0 commit comments