Last active
August 29, 2015 14:17
-
-
Save mullnerz/a71edb7b351c64a3b5b7 to your computer and use it in GitHub Desktop.
WordPress CLI install
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
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar | |
php wp-cli.phar --info | |
chmod +x wp-cli.phar | |
sudo mv wp-cli.phar /usr/local/bin/wp | |
wp --info | |
wp core download | |
#export DB_NAME=awesome ; export DB_USERNAME=awesome ; export DB_PASSWORD=123 | |
mysql -h localhost -u root -p | |
create database if not exists `${DB_NAME}`; | |
grant all privileges on `${DB_NAME}`.* TO `${DB_USERNAME}`@`localhost` identified by '123'; | |
grant all privileges on `${DB_NAME}`.* TO `${DB_USERNAME}`@`%` identified by '123'; | |
wp core config --dbname=awesome --dbuser=awesome --dbpass=123 | |
wp core install --url=http://awesome.dev/ --title=WordPress --admin_user=awesome --admin_password=123 [email protected] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment