WP-CLI

A command line interface for WordPress

Commands » plugin » activate

wp plugin activate - Activate a plugin.

Quick links: Github issues


OPTIONS

[<plugin>…]
One or more plugins to activate.
[--all]
If set, all plugins will be activated.
[--network]
If set, the plugin will be activated for the entire multisite network.

EXAMPLES

# Activate plugin
$ wp plugin activate hello-dolly
Plugin 'hello-dolly' activated.
Success: Activated 1 of 1 plugins.

# Activate plugin in entire multisite network
$ wp plugin activate hello-dolly --network
Plugin 'hello-dolly' network activated.
Success: Network activated 1 of 1 plugins.