Skip to content

Commit c2a172b

Browse files
authored
Merge branch 'main' into copilot/add-plugin-update-identification
2 parents 31bbe0b + 6cab094 commit c2a172b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ wp plugin install <plugin|zip|url>... [--version=<version>] [--force] [--ignore-
253253
**OPTIONS**
254254

255255
<plugin|zip|url>...
256-
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.
256+
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 PHP file, or a URL to a WordPress.org plugin directory.
257257

258258
[--version=<version>]
259259
If set, get that particular version from wordpress.org, instead of the
@@ -336,6 +336,11 @@ wp plugin install <plugin|zip|url>... [--version=<version>] [--force] [--ignore-
336336
Plugin updated successfully
337337
Success: Installed 1 of 1 plugins.
338338

339+
# Install from a remote PHP file
340+
$ wp plugin install https://example.com/my-plugin.php
341+
Installing My Plugin (1.0.0)
342+
Downloading plugin file from https://example.com/my-plugin.php...
343+
339344
# Install a plugin with all its dependencies
340345
$ wp plugin install my-plugin --with-dependencies
341346
Installing Required Plugin 1 (1.2.3)

0 commit comments

Comments
 (0)