# 使用 Homebrew 安装 cloudformation-cli

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

## 安装

```sh
sudo av install brew:cloudformation-cli
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install cloudformation-cli
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:cloudformation-cli
- **软件包管理器:** Homebrew
- **版本:** 0.2.39
- **来源摘要:** CloudFormation Provider Development Toolkit
- **主页:** <https://github.com/aws-cloudformation/cloudformation-cli/>
- **仓库:** <https://github.com/aws-cloudformation/cloudformation-cli>
- **最后更新:** 2026-07-10T13:51:18-07:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- cfn (别名)
- cfn-cli (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

AWS CloudFormation CLI is the provider development toolkit for authoring, testing, and registering CloudFormation resource providers and modules. It matters less as an everyday deploy CLI and more as the toolchain behind CloudFormation Registry extension development.

### 项目历史

AWS created the cloudformation-cli repository in 2018 and released early public versions in 2019 as CloudFormation's extension model became public. The official AWS docs position the CLI as the tool used to model, develop, test, and submit resource providers for CloudFormation.

The project sits in the aws-cloudformation GitHub organization alongside language plugins and related extension tooling, reflecting a design where the core CLI coordinates schemas, handlers, contract tests, and registry publication.

### 采用历史

Unlike general-purpose AWS CLIs, CloudFormation CLI is adopted mostly by provider authors, platform teams, and vendors that need first-class CloudFormation resource types. Homebrew packaging gives macOS users a simple install path, but the package is inherently narrower than awscli or cdk.

Its adoption is tied to the CloudFormation Registry ecosystem: as organizations add private or third-party resource types, the cfn/cfn-cli package becomes part of build pipelines for extension development and contract testing.

### 使用方式

Developers use cfn init, generate, test, submit, and related commands to create a provider project, run contract tests, and register or update a resource type or module in CloudFormation.

typeConfiguration.json under ~/.cfn-cli is used by the toolkit for type configuration during contract testing and development workflows. AWS credentials normally come from the broader AWS SDK/CLI credential chain rather than a CloudFormation CLI-specific credential file.

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

cloudformation-cli is package-nerd significant because it exposes AWS's extension-development workflow as a Python CLI in Homebrew. It is not a high-volume shell utility, but it is the canonical local tool for a specialized infrastructure-as-code authoring loop.

The formula also illustrates a common cloud-tooling packaging pattern: a narrow vendor CLI with a small user base but high importance for the teams that need reproducible IaC extension builds.

### 时间线

- 2018: Official cloudformation-cli GitHub repository was created.
- 2019: Early public v0.1.x releases were published as CloudFormation extension tooling emerged.
- 2019: AWS documented the CloudFormation CLI and Registry workflow for provider development.
- 2020s: The CLI continued as the toolkit behind CloudFormation resource provider and module development.

### Related projects

- AWS CloudFormation Registry is the service surface where generated providers and modules are registered.
- Language plugins such as cloudformation-cli-python-plugin and other aws-cloudformation tooling extend the provider-development workflow.
- AWS CDK, SAM, cfn-lint, and CloudFormation Guard are adjacent IaC tools, but they solve different authoring, deployment, validation, or policy problems.

### 来源

- <https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html>
- <https://github.com/aws-cloudformation/cloudformation-cli>


## 安全说明

infrastructure mutation or orchestration signal.

- **Geiger 风险:** orange / 中
- infrastructure mutation or orchestration signal


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ~/.cfn-cli/typeConfiguration.json

## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
