Cloud SDK is available in the snap package format on Ubuntu systems for users that prefer automatic
updates. This package contains the
bq commands only. It does not include
kubectl or the App Engine extensions required to deploy an application using the
gcloud command-line tool. If you want these components, you should install the
debian package format instead.
Install the Cloud SDK snap package using a command line:
snap install google-cloud-sdk --classic
- Optional. To add Cloud SDK tools to your
PATHand enable command completion in your Bash shell, you can do so by sourcing
/path/to/gcloud/completion.bash.incin your profile to enable command completion for the gcloud command-line tool.
/path/to/gcloud/completion.zsh.incinstead for Zsh shells.
gcloud initto initialize the
gcloudenvironment and get started: