download wordpress
curl -o wordpress.tar.gz https://wordpress.org/latest.tar.gz
extract intp Documents folder
tar -C ~/Documents -xzf wordpress.tar.gz
remove the tar file
rm wordpress.tar.gz
make a new site directory (or use existing directory)
mkdir ~/Sites/newsite
add wordpress
cp -R ~/Documents/wordpress/* ~/Sites/newsite
and go to
http://localhost/~username/newsite