# 使用 Homebrew 安装 cfn-flip

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

## 安装

```sh
sudo av install brew:cfn-flip
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install cfn-flip
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:cfn-flip
- **软件包管理器:** Homebrew
- **版本:** 1.3.0
- **来源摘要:** Convert AWS CloudFormation templates between JSON and YAML formats
- **主页:** <https://github.com/awslabs/aws-cfn-template-flip>
- **最后更新:** 2026-07-17T18:27:49+09:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- cfn-flip (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

AWS CloudFormation Template Flip is an AWS Labs Python tool and library for converting CloudFormation templates between JSON and YAML while using short-form YAML intrinsic-function syntax where possible.

### 项目历史

The official README explains the name as an homage to the Unix `flip` utility and documents both the `cfn-flip` command and the `cfn_flip` Python package API. The repository metadata records the public repo creation in 2016.

### 采用历史

The project is packaged for Homebrew as `cfn-flip` and distributed as a Python package. Its README now deprecates CLI usage in favor of `rain fmt`, while explicitly saying the Python API may continue to be used.

### 使用方式

The documented CLI reads from stdin or files and converts JSON to YAML or YAML to JSON. The Python API exposes `flip`, `to_yaml`, and `to_json` for applications that need CloudFormation template serialization.

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

cfn-flip is significant because it solved a very specific packaging annoyance: CloudFormation users wanted a reliable converter that preserved AWS intrinsic-function syntax instead of treating templates as generic JSON/YAML.

### 时间线

- 2016: GitHub repository metadata records public repository creation.
- 2021: GitHub release metadata records cfn_flip 1.3.0.
- Current README: CLI usage is deprecated in favor of `rain fmt`; package API remains available.

### Related projects

- rain is the recommended replacement for CLI formatting and conversion.
- cf2tf acknowledges cfn-flip as a parser used when converting CloudFormation templates.

### 来源

- <https://api.github.com/repos/awslabs/aws-cfn-template-flip>
- <https://github.com/awslabs/aws-cfn-template-flip>
- <https://aws-cloudformation.github.io/rain/rain_fmt.html>
- <https://github.com/awslabs/aws-cfn-template-flip#readme>
- <https://formulae.brew.sh/api/formula/cfn-flip.json>


## 安全说明

infrastructure mutation or orchestration signal.

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


## Combined YAML source

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


## 来源

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