# 使用 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
- **版本:** 2.24.1
- **来源摘要:** Utility for connecting securely to your Cloud SQL instances
- **主页:** <https://github.com/GoogleCloudPlatform/cloud-sql-proxy>
- **仓库:** <https://github.com/GoogleCloudPlatform/cloud-sql-proxy>
- **最后更新:** 2026-07-25T14:20:50-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- cloud-sql-proxy (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 2.24.1
## 项目历史与用法

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

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

- 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


## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
