@@ -239,13 +239,13 @@ These fields are optionally available:
239239Installs one or more plugins.
240240
241241~~~
242- wp plugin install <plugin|zip|url>... [--version=<version>] [--force] [--ignore-requirements] [--activate] [--activate-network] [--insecure]
242+ wp plugin install <plugin|zip|url>... [--version=<version>] [--force] [--ignore-requirements] [--activate] [--activate-network] [--insecure] [--with-dependencies]
243243~~~
244244
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
@@ -268,6 +268,9 @@ wp plugin install <plugin|zip|url>... [--version=<version>] [--force] [--ignore-
268268 [--insecure]
269269 Retry downloads without certificate validation if TLS handshake fails. Note: This makes the request vulnerable to a MITM attack.
270270
271+ [--with-dependencies]
272+ If set, the command will also install all required dependencies of the plugin as specified in the 'Requires Plugins' header.
273+
271274** EXAMPLES**
272275
273276 # Install the latest version from wordpress.org and activate
@@ -325,6 +328,64 @@ wp plugin install <plugin|zip|url>... [--version=<version>] [--force] [--ignore-
325328 Plugin updated successfully
326329 Success: Installed 1 of 1 plugins.
327330
331+ # Install a plugin with all its dependencies
332+ $ wp plugin install my-plugin --with-dependencies
333+ Installing Required Plugin 1 (1.2.3)
334+ Plugin installed successfully.
335+ Installing Required Plugin 2 (2.0.0)
336+ Plugin installed successfully.
337+ Installing My Plugin (3.5.0)
338+ Plugin installed successfully.
339+ Success: Installed 3 of 3 plugins.
340+
341+ # Install from a WordPress.org plugin directory URL
342+ $ wp plugin install https://wordpress.org/plugins/akismet/
343+ Detected WordPress.org plugins directory URL, using slug: akismet
344+ Installing Akismet Anti-spam: Spam Protection (3.1.11)
345+ Downloading install package from https://downloads.wordpress.org/plugin/akismet.3.1.11.zip...
346+ Unpacking the package...
347+ Installing the plugin...
348+ Plugin installed successfully.
349+ Success: Installed 1 of 1 plugins.
350+
351+
352+
353+ ### wp plugin install-dependencies
354+
355+ Installs all dependencies of an installed plugin.
356+
357+ ~~~
358+ wp plugin install-dependencies <plugin> [--activate] [--activate-network] [--force]
359+ ~~~
360+
361+ This command is useful when you have a plugin installed that depends on other plugins,
362+ and you want to install those dependencies without activating the main plugin.
363+
364+ ** OPTIONS**
365+
366+ <plugin>
367+ The installed plugin to get dependencies for.
368+
369+ [--activate]
370+ If set, dependencies will be activated immediately after install.
371+
372+ [--activate-network]
373+ If set, dependencies will be network activated immediately after install.
374+
375+ [--force]
376+ If set, the command will overwrite any installed version of the plugin, without prompting
377+ for confirmation.
378+
379+ ** EXAMPLES**
380+
381+ # Install all dependencies of an installed plugin
382+ $ wp plugin install-dependencies my-plugin
383+ Installing Required Plugin 1 (1.2.3)
384+ Plugin installed successfully.
385+ Installing Required Plugin 2 (2.0.0)
386+ Plugin installed successfully.
387+ Success: Installed 2 of 2 plugins.
388+
328389
329390
330391### wp plugin is-active
@@ -1036,7 +1097,7 @@ wp theme install <theme|zip|url>... [--version=<version>] [--force] [--ignore-re
10361097** OPTIONS**
10371098
10381099 <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.
1100+ 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 .
10401101
10411102 [--version=<version>]
10421103 If set, get that particular version from wordpress.org, instead of the
@@ -1075,6 +1136,16 @@ wp theme install <theme|zip|url>... [--version=<version>] [--force] [--ignore-re
10751136 # Install from a remote zip file
10761137 $ wp theme install http://s3.amazonaws.com/bucketname/my-theme.zip?AWSAccessKeyId=123&Expires=456&Signature=abcdef
10771138
1139+ # Install from a WordPress.org theme directory URL
1140+ $ wp theme install https://wordpress.org/themes/twentysixteen/
1141+ Detected WordPress.org themes directory URL, using slug: twentysixteen
1142+ Installing Twenty Sixteen (1.2)
1143+ Downloading install package from http://downloads.wordpress.org/theme/twentysixteen.1.2.zip...
1144+ Unpacking the package...
1145+ Installing the theme...
1146+ Theme installed successfully.
1147+ Success: Installed 1 of 1 themes.
1148+
10781149
10791150
10801151### wp theme is-active
0 commit comments