Created
August 3, 2013 07:05
-
-
Save sankitch/6145534 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/bin/sh | |
dbname=wpsample | |
dbuser=root | |
dbhost=127.0.0.1 | |
dbpass=password | |
wphost=localhost | |
wptitle="wp-cli sample site." | |
wpadmin_name="dontadmin" | |
wpadmin_email="[email protected]" | |
wpadmin_password=password | |
curl https://raw.github.com/wp-cli/wp-cli.github.com/master/installer.sh | bash | |
export PATH=$PATH:$HOME/.wp-cli/bin | |
mkdir /path/to/wordpress | |
cd /path/to/wordpress | |
wp core download | |
wp core config --dbname=$dbname --dbuser=$dbuser --dbhost=$dbhost --dbpass=$dbpass | |
wp core install --url=$wphost --title=$wptitle --admin_email=$wpadmin_email --admin_password=$wpadmin_password --admin_name=$wpadmin_name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment