This document shows how to install Google Cloud CLI before you install
Google Distributed Cloud.
To install Google Distributed Cloud, you need certain tools that are in
gcloud CLI. Use the following steps to install the
tooling, including upgrading your existing gcloud CLI installation.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-25 UTC."],[[["\u003cp\u003eThe Google Cloud CLI (gcloud CLI) must be installed before installing Google Distributed Cloud.\u003c/p\u003e\n"],["\u003cp\u003eExisting gcloud CLI installations should be checked for the \u003ccode\u003elatest available version\u003c/code\u003e, \u003ccode\u003eanthos-auth\u003c/code\u003e, and \u003ccode\u003ekubectl\u003c/code\u003e components, using \u003ccode\u003egcloud components list\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eUpdating the gcloud CLI and installing the required \u003ccode\u003ekubectl\u003c/code\u003e and \u003ccode\u003eanthos-auth\u003c/code\u003e components is done via \u003ccode\u003egcloud components update\u003c/code\u003e and \u003ccode\u003egcloud components install\u003c/code\u003e respectively.\u003c/p\u003e\n"],["\u003cp\u003eUsers behind a proxy or firewall may need to configure gcloud CLI to access the internet, with details available in the documentation.\u003c/p\u003e\n"]]],[],null,["# Installing Google Cloud CLI\n\n\u003cbr /\u003e\n\nThis document shows how to install Google Cloud CLI before you install\nGoogle Distributed Cloud.\n\nTo install Google Distributed Cloud, you need certain tools that are in\ngcloud CLI. Use the following steps to install the\ntooling, including upgrading your existing gcloud CLI installation.\n\nTo install gcloud CLI and related tooling:\n\n1. Install gcloud CLI:\n\n - [Install gcloud CLI](/sdk/docs) but skip the `gcloud init` command.\n\n - If you already have a version installed, run the following command to list\n what components and versions you have:\n\n ```\n gcloud components list\n ```\n\n If you have the `latest available version` and both the `anthos-auth` and\n `kubectl` components are `Installed`, you can stop here.\n2. Retrieve the latest components and versions:\n\n 1. Run the following command to update gcloud CLI:\n\n ```\n gcloud components update\n ```\n 2. To install the `anthos-auth` and `kubectl`\n components, run the following commands:\n\n ```\n gcloud components install kubectl\n gcloud components install anthos-auth\n ```\n\nInstalling if you are behind a proxy\n------------------------------------\n\nIf you are behind a corporate proxy or firewall, the gcloud CLI might\nnot be able to access the internet with its default settings.\n\nFor information about how to install the gcloud CLI in this\nsituation, see\n\n[Configuring the gcloud CLI for use behind a proxy/firewall](/sdk/docs/proxy-settings).\n\nWhat's next\n-----------\n\n[Create Google Cloud projects (full instructions)](/anthos/clusters/docs/on-prem/1.11/how-to/multiple-gcp-projects)."]]