Inspired by the article Keeping MacOS Clean.
🔔 This script has recently been ported from Zsh/Bash to Go. If you prefer the traditional zsh script, here is that repo.
This Go script simplifies the process of updating all your macOS software directly from the Terminal. While it covers many updates, you may want to install mas
to manage App Store applications.
- Head to releases and download
macup
ormacup_<cpu-arch>
for your mac cd <path/to/macup>
chmod +x ./macup
- Run the
./macup
from terminal - Go to System Settings Application and search
"gatekeeper"
and select the result - Click
"Allow Anyway"
- Run the
./macup
from terminal, then select your updates - To skip the selection menu, run
macup --yes
to use your previous selections
This script currently updates the following:
- 🍺 Homebrew formulas and casks (
brew
) - 🧑💻 VSCode extensions (
code
) - 📦 Node Package Manager packages (
npm
) - 💎 RubyGems (
gem
) - 🧶 Yarn packages (
yarn
) - 🚚 Rust packages (
cargo
) - 🛍 App Store applications (
mas
) - 🖥 MacOS system updates and patches (
softwareupdate
)
Feel free to contribute or customize the script to suit your needs! Happy updating! 🎉