NB: If the above wget command doesn't work for you, you most likely don't have it installed. To install it, first start by installing Homebrew.

/usr/bin/ruby -e "$(curl -fsSL <https://raw.githubusercontent.com/Homebrew/install/master/install>)"

Once that's installed, you just need to use homebrew to install wget:

brew install wget

and then you're good! You may need to reboot for the changes to take effect.