macOS
brew install cfn-formatlocal Homebrew formula metadata
brew
Command-line tool for formatting AWS CloudFormation templates. Version 1.24.4 via Homebrew; verified 2026-04-23.
install
brew install cfn-formatlocal Homebrew formula metadata
overview
Command-line tool for formatting AWS CloudFormation templates
history
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.
security posture
infrastructure mutation or orchestration signal.
orange risk · medium confidence · infrastructure
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
cfn-format | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/aws-cloudformation/rain
install metadata
| Package key | brew:cfn-format |
|---|---|
| Version | 1.24.4 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/cfn-format |
| Homepage | https://github.com/aws-cloudformation/rain |
| Repository | https://github.com/aws-cloudformation/rain |
| Upstream docs | https://aws-cloudformation.github.io/rain/rain_fmt.html |
| License | Apache-2.0 |
| Source archive | https://github.com/aws-cloudformation/rain/archive/refs/tags/v1.24.4.tar.gz |
| Last updated | 2026-04-23T17:45:52Z |
| Pulse | updated |
| Build dependencies | go |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| 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 |
|
source trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.