MacOS : brew update & upgrade your packages with CLI

$  vi .zshrc

# add this line
# BREW : Update & Upgrade
alias update="brew update; brew upgrade; brew cleanup; pip3 install --upgrade `pip3 list --outdated | awk 'NR>2 {print $1}'`"

 

Open your terminal, you can run the command:

$ update