Skip to content

Instantly share code, notes, and snippets.

@mbejda
Created February 12, 2014 13:48
Show Gist options
  • Save mbejda/8955865 to your computer and use it in GitHub Desktop.
Save mbejda/8955865 to your computer and use it in GitHub Desktop.
Create WordPress Shell script using WP CLI
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