How to install gcloud on Ubuntu in 10 seconds

sudo snap install google-cloud-cli --classic

This is the summary from the official docs. I recommend to install it asĀ snap package as opposed to a deb package since it will auto-update, it’s much easier to use and just works better out of the box in my experience.