Created
February 12, 2014 13:48
-
-
Save mbejda/8955865 to your computer and use it in GitHub Desktop.
Create WordPress Shell script using WP CLI
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
echo "Please enter some dbname: " | |
read dbname | |
mkdir $dbname | |
cd $dbname | |
wp core download | |
wp core config --dbname=$dbname --dbuser=root --dbhost=localhost | |
wp db create $dbname | |
wp core install --url="http://localhost" --title="Your Blog Title" --admin_user="admin" --admin_password="password" --admin_email="admin@admin.com" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment