[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-25。"],[],[],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)"]]