Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Wenn Sie automatische Updates bevorzugen, können Sie die Google Cloud CLI mit einem Snap-Paket auf Ubuntu-Systemen installieren. Dieses Paket enthält nur die gcloud-Befehle, gcloud alpha, gcloud beta, gsutil, docker-credential-gcloud und bq. Es enthält weder kubectl noch die App Engine-Erweiterungen, die für die Bereitstellung einer Anwendung mit der gcloud-Befehlszeile erforderlich sind. Wenn Sie diese Komponenten benötigen, installieren Sie stattdessen das Debian-Paket.
Wenn Sie das alte Snap-Paket google-cloud-sdk installiert haben, entfernen Sie es in der Befehlszeile:
snap remove google-cloud-sdk
Sie können das neue Snap-Paket nicht installieren, ohne dieses Paket zu entfernen, da für beide Installationen dieselben Aliasse erforderlich sind.
Installieren Sie in der Befehlszeile das Snap-Paket der gcloud CLI:
snapinstallgoogle-cloud-cli--classic
Optional. Wenn Sie die gcloud-Befehlszeilentools zu PATH hinzufügen und die Befehlsvervollständigung in der Bash-Shell aktivieren möchten, fügen Sie /path/to/gcloud/completion.bash.inc in Ihr Profil ein.
Verwenden Sie für Zsh-Shells stattdessen /path/to/gcloud/completion.zsh.inc.
Führen Sie gcloud init aus, um die gcloud CLI zu initialisieren und zu beginnen:
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-08-25 (UTC)."],[],[],null,["# Installing a Snap package\n\n| **Note:** This installation method is only available on Ubuntu versions that support [snaps](https://docs.snapcraft.io/).\n\n\nIf you prefer automatic updates, you can install the Google Cloud CLI using a snap package on\nUbuntu systems. This package contains the gcloud CLI, `gcloud alpha`,\n`gcloud beta`, `gsutil`, `docker-credential-gcloud`, and\n`bq` commands only. It doesn't include `kubectl` or the App Engine\nextensions required to deploy an application using the gcloud CLI. If you need these\ncomponents, install the [Debian package](/sdk/docs/install#deb) instead.\n\n1. If you have the old snap package, `google-cloud-sdk`, installed, remove it at the command line: \n\n ```sh\n snap remove google-cloud-sdk\n ```\n You can't install the new snap package without removing this package because both installations require the same aliases.\n2. At the command line, install the gcloud CLI snap package: \n\n ```bash\n snap install google-cloud-cli --classic\n ```\n3. Optional. To add the gcloud CLI tools to your `PATH` and enable command completion in your Bash shell, source \u003cvar translate=\"no\"\u003e/path/to/gcloud\u003c/var\u003e`/completion.bash.inc` in your profile.\n\n\n For Zsh shells, use \u003cvar translate=\"no\"\u003e/path/to/gcloud\u003c/var\u003e`/completion.zsh.inc` instead.\n4. To initialize the gcloud CLI and get started, run [`gcloud init`](/sdk/gcloud/reference/init): \n\n ```bash\n gcloud init\n ```"]]