To install Google Cloud CLI on Ubuntu, add Google’s official APT repository and install the google-cloud-cli package.
If you used Google Cloud SDK before, the command is still gcloud. Choose APT for this walkthrough or use Snap if you already use it and want automatic updates.
Install Google Cloud CLI with Snap
Troubleshoot Google Cloud CLI on Ubuntu
Update or remove Google Cloud CLI
Google Cloud CLI FAQ
Is Google Cloud CLI the same tool as Google Cloud SDK?
Google Cloud CLI is the current name for the command-line tool distributed as Google Cloud SDK. Install google-cloud-cli and run it with the gcloud command.
Can I install Google Cloud CLI on Ubuntu without signing in?
Yes. Install the package and run gcloud version without a Google account. Sign in when you need the CLI to access your Google Cloud projects.
Does gcloud init set up credentials for client libraries?
gcloud init sets up the CLI’s account and configuration. For local development with Google Cloud client libraries, set up Application Default Credentials separately when your project calls for them.
Helpful Resources
Related Ubuntu guides
- Install and use curl on Ubuntu
- Install and use OpenTofu on Ubuntu
- Install Kubernetes on Ubuntu with MicroK8s
