Skip to content

Commit e311239

Browse files
authored
Merge pull request #490 from wp-cli/regenerate-readme
2 parents ca7357b + 2425109 commit e311239

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

README.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ wp plugin install <plugin|zip|url>... [--version=<version>] [--force] [--ignore-
245245
**OPTIONS**
246246

247247
<plugin|zip|url>...
248-
One or more plugins to install. Accepts a plugin slug, the path to a local zip file, or a URL to a remote zip file.
248+
One or more plugins to install. Accepts a plugin slug, the path to a local zip file, a URL to a remote zip file, or a URL to a WordPress.org plugin directory.
249249

250250
[--version=<version>]
251251
If set, get that particular version from wordpress.org, instead of the
@@ -325,6 +325,16 @@ wp plugin install <plugin|zip|url>... [--version=<version>] [--force] [--ignore-
325325
Plugin updated successfully
326326
Success: Installed 1 of 1 plugins.
327327

328+
# Install from a WordPress.org plugin directory URL
329+
$ wp plugin install https://wordpress.org/plugins/akismet/
330+
Detected WordPress.org plugins directory URL, using slug: akismet
331+
Installing Akismet Anti-spam: Spam Protection (3.1.11)
332+
Downloading install package from https://downloads.wordpress.org/plugin/akismet.3.1.11.zip...
333+
Unpacking the package...
334+
Installing the plugin...
335+
Plugin installed successfully.
336+
Success: Installed 1 of 1 plugins.
337+
328338

329339

330340
### wp plugin is-active
@@ -1036,7 +1046,7 @@ wp theme install <theme|zip|url>... [--version=<version>] [--force] [--ignore-re
10361046
**OPTIONS**
10371047

10381048
<theme|zip|url>...
1039-
One or more themes to install. Accepts a theme slug, the path to a local zip file, or a URL to a remote zip file.
1049+
One or more themes to install. Accepts a theme slug, the path to a local zip file, a URL to a remote zip file, or a URL to a WordPress.org theme directory.
10401050

10411051
[--version=<version>]
10421052
If set, get that particular version from wordpress.org, instead of the
@@ -1075,6 +1085,16 @@ wp theme install <theme|zip|url>... [--version=<version>] [--force] [--ignore-re
10751085
# Install from a remote zip file
10761086
$ wp theme install http://s3.amazonaws.com/bucketname/my-theme.zip?AWSAccessKeyId=123&Expires=456&Signature=abcdef
10771087

1088+
# Install from a WordPress.org theme directory URL
1089+
$ wp theme install https://wordpress.org/themes/twentysixteen/
1090+
Detected WordPress.org themes directory URL, using slug: twentysixteen
1091+
Installing Twenty Sixteen (1.2)
1092+
Downloading install package from http://downloads.wordpress.org/theme/twentysixteen.1.2.zip...
1093+
Unpacking the package...
1094+
Installing the theme...
1095+
Theme installed successfully.
1096+
Success: Installed 1 of 1 themes.
1097+
10781098

10791099

10801100
### wp theme is-active

0 commit comments

Comments
 (0)