Last active
March 19, 2018 00:28
-
-
Save danielpataki/cf3793d79c8594cab7dabbe725f11d62 to your computer and use it in GitHub Desktop.
WPCLI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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