Installing a Snap package

Cloud SDK is available in the snap package format on Ubuntu systems for users that prefer automatic updates. This package contains the gcloud, gcloud alpha, gcloud beta, gsutil, kuberun, anthoscli, docker-credential-gcloud, and 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.

  1. Install the Cloud SDK snap package using a command line:
    snap install google-cloud-sdk --classic
  2. Run gcloud init to initialize the gcloud environment and get started:
    gcloud init