Bash command-line scripts to add standard plugins as a template for new WordPress development -

WordPress hosting done right. done fast. done secure

GET STARTED
Menu

Bash command-line scripts to add standard plugins as a template for new WordPress development

wp-cli

Everytime you start a new project, you want a standard set of plugins. Instead of a click marathon, use a script like this

 

If you’re a standard user, use the following code.

 


for name in wp-hosting-performance-check p3-profiler advanced-cron-manager
do

/opt/cpanel/ea-php56/root/usr/bin/php /usr/local/bin/wp-cli.phar --skip-themes --skip-plugins plugin install ${name}

/opt/cpanel/ea-php56/root/usr/bin/php /usr/local/bin/wp-cli.phar --skip-themes --skip-plugins plugin activate ${name}

done

 

use something like this if you’re running it as root

account=wpdone

for name in wp-hosting-performance-check p3-profiler advanced-cron-manager
do

sudo -u ${account} /opt/cpanel/ea-php56/root/usr/bin/php /usr/local/bin/wp --skip-themes --skip-plugins plugin install ${name}

sudo -u ${account} /opt/cpanel/ea-php56/root/usr/bin/php /usr/local/bin/wp --skip-themes --skip-plugins plugin activate ${name}

done

By on October 12th, 2016 ,

Email or call, and we can arrange a time to chat call 0412927156 or CONTACT US TODAY!