# 使用 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
- **软件包管理器页面:** <https://formulae.brew.sh/formula/cfn-flip>
- **版本:** 1.3.0
- **来源摘要:** Convert AWS CloudFormation templates between JSON and YAML formats
- **主页:** <https://github.com/awslabs/aws-cfn-template-flip>
- **仓库:** <https://github.com/awslabs/aws-cfn-template-flip>
- **许可证:** Apache-2.0
- **源码归档:** <https://files.pythonhosted.org/packages/ca/75/8eba0bb52a6c58e347bc4c839b249d9f42380de93ed12a14eba4355387b4/cfn_flip-1.3.0.tar.gz>
- **最后更新:** 2026-07-17T18:27:49+09:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

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

## 依赖

- libyaml
- python@3.14

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.3.0
- 管理器更新时间: 2026-07-17
- 本地数据: OK
- 上游仓库: https://github.com/awslabs/aws-cfn-template-flip
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

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

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** cfn-flip
- **Version Scheme:** 0
- **Revision:** 3
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** yes
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable


## 相关链接

- [Cloud CLI packages](https://pkg.so/zh-hans/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [python@3.14](https://pkg.so/zh-hans/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [cfn-format](https://pkg.so/zh-hans/brew/cfn-format/) - Shares pkgdb curated category or tags: aws, cli, cloud-infrastructure, cloudformation.
- [cfn-lint](https://pkg.so/zh-hans/brew/cfn-lint/) - Shares pkgdb curated category or tags: aws, cli, cloud-infrastructure, cloudformation.
- [aws-cdk](https://pkg.so/zh-hans/brew/aws-cdk/) - Shares pkgdb curated category or tags: aws, cli, cloud-infrastructure, cloudformation.
- [eksctl](https://pkg.so/zh-hans/brew/eksctl/) - Shares pkgdb curated category or tags: aws, cli, cloud-infrastructure, cloudformation.
- [rain](https://pkg.so/zh-hans/brew/rain/) - Shares pkgdb curated category or tags: aws, cli, cloud-infrastructure, cloudformation.
- [aws-sso-util](https://pkg.so/zh-hans/brew/aws-sso-util/) - Shares pkgdb curated category or tags: aws, cli, cloud-infrastructure, cloudformation.
- [aws-amplify](https://pkg.so/zh-hans/brew/aws-amplify/) - Shares pkgdb curated category or tags: aws, cli, cloud-infrastructure, cloudformation.
- [aws-console](https://pkg.so/zh-hans/brew/aws-console/) - Shares pkgdb curated category or tags: aws, cli, cloud-infrastructure, cloudformation.
- [cf2tf](https://pkg.so/zh-hans/brew/cf2tf/) - Both packages touch the same language runtime or ecosystem. Shared terms: aws, cli, cloud, cloud-infrastructure, cloudformation.

## 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
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
