Download the gdcloud CLI

This page details how to download the gdcloud CLI. You have two options for this download:

  1. Download the latest version.
  2. Download an archived version.

Download the latest gdcloud CLI

Download the gdcloud CLI bundle to your system from the user interface (UI).

To download the gdcloud CLI through the UI:

  1. Ask IO to help configure OrganizationNetworkPolicy (ONP) to allow traffic from a specific CIDR outside the organization to the artifact registry. Use service "all" in the OrganizationNetworkPolicy configuration.
  2. Sign in and access the Google Distributed Cloud air-gapped Welcome page.
  3. Navigate to the Connect with CLI section.
  4. Click Download CLI Bundle.

Download the CLI bundle.

Download an archived version of the gdcloud CLI

To download a different version of the gdcloud CLI, complete the following steps:

  1. Ask IO to help configure OrganizationNetworkPolicy (ONP) to allow traffic from a specific CIDR outside the organization to the artifact registry. Use service "all" in the OrganizationNetworkPolicy configuration.
  2. Go to the Google Distributed Cloud air-gapped Welcome page.
  3. In the Connect with CLI section, click Download CLI Bundle.
  4. Choose the supported version of interest.

Download CLI bundle

Extract the gdcloud CLI bundle

Extract the contents of the downloaded gdcloud CLI bundle to any location on your file system.

To replace an existing installation, remove the existing google-distributed-cloud-hosted-cli directory and extract the archive to the same location.

Extract the bundle:

tar -xf gdcloud_cli.tar.gz