# cfn-format を Homebrew でインストール

cfn-format のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

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

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install cfn-format
```

  証拠: local Homebrew formula metadata

## パッケージ情報

- **パッケージキー:** brew:cfn-format
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/cfn-format>
- **バージョン:** 1.24.4
- **ソース概要:** Command-line tool for formatting AWS CloudFormation templates
- **ホームページ:** <https://github.com/aws-cloudformation/rain>
- **リポジトリ:** <https://github.com/aws-cloudformation/rain>
- **ライセンス:** Apache-2.0
- **ソースアーカイブ:** <https://github.com/aws-cloudformation/rain/archive/refs/tags/v1.24.4.tar.gz>
- **最終更新:** 2026-07-25T14:20:49-04:00
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- cfn-format (cli)
- cfn-format (エイリアス)

## ビルド依存関係

- go

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 1.24.4
- マネージャ更新日: 2026-07-25
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/aws-cloudformation/rain
- 検出された最新: v1.24.4 (最新)
## プロジェクトの歴史と使われ方

cfn-format is the Homebrew-packaged command built from the AWS CloudFormation rain repository's `cmd/cfn-format`, focused on checking and formatting AWS CloudFormation templates.

### プロジェクトの歴史

The upstream rain repository was created in 2019 and describes rain as a development workflow tool for AWS CloudFormation templates and stacks. Its README lists consistent formatting of CloudFormation templates as a key feature of `rain fmt`, including JSON/YAML conversion and YAML comment preservation.

### 採用の歴史

Homebrew packages `cfn-format` separately from rain, building the `./cmd/cfn-format` target from the rain source repository. This gives package users a narrower formatter binary without installing the broader rain workflow CLI name.

### 使われ方

The Homebrew formula test runs `cfn-format -v test.template` and expects a formatted-ok message. The rain README documents the broader formatter behavior under `rain fmt`.

### パッケージ好きにとっての重要性

cfn-format is package-nerd-interesting because it exposes one subcommand-sized slice of a larger CloudFormation workflow tool as its own formula, the kind of tiny binary split that helps scripts depend on exactly the formatter they need.

### タイムライン

- 2019: rain GitHub repository metadata records public repository creation.
- 2019: GitHub release metadata records rain v0.1.0.
- 2026: Homebrew formula builds cfn-format from rain v1.24.4.

### Related projects

- rain is the upstream project and broader CloudFormation workflow CLI.
- cfn-flip is the older AWS Labs converter whose CLI usage now points users to `rain fmt`.

### ソース

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


## セキュリティノート

infrastructure mutation or orchestration signal.

- **Geiger リスク:** orange / 中
- infrastructure mutation or orchestration signal

## ソースデータベース詳細

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** cfn-format
- **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


## 関連リンク

- [Cloud CLI packages](https://pkg.so/ja/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Source-control packages](https://pkg.so/ja/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://pkg.so/ja/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [go](https://pkg.so/ja/brew/go/) - Build dependency declared by Homebrew.
- [rain](https://pkg.so/ja/brew/rain/) - Shares the same upstream source repository.
- [aws-console](https://pkg.so/ja/brew/aws-console/) - Shares the same upstream source repository.
- [cfn-flip](https://pkg.so/ja/brew/cfn-flip/) - Shares pkgdb curated category or tags: aws, cli, cloud-infrastructure, cloudformation.
- [cfn-lint](https://pkg.so/ja/brew/cfn-lint/) - Shares pkgdb curated category or tags: aws, cli, cloud-infrastructure, cloudformation, infrastructure-as-code.
- [aws-cdk](https://pkg.so/ja/brew/aws-cdk/) - Shares pkgdb curated category or tags: aws, cli, cloud-infrastructure, cloudformation, infrastructure-as-code.
- [cloudformation-cli](https://pkg.so/ja/brew/cloudformation-cli/) - Shares pkgdb curated category or tags: aws, cli, cloud-infrastructure, cloudformation, infrastructure-as-code.
- [cf2tf](https://pkg.so/ja/brew/cf2tf/) - Shares pkgdb curated category or tags: aws, cli, cloud-infrastructure, cloudformation, infrastructure-as-code.
- [sceptre](https://pkg.so/ja/brew/sceptre/) - Shares pkgdb curated category or tags: aws, cli, cloud-infrastructure, cloudformation, infrastructure-as-code.
- [org-formation](https://pkg.so/ja/brew/org-formation/) - Shares pkgdb curated category or tags: aws, cli, cloud-infrastructure, cloudformation, infrastructure-as-code.

## Combined YAML source

View the package source record on GitHub. [combined/cfn-format.yml](https://github.com/mxcl/pkgdb/blob/main/combined/cfn-format.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
