wp plugin install (Multisite Context)
Overview
Install plugins to your network filesystem and optionally enable them for all sites immediately.
Syntax
wp plugin install <plugin>... [--activate] [--activate-network]
Options (Multisite Specific)
| Flag | Description |
|---|---|
--activate-network | Install and network-activate immediately |
--activate | Install and activate ONLY for the root site (unless --url is provided) |
Basic Usage
Install and enable for everyone
wp plugin install autoptimize --activate-network
Output:
Success: Installed 'autoptimize'.
Success: Network activated plugin 'autoptimize'.
Best Practices
- Always test networking — Some plugins are not "multisite compatible." Verify before network-activating.
- Filesystem is shared — Installing a plugin makes the files available to the whole network, regardless of activation.