Created
January 31, 2017 19:48
-
-
Save BeFiveINFO/c64b26d1c9eaac644dd6be0d91fa3033 to your computer and use it in GitHub Desktop.
Installing Wordpress with cli
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
Install MAMP first. | |
Install WP CLI | |
Make directory for the wp installation (in my case, ~/Sites/wordpress) | |
Install Wordpress with WP-CLI | |
- wp core download --path=~/Sites/wordpress | |
CD to the root of WP installation (cd ~/Sites/wordpress) then Generate Config by using wpcli | |
- wp core config --dbname='wordpress' --dbuser='root' --dbpass='' --dbhost='127.0.0.1' | |
Init DB | |
- wp db create | |
The rest of Wordpress Installation (setup) | |
wp core install --url='127.0.0.1/wordpress' --title='Wordpress Local Test' --admin_name='wordpress' --admin_password='' --admin_email='[email protected]' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment