Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
gcloud CLI menyediakan arsip berversi yang dapat didownload untuk setiap rilis.
Setiap arsip berversi berisi penginstalan gcloud CLI yang mandiri dalam direktori bernama google-cloud-sdk yang dapat disalin ke lokasi mana pun di sistem file Anda.
Penggunaan terbaik untuk menginstal dari arsip berversi
Arsip berversi dirancang untuk penginstalan non-interaktif versi gcloud CLI tertentu dan berguna saat:
Anda memerlukan gcloud CLI versi tertentu. Contoh:
Anda membuat skrip dengan gcloud CLI atau komponen gcloud CLI lainnya dan ingin memastikan bahwa skrip Anda tidak rusak akibat update gcloud CLI.
Anda menggunakan gcloud CLI sebagai bagian dari proses CI (integrasi berkelanjutan) atau sistem produksi tempat Anda ingin mengontrol dependensi untuk memastikan kompatibilitas antarbagian sistem.
Anda melakukan deployment otomatis gcloud CLI ke banyak
mesin yang harus disinkronkan.
Anda berada di belakang proxy atau firewall yang memerlukan
konfigurasi tambahan agar dapat
mengakses internet.
Anda tidak ingin melakukan penginstalan interaktif.
Petunjuk penginstalan
Untuk menginstal rilis terbaru gcloud CLI dari arsip berversi:
Periksa versi (64-bit atau 32-bit) OS yang Anda jalankan.
Linux / macOS: Jalankan getconf LONG_BIT dari command line
Windows: Control Panel > System > System Type
Selain itu, untuk macOS, guna memeriksa nama hardware mesin Anda (x86_64, arm64, atau x86), jalankan uname -m.
Download arsip yang sesuai dan kompatibel dengan versi Anda:
Ekstrak konten file ke lokasi mana pun pada sistem file Anda.
Sebaiknya, ini adalah folder Beranda Anda.
Untuk menambahkan alat gcloud CLI ke jalur Anda, jalankan skrip penginstalan
dari root folder yang Anda ekstrak. Menjalankan skrip ini juga akan membuat petunjuk untuk mengaktifkan penyelesaian perintah di shell bash Anda (khusus Linux dan macOS) serta mengaktifkan pelaporan penggunaan.
Di Linux atau macOS:
./google-cloud-sdk/install.sh
Untuk menjalankan skrip penginstalan dengan mode pembaca layar diaktifkan:
Jalankan install.sh --help atau install.bat --help untuk melihat daftar flag yang dapat Anda teruskan ke skrip ini, termasuk flag yang dapat menjalankan penginstalan secara non-interaktif.
Untuk melakukan inisialisasi gcloud CLI, jalankan
gcloud init:
Untuk Linux atau macOS:
./google-cloud-sdk/bin/gcloud init
Untuk Windows:
.\google-cloud-sdk\bin\gcloud init
Versi sebelumnya
Versi gcloud CLI sebelumnya tersedia di
arsip download
di Cloud Storage. Dapat diakses langsung melalui
https://storage.googleapis.com/cloud-sdk-release/<archive_name>.
Coba sendiri
Jika Anda baru menggunakan Google Cloud, buat akun untuk mengevaluasi performa produk kami dalam skenario dunia nyata. Pelanggan baru mendapatkan kredit gratis senilai $300 untuk menjalankan, menguji, dan men-deploy workload.
[[["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 from versioned archives\n\nThe gcloud CLI provides downloadable, versioned archives for each release.\nEach versioned archive contains a self-contained installation of the\ngcloud CLI in a directory named `google-cloud-sdk` that can be copied\nto any location on your file system.\n\nBest uses for installing from versioned archives\n------------------------------------------------\n\nVersioned archives are designed for non-interactive installation of specific\nversions of the gcloud CLI and are useful when:\n\n- You require a specific version of the gcloud CLI. For example:\n\n - You're scripting with the gcloud CLI or another gcloud CLI component and want to make sure that your scripts don't break as the result of a gcloud CLI update.\n - You're using the gcloud CLI as part of a CI (continuous integration) process or production system where you want to control your dependencies in order to ensure compatibility between parts of the system.\n - You're performing automated deployments of the gcloud CLI to many machines that must be in sync.\n - You're behind a proxy or firewall that requires [additional configuration](/sdk/docs/proxy-settings) to be able to access the internet.\n- You don't want to perform an interactive installation.\n\nInstallation instructions\n-------------------------\n\nTo install the latest release of the gcloud CLI from a versioned archive:\n\n1. Check which version (64-bit or 32-bit) your OS is running on.\n\n - Linux / macOS: Run `getconf LONG_BIT` from your command line\n - Windows: **Control Panel** \\\u003e **System** \\\u003e **System Type**\n\n Additionally, for macOS, to check your machine hardware name (x86_64,\n arm64, or x86), run `uname -m`.\n2. Download the appropriate archive compatible with your version:\n\n3. Extract the contents of the file to any location on your file system.\n Preferably, this is your Home folder.\n\n4. To add the gcloud CLI tools to your path, run the install script\n from the root of the folder you extracted. Running this script also\n generates instructions to enable command completion in your `bash` shell\n (Linux and macOS only) and enable usage reporting.\n\n - On Linux or macOS:\n\n ./google-cloud-sdk/install.sh\n\n To run the install script with screen reader mode turned on: \n\n ./google-cloud-sdk/install.sh --screen-reader=true\n\n - On Windows:\n\n .\\google-cloud-sdk\\install.bat\n\n Run `install.sh --help` or `install.bat --help` for a list of flags you\n can pass to this script, including those that can run the installation\n non-interactively.\n | **Note:** If you answered `n` when the installer prompted asking to modify your profile to update your `PATH` and enable command completion, you can still set up your profile to do so (to ensure the gcloud CLI works correctly) by doing the following:\n | - Bash shell\n | - Source `/path/to/gcloud/path.bash.inc` in your profile to add the gcloud CLI tools to your `PATH`.\n | - Source `/path/to/gcloud/completion.bash.inc` in your profile to enable command completion for the gcloud CLI.\n | - Zsh shell\n | - Source `/path/to/gcloud/path.zsh.inc` in your profile to add the gcloud CLI command line tools to your `PATH`.\n | - Source `/path/to/gcloud/completion.zsh.inc` in your profile to enable command completion for the gcloud CLI.\n | - Fish shell\n | - Source `/path/to/gcloud/path.fish.inc` in your profile to add the gcloud CLI command line tools to your `PATH`.\n5. To initialize the gcloud CLI, run\n [`gcloud init`](/sdk/gcloud/reference/init):\n\n - For Linux or macOS:\n\n ./google-cloud-sdk/bin/gcloud init\n\n - For Windows:\n\n .\\google-cloud-sdk\\bin\\gcloud init\n\nPrevious versions\n-----------------\n\nPrevious versions of the gcloud CLI are available in the\n[download archive](https://console.cloud.google.com/storage/browser/cloud-sdk-release)\nin Cloud Storage. They are directly accessible through\n`https://storage.googleapis.com/cloud-sdk-release/\u003carchive_name\u003e`.\n\nTry it for yourself\n-------------------\n\n\nIf you're new to Google Cloud, create an account to evaluate how our\nproducts perform in real-world scenarios. New customers also get $300 in\nfree credits to run, test, and deploy workloads.\n[Get started for free](https://console.cloud.google.com/freetrial)"]]