Skip to content

Instantly share code, notes, and snippets.

@guldoe
Last active May 2, 2017 15:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guldoe/91320aa5c7198f7cc37aaf771d446ed6 to your computer and use it in GitHub Desktop.
Save guldoe/91320aa5c7198f7cc37aaf771d446ed6 to your computer and use it in GitHub Desktop.
Install basic WordPress with wp-cli
echo "DOWNLOADING WORDPRESS"
wp core download
echo "CREATING AND CONFIGURATION WP-CONFIG"
wp core config --dbname=test_demo --dbuser=root --dbpass=root --locale=es_ES
# echo "CREATING DATABASE"
# mysql -u root -p -e "drop database test_demo";
# mysql -u root -p -e "create database test_demo";
echo "INSTALLING WORDPRESS"
wp core install --url="http://localhost/demo" --title="Sitio de prueba" --admin_user="demo" --admin_password="1234" --admin_email="admin@example.com"
echo "INSTALL BASIC PLUGINS"
wp plugin install wordpress-seo --activate
wp plugin install contact-form-7 --activate
wp plugin install easy-wp-smtp --activate
echo "OPTIMIZATION PLUGINS"
wp plugin install autoptimize --activate
wp plugin install wp-optimize
wp plugin install wp-fastest-cache
echo "SECURITY AND BACKUP PLUGINS"
wp plugin install better-wp-security
wp plugin install updraftplus
wp plugin install duplicator
echo "OTHERS"
wp plugin install google-analytics-for-wordpress --activate
wp plugin install asesor-cookies-para-la-ley-en-espana --activate
wp plugin install siteorigin-panels
wp plugin install so-widgets-bundle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment