# 使用 Homebrew, scoop 安装 cloud-sql-proxy

查看 cloud-sql-proxy 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:cloud-sql-proxy
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install cloud-sql-proxy
```

  证据: local Homebrew formula metadata

### Windows

- Scoop (92%):

```sh
scoop install main/cloud-sql-proxy
```

  证据: Scoop official bucket manifest trees: bucket/cloud-sql-proxy.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:cloud-sql-proxy
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/cloud-sql-proxy>
- **版本:** 2.23.0
- **来源摘要:** Utility for connecting securely to your Cloud SQL instances
- **主页:** <https://github.com/GoogleCloudPlatform/cloud-sql-proxy>
- **仓库:** <https://github.com/GoogleCloudPlatform/cloud-sql-proxy>
- **上游文档:** <https://docs.cloud.google.com/sql/docs/postgres/sql-proxy>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/GoogleCloudPlatform/cloud-sql-proxy/archive/refs/tags/v2.23.0.tar.gz>
- **最后更新:** 2026-06-26T15:03:55Z
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

- cloud-sql-proxy (cli)
- cloud-sql-proxy (别名)

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 2.23.0
- 管理器更新时间: 2026-06-26
- 本地数据: OK
- 上游仓库: https://github.com/GoogleCloudPlatform/cloud-sql-proxy
- 检测到的最新版本: v2.23.0 (当前)
## 项目历史与用法

Cloud SQL Auth Proxy is Google's CLI for making secure local or sidecar connections to Cloud SQL instances. It is historically important because it packages Google Cloud database connectivity, IAM authorization, and TLS handling into a standalone executable used across local development, VMs, containers, and Kubernetes-style deployments.

### 项目历史

The GoogleCloudPlatform/cloud-sql-proxy repository was created in 2015 and remains the official upstream for the Cloud SQL Auth Proxy. The README describes it as a utility for secure Cloud SQL connections with IAM authorization and TLS 1.3 encryption, avoiding manual certificate management.

The v2 migration guide documents a major CLI evolution from the old `cloud_sql_proxy` executable to `cloud-sql-proxy`, with more explicit flags, environment-variable support, a new container image name, and changed connection behavior.

### 采用历史

Official docs distribute platform-specific binaries through Google storage, document `go install`, and point to GitHub releases. The input package-manager facts show Homebrew and Scoop packaging, reflecting common workstation installation patterns.

The README positions language-specific Cloud SQL connectors for Go, Java, Python, and Node.js as alternatives when users prefer in-process connectivity, so the proxy sits beside a broader connector ecosystem rather than replacing it.

### 使用方式

Users run the proxy with one or more Cloud SQL instance connection names, optionally choosing TCP ports, Unix sockets, private IP behavior, IAM database authentication, metrics, health checks, service-account impersonation, or a credentials-file flag.

The proxy obtains credentials through Google Application Default Credentials by default, and can also take an OAuth token or service-account key file path supplied by the user.

### 为什么软件包爱好者会关心

For package nerds, Cloud SQL Auth Proxy is a classic cloud vendor CLI where binary naming, major-version migration, install channel, and authentication defaults all matter. The v1-to-v2 executable rename is exactly the sort of detail package formulas and scripts must track.

It is also significant because the same package has to serve developer laptops, CI jobs, VM agents, and container images while remaining aligned with Google Cloud IAM and Cloud SQL behavior.

### 时间线

- 2015: GoogleCloudPlatform/cloud-sql-proxy GitHub repository metadata was created.
- v2: Migration guide documents the rename from cloud_sql_proxy to cloud-sql-proxy and the new container image name.
- v2.17.1: README records signed Windows binaries starting with this version.

### Related projects

- Cloud SQL Go, Java, Python, and Node.js connectors are official related projects named by the README.
- Google Cloud SDK and Application Default Credentials provide the usual authentication environment.
- The older v1 Cloud SQL proxy behavior is documented through the upstream migration guide.

### 来源

- <https://github.com/GoogleCloudPlatform/cloud-sql-proxy#readme>
- <https://github.com/GoogleCloudPlatform/cloud-sql-proxy/blob/main/migration-guide.md>
- <https://docs.cloud.google.com/sql/docs/postgres/sql-proxy>


## 安全说明

broad file, network, media, or database tool signal. infrastructure mutation or orchestration signal.

- **Geiger 风险:** orange / 中
- broad file, network, media, or database tool signal
- infrastructure mutation or orchestration signal

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** cloud-sql-proxy
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## 其他软件包管理器记录

- Scoop - main/cloud-sql-proxy: normalized package name match | Scoop official bucket manifest trees: bucket/cloud-sql-proxy.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## 相关链接

- [Cloud CLI packages](https://www.automicvault.com/zh-hans/pkg/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://www.automicvault.com/zh-hans/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [go](https://www.automicvault.com/zh-hans/pkg/brew/go/) - Build dependency declared by Homebrew.
- [pscale](https://www.automicvault.com/zh-hans/pkg/brew/pscale/) - Shares av.db curated category or tags: cli, cloud-infrastructure, database.
- [gcsfuse](https://www.automicvault.com/zh-hans/pkg/brew/gcsfuse/) - Shares av.db curated category or tags: cli, cloud-infrastructure, google-cloud.
- [terracognita](https://www.automicvault.com/zh-hans/pkg/brew/terracognita/) - Shares av.db curated category or tags: cli, cloud-infrastructure, google-cloud.
- [actions-batch](https://www.automicvault.com/zh-hans/pkg/brew/actions-batch/) - Shares av.db curated category or tags: cli, cloud-infrastructure.
- [aiac](https://www.automicvault.com/zh-hans/pkg/brew/aiac/) - Shares av.db curated category or tags: cli, cloud-infrastructure.
- [aiven-client](https://www.automicvault.com/zh-hans/pkg/brew/aiven-client/) - Shares av.db curated category or tags: cli, cloud-infrastructure, database.
- [akamai](https://www.automicvault.com/zh-hans/pkg/brew/akamai/) - Shares av.db curated category or tags: cli, cloud-infrastructure.
- [aliyun-cli](https://www.automicvault.com/zh-hans/pkg/brew/aliyun-cli/) - Shares av.db curated category or tags: cli, cloud-infrastructure.
- [aws-es-proxy](https://www.automicvault.com/zh-hans/pkg/brew/aws-es-proxy/) - Local package facts share a topical domain. Shared terms: cli, cloud, cloud-infrastructure, infrastructure, proxy.

## Combined YAML source

View the package source record on GitHub. [combined/cloud-sql-proxy.yml](https://github.com/automic-vault/db/blob/main/combined/cloud-sql-proxy.yml)


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
