Install WordPress plugins with WP-CLI

Install plugin
$ wp plugin install w3-total-cache

Install and activate plugin
$ wp plugin install w3-total-cache --activate

Plugins can be installed by plugin slug, path to local zip file or external URL. See more options at WP-CLI documentation

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.