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.

To install gcloud CLI and related tooling:

1. Install gcloud CLI:

   - [Install gcloud CLI](https://docs.cloud.google.com/sdk/docs.md.txt) but skip the `gcloud init` command.

   - If you already have a version installed, run the following command to list
     what components and versions you have:

     ```
     gcloud components list
     ```

     If you have the `latest available version` and both the `anthos-auth` and
     `kubectl` components are `Installed`, you can stop here.
2. Retrieve the latest components and versions:

   1. Run the following command to update gcloud CLI:

      ```
      gcloud components update
      ```
   2. To install the `anthos-auth` and `kubectl`
      components, run the following commands:

      ```
      gcloud components install kubectl
      gcloud components install anthos-auth
      ```

## Installing if you are behind a proxy

If you are behind a corporate proxy or firewall, the gcloud CLI might
not be able to access the internet with its default settings.

For information about how to install the gcloud CLI in this
situation, see

[Configuring the gcloud CLI for use behind a proxy/firewall](https://docs.cloud.google.com/sdk/docs/proxy-settings.md.txt).

## What's next

[Create Google Cloud projects (full instructions)](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/how-to/multiple-gcp-projects.md.txt).