Update Proxmox from shell

apt-get update
apt-get dist-upgrade

Additional information:

apt-get upgrade
Will not change what is installed (only versions),

apt-get dist-upgrade
Will install or remove packages as necessary to complete the upgrade,

apt upgrade
Will automatically install but not remove packages.

apt full-upgrade
Performs the same function as apt-get dist-upgrade.