You can use this script to install/update HUGO (static site generator) on your macOS


Copy the script and save it on your machine as

# Find the latest Hugo from GitHub
echo '🐹 Starting Hugo Install / Update 🐹'
echo '      Note: Please be sure to have curl and grep installed'
echo ''

url=$(curl -s "" | grep -o 'https://.*hugo_extended.*_macOS-64bit.tar.gz')
echo 'βœ… Found latest version'

curl -s $url -L -o hugo_latest.tar.gz
echo 'βœ… Download complete: ' $url

tar -zxf hugo_latest.tar.gz -C /usr/local/bin
rm /usr/local/bin/
rm /usr/local/bin/LICENSE
echo 'βœ… Extracted to /usr/local/bin'

rm hugo_latest.tar.gz
echo 'βœ… Removed downloaded artifacts'

echo ''
echo 'πŸ‘‰ Current Version' $(hugo version)

echo ''
echo 'πŸŽ‰πŸŽ‰πŸŽ‰ Happy Hugo-ing! πŸŽ‰πŸŽ‰πŸŽ‰

Open the Terminal on you macOS, locate the file and run the script:


Do not forget run “chmod” to give read permission

Wait until it finish, it may take a while. Validate the HUGO version running the following command:

hugo version
hugo v0.88.0-ACC5EB5B+extended darwin/amd64 BuildDate=2021-09-02T09:27:28Z VendorInfo=gohugoio

Done! :)