Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion README.md
Original file line numberDiff line numberDiff line change
Expand Up@@ -86,6 +86,18 @@ wp plugin activate [<plugin>...] [--all] [--exclude=<name>] [--network]
Plugin 'hello' network activated.
Success: Network activated 1 of 1 plugins.

# Activate plugins that were recently active.
$ wp plugin activate $(wp plugin list --recently-active --field=name)
Plugin 'bbpress' activated.
Plugin 'buddypress' activated.
Success: Activated 2 of 2 plugins.

# Activate plugins that were recently active on a multisite.
$ wp plugin activate $(wp plugin list --recently-active --field=name) --network
Plugin 'bbpress' network activated.
Plugin 'buddypress' network activated.
Success: Activated 2 of 2 plugins.



### wp plugin deactivate
Expand DownExpand Up@@ -340,7 +352,7 @@ Returns exit code 0 when installed, 1 when uninstalled.
Gets a list of plugins.

~~~
wp plugin list [--<field>=<value>] [--field=<field>] [--fields=<fields>] [--format=<format>] [--status=<status>] [--skip-update-check]
wp plugin list [--<field>=<value>] [--field=<field>] [--fields=<fields>] [--format=<format>] [--status=<status>] [--skip-update-check] [--recently-active]
~~~

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

[--recently-active]
If set, only recently active plugins will be shown and the status filter will be ignored.

**AVAILABLE FIELDS**

These fields will be displayed by default for each plugin:
Expand DownExpand Up@@ -440,6 +455,10 @@ These fields are optionally available:
| local | | |
+--------------------+--------------+--------------------+

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



### wp plugin path
Expand Down