Skip to content

Instantly share code, notes, and snippets.

@danielpataki
Last active March 19, 2018 00:28
Show Gist options
  • Save danielpataki/cf3793d79c8594cab7dabbe725f11d62 to your computer and use it in GitHub Desktop.
Save danielpataki/cf3793d79c8594cab7dabbe725f11d62 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