Install and configure Google Cloud CLI

Before you begin

Ensure that:

  • You have a Google Cloud account.
  • You have access to a supported command line environment (for example, Windows, Linux, or macOS).

Install the Google Cloud CLI

The Google Cloud CLI can be installed in a variety of environments, including MacOS, Linux and Windows.

  1. Open a browser to the Google Cloud CLI overview page.
  2. Follow the instructions to download and install Google Cloud CLI for your environment.

Initialize the Google Cloud environment

After installing the Google Cloud CLI, you must initialize your environment using command similar to the following examples. You may need to modify the commands to suit your installation.

  • Linux/macOS: ./google-cloud-sdk/bin/gcloud init

  • Windows: gcloud init