Created
May 14, 2015 13:52
-
-
Save lajlev/2d2709b1b3f7e307e30e to your computer and use it in GitHub Desktop.
WP-CLI create bash function
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-create() { | |
wp core download | |
git init | |
gi wordpress >> .gitignore | |
mysql -uroot -proot -e "create database $1;" | |
wp core config --dbname=$1 --dbuser=root --dbpass=root | |
wp core install --url=http://$1.wp --title=$1 --admin_user=lajlev --admin_password=7913 [email protected] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment