Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
sudo -u "${user}" bash -s <<ILOVEBASH
export WP_CLI_CACHE_DIR=${webroot}
cd ${webroot}
curl -O
chmod +x ${webroot}/wp-cli.phar
./wp-cli.phar core download
./wp-cli.phar config create --dbname="${db_name}" --dbuser="${db_username}" --dbpass="${db_password}" --dbhost="${db_host}"
./wp-cli.phar db create
./wp-cli.phar core install --url="${domain}" --title="${blog_title}" --admin_user="${blog_username}" --admin_password="${blog_password}" --admin_email="${webmaster_email}"
#./wp-cli.phar plugin install --force
#./wp-cli.phar plugin install --force
#./wp-cli.phar plugin update --all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.