WillSquire
10/12/2015 - 12:31 PM

Install wordpress via CLI (mac compatible)

Install wordpress via CLI (mac compatible)

Install Wordpress via CLI

In the command line cd to the destination directory, then download the latest version of Wordpress in it's compressed format (note that wget can be used as an alternative to cURL for Linux styled users):

sudo curl -O https://wordpress.org/latest.tar.gz

Extract the compressed package files to the same directory:

tar -xvzf latest.tar.gz

Remove the compressed file:

rm latest.tar.gz

Rename the wordpress directory to the required project name:

mv /path/to/wordpress /path/to/new_wordpress_name