Skip to content

Instantly share code, notes, and snippets.

@lajlev
Created May 14, 2015 13:52
Show Gist options
  • Save lajlev/2d2709b1b3f7e307e30e to your computer and use it in GitHub Desktop.
Save lajlev/2d2709b1b3f7e307e30e to your computer and use it in GitHub Desktop.
WP-CLI create bash function
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