Skip to content

Commit 886c1b5

Browse files
committed
Regenerate README file - 2026-01-20
1 parent dc17a87 commit 886c1b5

1 file changed

Lines changed: 52 additions & 1 deletion

File tree

README.md

Lines changed: 52 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ These fields are optionally available:
239239
Installs 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**
@@ -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,16 @@ 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+
328341
# Install from a WordPress.org plugin directory URL
329342
$ wp plugin install https://wordpress.org/plugins/akismet/
330343
Detected WordPress.org plugins directory URL, using slug: akismet
@@ -337,6 +350,44 @@ wp plugin install <plugin|zip|url>... [--version=<version>] [--force] [--ignore-
337350

338351

339352

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+
389+
390+
340391
### wp plugin is-active
341392

342393
Checks if a given plugin is active.

0 commit comments

Comments
 (0)