Skip to content

Instantly share code, notes, and snippets.

@hectorromo
Forked from danielpataki/install-full.sh
Created January 20, 2017 09:38
Show Gist options
  • Save hectorromo/8274cfd17c14eeddaccc4e9103ba66f0 to your computer and use it in GitHub Desktop.
Save hectorromo/8274cfd17c14eeddaccc4e9103ba66f0 to your computer and use it in GitHub Desktop.
WPCLI
wp core download
wp core config --dbname=$1 --dbuser=root --dbpass=root --dbhost=localhost --extra-php <<PHP
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
PHP
wp db create
wp core install --url=http://$1.com --title=$1 --admin_user=admin --admin_password=password --admin_email=admin@$1.com
wp core download
wp core config --dbname=mydbname --dbuser=mydbuser --dbpass=mydbpass --dbhost=localhost --dbprefix=wefwefmewf --extra-php <<PHP
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
PHP
wp db create
wp core install --url=http://mysite.com --title=SiteTitle --admin_user=username --admin_password=mypassword --admin_email=my@email.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment