# gcloud

> For the complete documentation index, see [llms.txt](https://docs.ringleader.dev/llms.txt).


> The Google Cloud CLI, from Google's official apt repository.


Installs the Google Cloud CLI (`gcloud`).

```yaml
devtools:
  - name: gcloud
```

The `version` field is not used by this recipe.

## Updates

The Google Cloud CLI comes from Google's package repository, so it moves with the
[operating system updates](https://docs.ringleader.dev/reference/tools/devtools/#operating-system-updates) the workstation applies.

## Purpose

Declares Google's Cloud SDK apt repository and its signing key, then installs the
`google-cloud-cli` package through the normal repository and package phases.

<div class="callout callout-warning">
  <p class="callout-title">Debian and Ubuntu only</p>
  <div class="callout-body">
    There is no musl build of the Google Cloud CLI. On Alpine this devtool fails with an
explicit message.
  </div>
</div>


## Example

A cloud-operations workstation with all three vendor CLIs and browser-relayed logins:

```yaml
devtools:
  - name: gcloud
  - name: aws
  - name: az
  - name: passthrough-www-browser
defaultLocalBinding:
  enabled: true
  urlForward:
    enabled: true
```

`gcloud auth login` inside the workstation then opens its consent URL in your computer's
browser.

## Notes

- The repository is added declaratively, so it interleaves with your own
  `packageRepositories` and `packages` and the index is refreshed once.
- Authenticating `gcloud` is a runtime step inside the workstation; Ringleader does not inject
  cloud credentials into a workstation.

