Skip to content

Commit d0d4c8d

Browse files
Update README for new --exclude=<name> argument
1 parent 8489bc2 commit d0d4c8d

1 file changed

Lines changed: 42 additions & 2 deletions

File tree

README.md

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ wp plugin uninstall <plugin>... [--deactivate] [--skip-delete]
526526
Update one or more plugins.
527527

528528
~~~
529-
wp plugin update [<plugin>...] [--all] [--minor] [--patch] [--format=<format>] [--version=<version>] [--dry-run]
529+
wp plugin update [<plugin>...] [--all] [--exclude=<name>] [--minor] [--patch] [--format=<format>] [--version=<version>] [--dry-run]
530530
~~~
531531

532532
**OPTIONS**
@@ -537,6 +537,9 @@ wp plugin update [<plugin>...] [--all] [--minor] [--patch] [--format=<format>] [
537537
[--all]
538538
If set, all plugins that have updates will be updated.
539539

540+
[--exclude=<name>]
541+
Comma separated list of plugin names that should be excluded from updating.
542+
540543
[--minor]
541544
Only perform updates for minor releases (e.g. from 1.3 to 1.4 instead of 2.0)
542545

@@ -584,6 +587,20 @@ wp plugin update [<plugin>...] [--all] [--minor] [--patch] [--format=<format>] [
584587
+------------------------+-------------+-------------+---------+
585588
Success: Updated 2 of 2 plugins.
586589

590+
$ wp plugin update --all --exclude=akismet
591+
Enabling Maintenance mode...
592+
Downloading update from https://downloads.wordpress.org/plugin/nginx-champuru.3.2.0.zip...
593+
Unpacking the update...
594+
Installing the latest version...
595+
Removing the old version of the plugin...
596+
Plugin updated successfully.
597+
Disabling Maintenance mode...
598+
+------------------------+-------------+-------------+---------+
599+
| name | old_version | new_version | status |
600+
+------------------------+-------------+-------------+---------+
601+
| nginx-cache-controller | 3.1.1 | 3.2.0 | Updated |
602+
+------------------------+-------------+-------------+---------+
603+
587604

588605

589606
### wp theme activate
@@ -1111,7 +1128,7 @@ wp theme status [<theme>]
11111128
Update one or more themes.
11121129

11131130
~~~
1114-
wp theme update [<theme>...] [--all] [--format=<format>] [--version=<version>] [--dry-run]
1131+
wp theme update [<theme>...] [--all] [--exclude=<theme-names>] [--format=<format>] [--version=<version>] [--dry-run]
11151132
~~~
11161133

11171134
**OPTIONS**
@@ -1122,6 +1139,9 @@ wp theme update [<theme>...] [--all] [--format=<format>] [--version=<version>] [
11221139
[--all]
11231140
If set, all themes that have updates will be updated.
11241141

1142+
[--exclude=<theme-names>]
1143+
Comma separated list of theme names that should be excluded from updating.
1144+
11251145
[--format=<format>]
11261146
Output summary as table or summary. Defaults to table.
11271147

@@ -1153,6 +1173,26 @@ wp theme update [<theme>...] [--all] [--format=<format>] [--version=<version>] [
11531173
+---------------+-------------+-------------+---------+
11541174
Success: Updated 2 of 2 themes.
11551175

1176+
# Exclude themes updates when bulk updating the themes
1177+
$ wp theme update --all --exclude=twentyfifteen
1178+
Downloading update from https://downloads.wordpress.org/theme/astra.1.0.5.1.zip...
1179+
Unpacking the update...
1180+
Installing the latest version...
1181+
Removing the old version of the theme...
1182+
Theme updated successfully.
1183+
Downloading update from https://downloads.wordpress.org/theme/twentyseventeen.1.2.zip...
1184+
Unpacking the update...
1185+
Installing the latest version...
1186+
Removing the old version of the theme...
1187+
Theme updated successfully.
1188+
+-----------------+----------+---------+----------------+
1189+
| name | status | version | update_version |
1190+
+-----------------+----------+---------+----------------+
1191+
| astra | inactive | 1.0.1 | 1.0.5.1 |
1192+
| twentyseventeen | inactive | 1.1 | 1.2 |
1193+
+-----------------+----------+---------+----------------+
1194+
Success: Updated 2 of 2 themes.
1195+
11561196
# Update all themes
11571197
$ wp theme update --all
11581198

0 commit comments

Comments
 (0)