How To Upgrade VMware ESXi Via Command Line

esxcli network firewall ruleset set -e true -r httpClient
esxcli system version get
vmkping 8.8.8.8
esxcli software sources profile list -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml

Filter the list with grep:

esxcli software sources profile list -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml | grep -i ESXi-6.7.*standard

Or, if you upload the offline installer zip to a VMware datastore, change the -d argument:

esxcli software sources profile list --depot /vmfs/volumes/<disk_id>/folder/VMware_Installer.zip
esxcli software profile update -p <profile-name> -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml

Or, from the local offline installer:

esxcli software profile update -p <profile name> --depot /vmfs/volumes/<disk_id>/folder/VMware_Installer.zip

For quick upgrade from 6.x to 6.7

esxcli software profile update -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml -p ESXi-6.7.0-20191204001-standard

Troubleshooting

esxcli software vib remove -n <VIB name>