# Google Cloud CLI

Published January 1, 2026 · Updated August 10, 2026

Command-line tools for managing Google Cloud resources

Category: Developer Tools · Free · [Official website](https://cloud.google.com/cli)

## Install with Homebrew

`brew install --cask gcloud-cli`

## Quick take

Google Cloud CLI (gcloud) is the command-line control plane for Google Cloud Platform, and it fits Mac-based DevOps engineers, SREs, and cloud developers who script infrastructure instead of clicking through the Console. gcloud is free to download and install, and the current release is 593.0.0, shipped 2026-11-10. A steep learning curve comes with the sheer volume of commands and flags, so developers who rarely touch cloud infrastructure can skip gcloud and use the Google Cloud Console instead. gcloud turns cloud management from console clicks into a disciplined, scriptable engineering practice. Excellent Apple Silicon support and deep integration with tools like Docker and Kubernetes make gcloud a fast, reliable CLI on a Mac.

Best for: DevOps Engineers, SREs, and Cloud Developers.

## What is Google Cloud CLI (gcloud)? Complete Guide for Mac Users in 2026

Google Cloud CLI (`gcloud`) is a command-line app for Mac that creates and manages resources on Google Cloud Platform (GCP), and the current version as of November 2026 is **593.0.0**. Google maintains the official CLI, and a Homebrew install runs `brew install --cask gcloud-cli`. The Cloud Console is fine for clicking around; `gcloud` is what DevOps engineers, SREs, and developers use on macOS when they need speed, automation, and reproducibility in 2026.
It grew from scattered scripts into one SDK that covers authentication, local configuration, and API calls across the GCP catalog, from Compute Engine and Kubernetes Engine (GKE) to Cloud Run and BigQuery. For Mac users in 2026, the `gcloud` CLI runs natively on Apple Silicon (M-series chips) for its core Python runtime, without Rosetta 2 translation; the install page lists a macOS 64-bit ARM64 (Apple silicon) archive. Running `gcloud` natively matters for heavy workflows involving local emulators or large-scale data operations.
gcloud's configuration system lets users smoothly switch between different projects, accounts, and regional preferences with a single command. gcloud is a wrapper around Google Cloud APIs, handling the complexity of OAuth2 authentication and credential management automatically. Whether you are deploying serverless microservices, managing IAM policies, or tunneling into a private SQL instance, `gcloud` provides the scriptable precision that modern infrastructure-as-code approaches require.

## Features

- **full Resource Management.** `gcloud` allows you to govern the lifecycle of almost every GCP resource directly from your terminal. This goes beyond simple creation and deletion; it includes modifying metadata, resizing clusters, and managing networking rules. For example, a developer can spin up a specific virtual machine instance with `gcloud compute instances create my-vm --zone=us-central1-a --machine-type=e2-medium`. In 2026, the tool supports granular controls for nearly all GA (General Availability) and Beta features, often receiving updates before the web console. This feature is vital for users who need to script infrastructure setup or perform bulk operations that would be tedious and error-prone in a graphical interface.
- **Advanced Authentication & IAM Integration.** Security is the backbone of cloud operations, and `gcloud` simplifies complex OAuth flows. It handles user authentication via the browser (`gcloud auth login`) and service account impersonation for automated pipelines. gcloud also manages Application Default Credentials (ADC), enabling your local code to authenticate against Google APIs transparently without hardcoding secrets. For example, running `gcloud auth application-default login` places credentials in a standard location that client libraries (like Python or Node.js) automatically detect. It also integrates deeply with Identity and Access Management (IAM), allowing admins to bind policies to resources via commands like `gcloud projects add-iam-policy-binding` to enforce strict least-privilege access controls directly from the CLI.
- **GKE & Kubernetes Authentication Helper.** For developers working with Google Kubernetes Engine (GKE), `gcloud` is the critical bridge to `kubectl`. Manually generating `kubeconfig` files is error-prone and insecure. The CLI solves this with a specific authentication helper command: `gcloud container clusters get-credentials [CLUSTER_NAME]`. This command automatically fetches cluster details and generates a secure, short-lived authentication token for `kubectl`, updating your local configuration file instantly. This feature ensures that Mac users can switch contexts between different Kubernetes clusters smoothly, using Google's secure authentication backend to manage container orchestration without managing static long-lived certificates.
- **Structured Output & Filtering.** To support automation, `gcloud` provides capable formatting and filtering capabilities natively. Unlike standard Unix tools where you might need `grep` or `awk` to parse output, `gcloud` accepts flags like `--format="json"`, `--format="yaml"`, or `--format="table(name, status, zone)"`. This allows developers to pipe output directly into other tools like `jq` or Python scripts. Also, the `--filter` flag performs server-side (or client-side) filtering to retrieve exact datasets. For instance, `gcloud compute instances list --filter="status=RUNNING AND zone:us-central1"` retrieves only relevant active instances, significantly reducing network overhead and simplifying script logic.
- **Serverless Deployment Automation.** The CLI is the fastest route to deploying serverless applications on Cloud Run and Cloud Functions. With a single command, developers can build a container image, push it to the Artifact Registry, and deploy it to a fully managed URL. For example, `gcloud run deploy --source .` analyzes the current directory, builds the artifact using Google Cloud Build, and deploys the service, handling traffic splitting and revision management automatically. This "source-to-prod" capability removes the need for complex Dockerfiles or separate CI steps for simple projects, allowing rapid prototyping and iteration directly from a MacBook.
- **Local Emulators & Development Tools.** To reduce cloud costs and latency during development, the Google Cloud CLI includes (or easily installs) local emulators for key services like Cloud Bigtable, Datastore, Firestore, and Pub/Sub. By running `gcloud beta emulators pubsub start`, a developer can spin up a local instance of the messaging service. Environment variables can then be set to direct local application code to this emulator instead of the live production API. Local emulators let gcloud users run solid offline development and testing workflows on macOS, so code is battle-tested against a realistic API surface before ever accruing a cent in cloud billing charges.

## How to Install Google Cloud CLI (gcloud) on Mac

Installing the Google Cloud CLI on macOS is straightforward. The recommended method in 2026 is via the Homebrew cask `gcloud-cli`, which handles dependencies, path configuration, and automatic updates.

1. **Install via Homebrew.** Open your Terminal (or iTerm2) and run the standard cask installation command: `brew install --cask gcloud-cli`. The Homebrew cask is named `gcloud-cli` (formerly `google-cloud-sdk`) and, as of November 2026, ships release 593.0.0. This installs the SDK files into a managed directory.
2. **Initialize the SDK.** Once the installation finishes, run `gcloud init`. This interactive command will launch your default browser to authenticate with your Google account and guide you through selecting a default project and Compute Engine zone.
3. **Configure Shell Path (If needed).** If you installed manually or Homebrew didn't link automatically, add the SDK to your path. Run `source $(brew --prefix)/Caskroom/gcloud-cli/latest/google-cloud-sdk/path.zsh.inc` (or `.bash.inc` for Bash users) to enable command completion.
4. **Install Additional Components.** The base install is minimal. To add Kubernetes support or local emulators, run `gcloud components install kubectl` or `gcloud components install beta`. Use `gcloud components list` to see available tools.

## Pros

- full coverage of nearly all GCP services and APIs.
- capable scripting capabilities with JSON/YAML output and filtering.
- Native Apple Silicon support (M1/M2/M3/M4).
- direct integration with local development tools (Docker, Kubectl).
- Supports multiple account and project configurations for easy context switching.
- Includes local emulators for free, offline development and testing.

## Cons

- Steep learning curve due to the sheer volume of commands and flags.
- Installation can be heavy; the full SDK consumes significant disk space.
- Updates are frequent and can occasionally introduce breaking changes.
- Error messages can sometimes be verbose and difficult to debug for beginners.

## Closer look: Google Cloud CLI (gcloud) Architecture

The Google Cloud CLI is a sophisticated Python application that abstracts the complexity of Google's RESTful APIs. When you execute a command, `gcloud` parses your arguments, loads your active configuration (stored in `~/.config/gcloud`), handles the OAuth2 token refresh cycle, and constructs an HTTP request to the specific Google Cloud API endpoint. It essentially is a dynamic client generator. The CLI's modular architecture allows it to support hundreds of services without bloating the initial download too heavily, as specific components (like `kubectl` or `bigtable` emulators) are managed as separate packages within the SDK manager.

## FAQ

### Can I manage multiple Google accounts with gcloud?

Yes, absolutely. You can use `gcloud auth login` multiple times to authenticate different accounts. Use `gcloud config configurations` to create separate profiles (e.g., 'personal' vs 'work') and switch between them. Each configuration stores its own account, project, and region settings.

### Does gcloud work natively on Apple Silicon Macs?

Yes. As of 2026, the Google Cloud SDK ships with bundled Python components that run natively on ARM64 architecture (M1, M2, etc.). You do not need Rosetta 2 for the core CLI functionality, so startup and execution stay fast.

### How do I update the gcloud CLI components?

If you installed via the standard script or archive, run `gcloud components update`. If you installed via Homebrew, you should strictly use `brew upgrade --cask gcloud-cli` (the cask was previously named `google-cloud-sdk`) to avoid conflicts between Homebrew's file management and the SDK's internal updater.

### Is gcloud the same as kubectl?

No. `gcloud` manages Google Cloud resources (like creating the Kubernetes cluster itself). `kubectl` manages the applications *inside* the Kubernetes cluster. However, `gcloud` is required to authenticate `kubectl` against GKE clusters using the `gcloud container clusters get-credentials` command.

### How can I see exactly what API calls gcloud is making?

You can append the `--log-http` flag to any command. This prints the headers, payloads, and responses of the REST API calls happening in the background. gcloud's `--log-http` flag is useful for debugging permission errors or understanding the underlying API.

### Can I use gcloud to back up my data?

Yes, primarily via the `gcloud storage` (formerly gsutil) commands. You can script solid backup workflows to sync local directories to Cloud Storage buckets using commands like `gcloud storage rsync -r local_dir gs://my-bucket`.

### What happens if I uninstall gcloud?

Uninstalling the tool removes the binaries but usually leaves your configuration folder at `~/.config/gcloud`. This preserves your credentials and settings. If you reinstall later, your profiles will likely still be available unless you manually delete that directory.

### Do I need Python installed to use gcloud?

The gcloud SDK comes with its own bundled Python interpreter to ensure compatibility and stability. You generally do not need to manage a system Python version for gcloud to work, preventing 'dependency hell' with your other Python projects.

### Does the gcloud CLI support Python 3.15?

Yes. Since version 587.0.0 (2026-09-29), the CLI supports Python 3.15. The SDK still ships its own bundled Python interpreter so gcloud remains stable regardless of your local Python setup; from 593.0.0 (2026-11-10) the bundled Python is a required component on Windows x86 and x86_64. On macOS, the install page lists a 64-bit ARM64 (Apple silicon) archive, so the CLI runs natively on M-series Macs.

### Why does `gcloud components update` exit immediately on my Mac?

Versions 590.0.0 and 590.0.1 of the CLI had a bug where `gcloud components update` on macOS exited immediately instead of updating. This was fixed in 591.0.0, released 2026-10-27, and the current release (593.0.0, as of November 2026) updates normally. If you installed via the Homebrew cask and are stuck on an affected version, update with `brew upgrade --cask gcloud-cli`.

### Can I install the gcloud CLI with Homebrew?

Yes, `brew install --cask gcloud-cli` installs the Google Cloud CLI. The Google Cloud CLI's Homebrew cask is named `gcloud-cli` (formerly `google-cloud-sdk`) and ships release 593.0.0 as of November 2026. Run `gcloud init` after installing to authenticate and select a default project. Update later with `brew upgrade --cask gcloud-cli` to avoid conflicts with the SDK's internal updater.

## Sources

- [Google Cloud CLI Release Notes](https://docs.cloud.google.com/sdk/docs/release-notes)
- [gcloud CLI overview](https://docs.cloud.google.com/sdk/gcloud)
- [Install the Google Cloud CLI](https://docs.cloud.google.com/sdk/docs/install-sdk)
- [Google Cloud SDK product page](https://cloud.google.com/sdk)
- [cloud-sdk-docker](https://github.com/GoogleCloudPlatform/cloud-sdk-docker)
- [Google Cloud CLI announce group](https://groups.google.com/g/google-cloud-sdk-announce)
- [gcloud-cli cask on Homebrew](https://formulae.brew.sh/cask/gcloud-cli)

## Related

- [Cursor](https://bundl.run/apps/cursor)
- [Claude Code](https://bundl.run/apps/claude-code)
- [ChatGPT](https://bundl.run/apps/chatgpt)
- [Claude](https://bundl.run/apps/claude)
- [Codex](https://bundl.run/apps/codex)
- [Windsurf](https://bundl.run/apps/windsurf)

```json
{
  "@context": "https://schema.org",
  "@graph": [
    {
      "@type": "Organization",
      "@id": "https://bundl.run/#organization",
      "name": "Bundl.run",
      "url": "https://bundl.run",
      "logo": {
        "@type": "ImageObject",
        "url": "https://bundl.run/og-image.png",
        "width": 1200,
        "height": 630
      },
      "description": "The Ninite for Mac. Install all your essential Mac apps with one terminal command.",
      "sameAs": [
        "https://github.com/abhiofficial/bundl-mac-setup",
        "https://x.com/bundlrun",
        "https://www.producthunt.com/products/bundl-run"
      ],
      "foundingDate": "2024",
      "contactPoint": {
        "@type": "ContactPoint",
        "contactType": "customer support",
        "url": "https://bundl.run/faq"
      }
    },
    {
      "@type": "WebSite",
      "@id": "https://bundl.run/#website",
      "name": "Bundl.run",
      "url": "https://bundl.run",
      "description": "The Ninite for Mac. Install all your essential Mac apps with one terminal command.",
      "publisher": {
        "@id": "https://bundl.run/#organization"
      },
      "inLanguage": "en-US"
    },
    {
      "@type": "Person",
      "@id": "https://bundl.run/authors/alex-chen#person",
      "name": "Alex Chen",
      "jobTitle": "Senior Developer Tools Specialist",
      "url": "https://bundl.run/authors/alex-chen",
      "worksFor": {
        "@id": "https://bundl.run/#organization"
      },
      "description": "Alex Chen has been evaluating developer tools and productivity software for over 12 years, with deep expertise in code editors, terminal emulators, and development environments. As a former software engineer at several Bay Area startups, Alex brings hands-on experience with the real-world workflows these tools are meant to enhance. Alex tests each application extensively on both Intel and Apple Silicon Macs, documenting performance metrics, integration capabilities, and workflow efficiency. When not reviewing software, Alex contributes to open-source projects and writes technical tutorials for the developer community.",
      "knowsAbout": [
        "Code Editors & IDEs",
        "Terminal Emulators",
        "Version Control Tools",
        "DevOps & CI/CD",
        "API Development",
        "Performance Benchmarking"
      ],
      "image": "https://bundl.run/authors/alex-chen.svg"
    },
    {
      "@type": "BreadcrumbList",
      "@id": "https://bundl.run/apps/gcloud-cli#breadcrumb",
      "itemListElement": [
        {
          "@type": "ListItem",
          "position": 1,
          "name": "Home",
          "item": "https://bundl.run"
        },
        {
          "@type": "ListItem",
          "position": 2,
          "name": "Apps",
          "item": "https://bundl.run/apps"
        },
        {
          "@type": "ListItem",
          "position": 3,
          "name": "Google Cloud CLI",
          "item": "https://bundl.run/apps/gcloud-cli"
        }
      ]
    },
    {
      "@type": "WebPage",
      "@id": "https://bundl.run/apps/gcloud-cli",
      "url": "https://bundl.run/apps/gcloud-cli",
      "name": "Google Cloud CLI for Mac",
      "description": "Command-line tools for managing Google Cloud resources",
      "isPartOf": {
        "@id": "https://bundl.run/#website"
      },
      "publisher": {
        "@id": "https://bundl.run/#organization"
      },
      "inLanguage": "en-US",
      "datePublished": "2026-01-01T00:00:00Z",
      "dateModified": "2026-08-10T13:34:04.000Z",
      "author": {
        "@id": "https://bundl.run/authors/alex-chen#person"
      },
      "mainEntity": {
        "@id": "https://bundl.run/apps/gcloud-cli#software"
      },
      "breadcrumb": {
        "@id": "https://bundl.run/apps/gcloud-cli#breadcrumb"
      }
    },
    {
      "@type": "SoftwareApplication",
      "@id": "https://bundl.run/apps/gcloud-cli#software",
      "name": "Google Cloud CLI",
      "description": "Command-line tools for managing Google Cloud resources",
      "applicationCategory": "DeveloperApplication",
      "operatingSystem": "macOS",
      "url": "https://bundl.run/apps/gcloud-cli",
      "image": {
        "@type": "ImageObject",
        "url": "https://img.logo.dev/cloud.google.com?token=pk_fPJIhKDVRze355DoWUdqqg",
        "caption": "Google Cloud CLI app icon for Mac"
      },
      "sameAs": [
        "https://cloud.google.com/cli",
        "https://formulae.brew.sh/cask/gcloud-cli"
      ],
      "review": {
        "@type": "Review",
        "author": {
          "@id": "https://bundl.run/authors/alex-chen#person"
        },
        "reviewBody": "Google Cloud CLI (gcloud) is the command-line control plane for Google Cloud Platform, and it fits Mac-based DevOps engineers, SREs, and cloud developers who script infrastructure instead of clicking through the Console. gcloud is free to download and install, and the current release is 593.0.0, shipped 2026-11-10. A steep learning curve comes with the sheer volume of commands and flags, so developers who rarely touch cloud infrastructure can skip gcloud and use the Google Cloud Console instead. gcloud turns cloud management from console clicks into a disciplined, scriptable engineering practice. Excellent Apple Silicon support and deep integration with tools like Docker and Kubernetes make gcloud a fast, reliable CLI on a Mac."
      },
      "about": {
        "@type": "Thing",
        "name": "Google Cloud CLI",
        "description": "Command-line tools for managing Google Cloud resources"
      },
      "isPartOf": {
        "@id": "https://bundl.run/#website"
      }
    },
    {
      "@type": "Article",
      "@id": "https://bundl.run/apps/gcloud-cli#article",
      "headline": "Google Cloud CLI for Mac — Full Review & Installation Guide 2026",
      "description": "Google Cloud CLI (gcloud) is the command-line control plane for Google Cloud Platform, and it fits Mac-based DevOps engineers, SREs, and cloud developers who script infrastructure instead of clicking through the Console. gcloud is free to download and install, and the current release is 593.0.0, shipped 2026-11-10. A steep learning curve comes with the sheer volume of commands and flags, so developers who rarely touch cloud infrastructure can skip gcloud and use the Google Cloud Console instead. gcloud turns cloud management from console clicks into a disciplined, scriptable engineering practice. Excellent Apple Silicon support and deep integration with tools like Docker and Kubernetes make gcloud a fast, reliable CLI on a Mac.",
      "image": "https://img.logo.dev/cloud.google.com?token=pk_fPJIhKDVRze355DoWUdqqg",
      "author": {
        "@id": "https://bundl.run/authors/alex-chen#person"
      },
      "publisher": {
        "@id": "https://bundl.run/#organization"
      },
      "datePublished": "2026-01-01T00:00:00Z",
      "dateModified": "2026-08-10T13:34:04.000Z",
      "mainEntityOfPage": {
        "@type": "WebPage",
        "@id": "https://bundl.run/apps/gcloud-cli"
      },
      "articleSection": "DeveloperApplication",
      "speakable": {
        "@type": "SpeakableSpecification",
        "cssSelector": [
          "h1",
          ".key-facts"
        ]
      },
      "about": {
        "@type": "SoftwareApplication",
        "name": "Google Cloud CLI",
        "url": "https://bundl.run/apps/gcloud-cli"
      }
    },
    {
      "@type": "FAQPage",
      "@id": "https://bundl.run/apps/gcloud-cli#faq",
      "mainEntity": [
        {
          "@type": "Question",
          "name": "Can I manage multiple Google accounts with gcloud?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Yes, absolutely. You can use `gcloud auth login` multiple times to authenticate different accounts. Use `gcloud config configurations` to create separate profiles (e.g., 'personal' vs 'work') and switch between them. Each configuration stores its own account, project, and region settings."
          }
        },
        {
          "@type": "Question",
          "name": "Does gcloud work natively on Apple Silicon Macs?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Yes. As of 2026, the Google Cloud SDK ships with bundled Python components that run natively on ARM64 architecture (M1, M2, etc.). You do not need Rosetta 2 for the core CLI functionality, so startup and execution stay fast."
          }
        },
        {
          "@type": "Question",
          "name": "How do I update the gcloud CLI components?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "If you installed via the standard script or archive, run `gcloud components update`. If you installed via Homebrew, you should strictly use `brew upgrade --cask gcloud-cli` (the cask was previously named `google-cloud-sdk`) to avoid conflicts between Homebrew's file management and the SDK's internal updater."
          }
        },
        {
          "@type": "Question",
          "name": "Is gcloud the same as kubectl?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "No. `gcloud` manages Google Cloud resources (like creating the Kubernetes cluster itself). `kubectl` manages the applications *inside* the Kubernetes cluster. However, `gcloud` is required to authenticate `kubectl` against GKE clusters using the `gcloud container clusters get-credentials` command."
          }
        },
        {
          "@type": "Question",
          "name": "How can I see exactly what API calls gcloud is making?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "You can append the `--log-http` flag to any command. This prints the headers, payloads, and responses of the REST API calls happening in the background. gcloud's `--log-http` flag is useful for debugging permission errors or understanding the underlying API."
          }
        },
        {
          "@type": "Question",
          "name": "Can I use gcloud to back up my data?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Yes, primarily via the `gcloud storage` (formerly gsutil) commands. You can script solid backup workflows to sync local directories to Cloud Storage buckets using commands like `gcloud storage rsync -r local_dir gs://my-bucket`."
          }
        },
        {
          "@type": "Question",
          "name": "What happens if I uninstall gcloud?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Uninstalling the tool removes the binaries but usually leaves your configuration folder at `~/.config/gcloud`. This preserves your credentials and settings. If you reinstall later, your profiles will likely still be available unless you manually delete that directory."
          }
        },
        {
          "@type": "Question",
          "name": "Do I need Python installed to use gcloud?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "The gcloud SDK comes with its own bundled Python interpreter to ensure compatibility and stability. You generally do not need to manage a system Python version for gcloud to work, preventing 'dependency hell' with your other Python projects."
          }
        },
        {
          "@type": "Question",
          "name": "Does the gcloud CLI support Python 3.15?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Yes. Since version 587.0.0 (2026-09-29), the CLI supports Python 3.15. The SDK still ships its own bundled Python interpreter so gcloud remains stable regardless of your local Python setup; from 593.0.0 (2026-11-10) the bundled Python is a required component on Windows x86 and x86_64. On macOS, the install page lists a 64-bit ARM64 (Apple silicon) archive, so the CLI runs natively on M-series Macs."
          }
        },
        {
          "@type": "Question",
          "name": "Why does `gcloud components update` exit immediately on my Mac?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Versions 590.0.0 and 590.0.1 of the CLI had a bug where `gcloud components update` on macOS exited immediately instead of updating. This was fixed in 591.0.0, released 2026-10-27, and the current release (593.0.0, as of November 2026) updates normally. If you installed via the Homebrew cask and are stuck on an affected version, update with `brew upgrade --cask gcloud-cli`."
          }
        },
        {
          "@type": "Question",
          "name": "Can I install the gcloud CLI with Homebrew?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Yes, `brew install --cask gcloud-cli` installs the Google Cloud CLI. The Google Cloud CLI's Homebrew cask is named `gcloud-cli` (formerly `google-cloud-sdk`) and ships release 593.0.0 as of November 2026. Run `gcloud init` after installing to authenticate and select a default project. Update later with `brew upgrade --cask gcloud-cli` to avoid conflicts with the SDK's internal updater."
          }
        }
      ],
      "isPartOf": {
        "@id": "https://bundl.run/apps/gcloud-cli"
      }
    }
  ]
}
```