Last active
February 27, 2018 06:38
-
-
Save snapeuh/4cd04cfa0f58d6618a02cf9262449c70 to your computer and use it in GitHub Desktop.
Install multiple plugins with WP-CLI. Install : `chmod +x install-plugins.sh`. Use : `./plugin-installs.sh plugin-name-1 plugin-name-2 ...`.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PLUGINS="$@" | |
for PLUGIN in $PLUGINS; do | |
wp plugin install $PLUGIN --activate | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
why not install multiple plugin like this
wp plugin install wordpress-importer cmb2 contact-form-7 jetpack mailchimp-for-wp recent-posts-widget-extended redux-framework woocommerce woocommerce-gateway-paypal-express-checkout woocommerce-services wp-fastest-cache --activate