Skip to content

Instantly share code, notes, and snippets.

@BeFiveINFO
Created January 31, 2017 19:48
Show Gist options
  • Save BeFiveINFO/c64b26d1c9eaac644dd6be0d91fa3033 to your computer and use it in GitHub Desktop.
Save BeFiveINFO/c64b26d1c9eaac644dd6be0d91fa3033 to your computer and use it in GitHub Desktop.
Installing Wordpress with cli
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='example@gmail.com'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment