@@ -86,6 +86,18 @@ wp plugin activate [<plugin>...] [--all] [--exclude=<name>] [--network]
8686 Plugin 'hello' network activated.
8787 Success: Network activated 1 of 1 plugins.
8888
89+ # Activate plugins that were recently active.
90+ $ wp plugin activate $(wp plugin list --recently-active --field=name)
91+ Plugin 'bbpress' activated.
92+ Plugin 'buddypress' activated.
93+ Success: Activated 2 of 2 plugins.
94+
95+ # Activate plugins that were recently active on a multisite.
96+ $ wp plugin activate $(wp plugin list --recently-active --field=name) --network
97+ Plugin 'bbpress' network activated.
98+ Plugin 'buddypress' network activated.
99+ Success: Activated 2 of 2 plugins.
100+
89101
90102
91103### wp plugin deactivate
@@ -197,10 +209,28 @@ wp plugin get <plugin> [--field=<field>] [--fields=<fields>] [--format=<format>]
197209 - yaml
198210 ---
199211
212+ ** AVAILABLE FIELDS**
213+
214+ These fields will be displayed by default for the plugin:
215+
216+ * name
217+ * title
218+ * author
219+ * version
220+ * description
221+ * status
222+
223+ These fields are optionally available:
224+
225+ * requires_wp
226+ * requires_php
227+ * requires_plugins
228+
200229** EXAMPLES**
201230
231+ # Get plugin details.
202232 $ wp plugin get bbpress --format=json
203- {"name":"bbpress","title":"bbPress","author":"The bbPress Contributors","version":"2.6-alpha ","description":"bbPress is forum software with a twist from the creators of WordPress.","status":"active"}
233+ {"name":"bbpress","title":"bbPress","author":"The bbPress Contributors","version":"2.6.9 ","description":"bbPress is forum software with a twist from the creators of WordPress.","status":"active"}
204234
205235
206236
@@ -209,7 +239,7 @@ wp plugin get <plugin> [--field=<field>] [--fields=<fields>] [--format=<format>]
209239Installs one or more plugins.
210240
211241~~~
212- wp plugin install <plugin|zip|url>... [--version=<version>] [--force] [--activate] [--activate-network] [--insecure]
242+ wp plugin install <plugin|zip|url>... [--version=<version>] [--force] [--ignore-requirements] [-- activate] [--activate-network] [--insecure]
213243~~~
214244
215245** OPTIONS**
@@ -225,6 +255,10 @@ wp plugin install <plugin|zip|url>... [--version=<version>] [--force] [--activat
225255 If set, the command will overwrite any installed version of the plugin, without prompting
226256 for confirmation.
227257
258+ [ --ignore-requirements]
259+ : If set, the command will install the plugin while ignoring any WordPress or PHP version requirements
260+ specified by the plugin authors.
261+
228262 [--activate]
229263 If set, the plugin will be activated immediately after install.
230264
@@ -322,7 +356,7 @@ Returns exit code 0 when installed, 1 when uninstalled.
322356Gets a list of plugins.
323357
324358~~~
325- wp plugin list [--<field>=<value>] [--field=<field>] [--fields=<fields>] [--format=<format>] [--status=<status>] [--skip-update-check]
359+ wp plugin list [--<field>=<value>] [--field=<field>] [--fields=<fields>] [--format=<format>] [--status=<status>] [--skip-update-check] [--recently-active]
326360~~~
327361
328362Displays a list of the plugins installed on the site with activation
@@ -367,6 +401,9 @@ Use `--status=dropin` to list installed dropins (e.g. `object-cache.php`).
367401 [--skip-update-check]
368402 If set, the plugin update check will be skipped.
369403
404+ [--recently-active]
405+ If set, only recently active plugins will be shown and the status filter will be ignored.
406+
370407** AVAILABLE FIELDS**
371408
372409These fields will be displayed by default for each plugin:
@@ -376,6 +413,7 @@ These fields will be displayed by default for each plugin:
376413* update
377414* version
378415* update_version
416+ * auto_update
379417
380418These fields are optionally available:
381419
@@ -384,29 +422,48 @@ These fields are optionally available:
384422* title
385423* description
386424* file
387- * auto_update
388425* author
426+ * tested_up_to
427+ * requires
428+ * requires_php
429+ * wporg_status
430+ * wporg_last_updated
389431
390432** EXAMPLES**
391433
392434 # List active plugins on the site.
393435 $ wp plugin list --status=active --format=json
394- [{"name":"dynamic-hostname","status":"active","update":"none","version":"0.4.2","update_version": "" },{"name":"tinymce-templates","status":"active","update":"none","version":"4.4.3 ","update_version": "" },{"name":"wp-multibyte-patch","status":"active","update":"none","version":"2.4 ","update_version": "" },{"name":"wp-total-hacks","status":"active","update":"none","version":"2.0.1 ","update_version": " "}]
436+ [{"name":"dynamic-hostname","status":"active","update":"none","version":"0.4.2","update_version":"","auto_update":"off" },{"name":"tinymce-templates","status":"active","update":"none","version":"4.8.1 ","update_version":"","auto_update":"off" },{"name":"wp-multibyte-patch","status":"active","update":"none","version":"2.9 ","update_version":"","auto_update":"off" },{"name":"wp-total-hacks","status":"active","update":"none","version":"4.7.2 ","update_version":"","auto_update":"off "}]
395437
396438 # List plugins on each site in a network.
397439 $ wp site list --field=url | xargs -I % wp plugin list --url=%
398- +---------+----------------+--------+---------+----------------+
399- | name | status | update | version | update_version |
400- +---------+----------------+--------+---------+----------------+
401- | akismet | active-network | none | 3.1.11 | |
402- | hello | inactive | none | 1.6 | 1.7.2 |
403- +---------+----------------+--------+---------+----------------+
404- +---------+----------------+--------+---------+----------------+
405- | name | status | update | version | update_version |
406- +---------+----------------+--------+---------+----------------+
407- | akismet | active-network | none | 3.1.11 | |
408- | hello | inactive | none | 1.6 | 1.7.2 |
409- +---------+----------------+--------+---------+----------------+
440+ +---------+----------------+-----------+---------+-----------------+------------+
441+ | name | status | update | version | update_version | auto_update |
442+ +---------+----------------+-----------+---------+----------------+-------------+
443+ | akismet | active-network | none | 5.3.1 | | on |
444+ | hello | inactive | available | 1.6 | 1.7.2 | off |
445+ +---------+----------------+-----------+---------+----------------+-------------+
446+ +---------+----------------+-----------+---------+----------------+-------------+
447+ | name | status | update | version | update_version | auto_update |
448+ +---------+----------------+-----------+---------+----------------+-------------+
449+ | akismet | active-network | none | 5.3.1 | | on |
450+ | hello | inactive | available | 1.6 | 1.7.2 | off |
451+ +---------+----------------+-----------+---------+----------------+-------------+
452+
453+ # Check whether plugins are still active on WordPress.org
454+ $ wp plugin list --fields=name,wporg_status,wporg_last_updated
455+ +--------------------+--------------+--------------------+
456+ | name | wporg_status | wporg_last_updated |
457+ +--------------------+--------------+--------------------+
458+ | akismet | active | 2023-12-11 |
459+ | user-switching | active | 2023-11-17 |
460+ | wordpress-importer | active | 2023-04-28 |
461+ | local | | |
462+ +--------------------+--------------+--------------------+
463+
464+ # List recently active plugins on the site.
465+ $ wp plugin list --recently-active --field=name --format=json
466+ ["akismet","bbpress","buddypress"]
410467
411468
412469
@@ -750,6 +807,7 @@ See the WordPress [Theme Handbook](https://developer.wordpress.org/themes/) deve
750807 Theme installed successfully.
751808 Activating 'twentysixteen'...
752809 Success: Switched to 'Twenty Sixteen' theme.
810+ Success: Installed 1 of 1 themes.
753811
754812 # Get details of an installed theme
755813 $ wp theme get twentysixteen --fields=name,title,version
@@ -941,7 +999,7 @@ wp theme get <theme> [--field=<field>] [--fields=<fields>] [--format=<format>]
941999Installs one or more themes.
9421000
9431001~~~
944- wp theme install <theme|zip|url>... [--version=<version>] [--force] [--activate] [--insecure]
1002+ wp theme install <theme|zip|url>... [--version=<version>] [--force] [--ignore-requirements] [-- activate] [--insecure]
9451003~~~
9461004
9471005** OPTIONS**
@@ -957,6 +1015,10 @@ wp theme install <theme|zip|url>... [--version=<version>] [--force] [--activate]
9571015 If set, the command will overwrite any installed version of the theme, without prompting
9581016 for confirmation.
9591017
1018+ [--ignore-requirements]
1019+ If set, the command will install the theme while ignoring any WordPress or PHP version requirements
1020+ specified by the theme authors.
1021+
9601022 [--activate]
9611023 If set, the theme will be activated immediately after install.
9621024
@@ -974,6 +1036,7 @@ wp theme install <theme|zip|url>... [--version=<version>] [--force] [--activate]
9741036 Theme installed successfully.
9751037 Activating 'twentysixteen'...
9761038 Success: Switched to 'Twenty Sixteen' theme.
1039+ Success: Installed 1 of 1 themes.
9771040
9781041 # Install from a local zip file
9791042 $ wp theme install ../my-theme.zip
@@ -1059,22 +1122,22 @@ These fields will be displayed by default for each theme:
10591122* update
10601123* version
10611124* update_version
1125+ * auto_update
10621126
10631127These fields are optionally available:
10641128
10651129* update_package
10661130* update_id
10671131* title
10681132* description
1069- * auto_update
10701133
10711134** EXAMPLES**
10721135
1073- # List themes
1136+ # List inactive themes.
10741137 $ wp theme list --status=inactive --format=csv
1075- name,status,update,version,update_version
1076- twentyfourteen,inactive,none,1.7,
1077- twentysixteen,inactive,available,1.1,
1138+ name,status,update,version,update_version,auto_update
1139+ twentyfourteen,inactive,none,3.8,,off
1140+ twentysixteen,inactive,available,3.0,3.1,off
10781141
10791142
10801143
@@ -1090,7 +1153,7 @@ wp theme mod
10901153
10911154 # Set the 'background_color' theme mod to '000000'.
10921155 $ wp theme mod set background_color 000000
1093- Success: Theme mod background_color set to 000000
1156+ Success: Theme mod background_color set to 000000.
10941157
10951158 # Get single theme mod in JSON format.
10961159 $ wp theme mod get background_color --format=json
@@ -1185,7 +1248,7 @@ wp theme mod set <mod> <value>
11851248
11861249 # Set theme mod
11871250 $ wp theme mod set background_color 000000
1188- Success: Theme mod background_color set to 000000
1251+ Success: Theme mod background_color set to 000000.
11891252
11901253
11911254
@@ -1351,7 +1414,7 @@ wp theme status [<theme>]
13511414Updates one or more themes.
13521415
13531416~~~
1354- wp theme update [<theme>...] [--all] [--exclude=<theme-names>] [--format=<format>] [--version=<version>] [--dry-run] [--insecure]
1417+ wp theme update [<theme>...] [--all] [--exclude=<theme-names>] [--minor] [--patch] [-- format=<format>] [--version=<version>] [--dry-run] [--insecure]
13551418~~~
13561419
13571420** OPTIONS**
@@ -1365,6 +1428,12 @@ wp theme update [<theme>...] [--all] [--exclude=<theme-names>] [--format=<format
13651428 [--exclude=<theme-names>]
13661429 Comma separated list of theme names that should be excluded from updating.
13671430
1431+ [--minor]
1432+ Only perform updates for minor releases (e.g. from 1.3 to 1.4 instead of 2.0)
1433+
1434+ [--patch]
1435+ Only perform updates for patch releases (e.g. from 1.3 to 1.3.3 instead of 1.4)
1436+
13681437 [--format=<format>]
13691438 Render output in a particular format.
13701439 ---
0 commit comments