Forrest logo
back to the wp tool

wordpress:cli:plugins:install-and-activate

Install and activate a WordPress plugin.
$ wp plugin install ${plugin} --activate
try on your machine

This command installs and activates a WordPress plugin, where "${plugin}" should be replaced with the actual name of the plugin. The "wp" is a command-line interface for managing WordPress sites, while "plugin" is a specific command within that interface that allows the users to manage plugins. The "install" parameter is used to specify that the user wants to install a new plugin. The "${plugin}" refers to the actual name of the plugin that the user wants to install. Finally, the "--activate" parameter is used to immediately activate the installed plugin.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the wp tool