Skip to content

Commit f9bc3fd

Browse files
authored
Merge pull request #425 from wp-cli/regenerate-readme
2 parents 0981288 + b08dc5e commit f9bc3fd

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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
@@ -340,7 +352,7 @@ Returns exit code 0 when installed, 1 when uninstalled.
340352
Gets a list of plugins.
341353

342354
~~~
343-
wp plugin list [--<field>=<value>] [--field=<field>] [--fields=<fields>] [--format=<format>] [--status=<status>] [--skip-update-check]
355+
wp plugin list [--<field>=<value>] [--field=<field>] [--fields=<fields>] [--format=<format>] [--status=<status>] [--skip-update-check] [--recently-active]
344356
~~~
345357

346358
Displays a list of the plugins installed on the site with activation
@@ -385,6 +397,9 @@ Use `--status=dropin` to list installed dropins (e.g. `object-cache.php`).
385397
[--skip-update-check]
386398
If set, the plugin update check will be skipped.
387399

400+
[--recently-active]
401+
If set, only recently active plugins will be shown and the status filter will be ignored.
402+
388403
**AVAILABLE FIELDS**
389404

390405
These fields will be displayed by default for each plugin:
@@ -440,6 +455,10 @@ These fields are optionally available:
440455
| local | | |
441456
+--------------------+--------------+--------------------+
442457

458+
# List recently active plugins on the site.
459+
$ wp plugin list --recently-active --field=name --format=json
460+
["akismet","bbpress","buddypress"]
461+
443462

444463

445464
### wp plugin path

0 commit comments

Comments
 (0)