Download WordPress latest and unzip to root directory – Bash (upgraded to wp-cli)

I was looking for something like this for my local development environment, but created one instead. I called it dlwp !# /bin/bash read -r -p “Is this the root directory? [y/N] ” response case $response in [yY][eE][sS]|[yY]) wget https://wordpress.org/latest.tar.gz tar -zxvf latest.tar.gz cd wordpress mv -i * ../ cd .. rm -rf wordpress rm -rf… Continue reading Download WordPress latest and unzip to root directory – Bash (upgraded to wp-cli)