Skip to content

Instantly share code, notes, and snippets.

@snapeuh
Last active February 27, 2018 06:38
Show Gist options
  • Save snapeuh/4cd04cfa0f58d6618a02cf9262449c70 to your computer and use it in GitHub Desktop.
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 ...`.
#!/bin/bash
PLUGINS="$@"
for PLUGIN in $PLUGINS; do
wp plugin install $PLUGIN --activate
done
@ZaheerAbbasAghani
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment