Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Jika Anda lebih suka update otomatis, Anda dapat menginstal Google Cloud CLI menggunakan paket snap di sistem Ubuntu. Paket ini hanya berisi perintah gcloud CLI, gcloud alpha, gcloud beta, gsutil, docker-credential-gcloud, dan bq. Versi ini tidak menyertakan ekstensi kubectl atau App Engine
yang diperlukan untuk men-deploy aplikasi menggunakan gcloud CLI. Jika Anda memerlukan komponen
ini, instal paket Debian.
Jika Anda telah menginstal paket snap lama, google-cloud-sdk, hapus di
command line:
snap remove google-cloud-sdk
Anda tidak dapat menginstal paket snap baru tanpa menghapus paket ini karena kedua penginstalan
memerlukan alias yang sama.
Di command line, instal paket snap gcloud CLI:
snapinstallgoogle-cloud-cli--classic
Opsional. Untuk menambahkan alat gcloud CLI ke PATH dan mengaktifkan penyelesaian perintah di shell Bash, sumberkan /path/to/gcloud/completion.bash.inc di profil Anda.
Untuk shell Zsh, gunakan /path/to/gcloud/completion.zsh.inc.
Untuk melakukan inisialisasi gcloud CLI dan memulai, jalankan
gcloud init:
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 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 ```"]]