# Install cbfmt with Homebrew, Nix

Format codeblocks inside markdown and org documents. Version 0.2.0 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:cbfmt
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install cbfmt
```

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#cbfmt
```

  Evidence: nixpkgs package indexes: pkgs/by-name/cb/cbfmt/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:cbfmt
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/cbfmt>
- **Version:** 0.2.0
- **Source summary:** Format codeblocks inside markdown and org documents
- **Homepage:** <https://github.com/lukas-reineke/cbfmt>
- **Repository:** <https://github.com/lukas-reineke/cbfmt>
- **Upstream docs:** <https://github.com/lukas-reineke/cbfmt#readme>
- **License:** MIT
- **Source archive:** <https://github.com/lukas-reineke/cbfmt/archive/refs/tags/v0.2.0.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- cbfmt (cli)
- cbfmt (alias)

## Build dependencies

- rust

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.2.0
- Local data: ok
- Upstream repository: https://github.com/lukas-reineke/cbfmt
- Upstream latest detected: v0.2.0 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

cbfmt is a Rust command-line formatter driver for code blocks inside Markdown, Org, and reStructuredText documents.

### Project history

The official repository was created in July 2022. Its README defines cbfmt as a tool that iterates over document code blocks and runs configured formatting commands for each block language.

### Adoption history

The supplied package metadata shows cbfmt available through Homebrew and Nix. GitHub Releases published the v0.2.0 release on August 31, 2022.

### How it is used

A `.cbfmt.toml` file maps code block languages to formatter commands that read stdin and write stdout. Users can check or rewrite files, process directories recursively, or read a document from stdin.

### Why package nerds care

cbfmt is package-nerd-relevant because it composes existing language formatters instead of replacing them, giving documentation projects a small CLI for keeping embedded examples formatted.

### Timeline

- 2022: The official GitHub repository was created.
- 2022: v0.1.x and v0.2.0 releases were published.
- 2023: The official repository metadata records later maintenance activity.

### Related projects

- rustfmt, gofmt, stylua, and black are example formatter commands shown in the official configuration example.
- Markdown, Org, and reStructuredText are the document formats named by the official README.

### Sources

- <https://api.github.com/repos/lukas-reineke/cbfmt>
- <https://api.github.com/repos/lukas-reineke/cbfmt/releases>
- <https://github.com/lukas-reineke/cbfmt#readme>
- source_facts.package-manager


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals


## 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: .cbfmt.toml
## Source Database Details

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

## Other Package-Manager Records

- Nix - cbfmt: normalized package name match | nixpkgs package indexes: pkgs/by-name/cb/cbfmt/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [rust](https://www.automicvault.com/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [prettier](https://www.automicvault.com/pkg/brew/prettier/) - Shares av.db curated category or tags: cli, code-formatting, developer-tools, formatter, markdown.
- [air](https://www.automicvault.com/pkg/brew/air/) - Shares av.db curated category or tags: cli, code-formatting, developer-tools, formatter.
- [alejandra](https://www.automicvault.com/pkg/brew/alejandra/) - Shares av.db curated category or tags: cli, code-formatting, developer-tools, formatter.
- [astyle](https://www.automicvault.com/pkg/brew/astyle/) - Shares av.db curated category or tags: cli, code-formatting, developer-tools, formatter.
- [black](https://www.automicvault.com/pkg/brew/black/) - Shares av.db curated category or tags: cli, code-formatting, developer-tools, formatter.
- [darker](https://www.automicvault.com/pkg/brew/darker/) - Shares av.db curated category or tags: cli, code-formatting, developer-tools, formatter.
- [djhtml](https://www.automicvault.com/pkg/brew/djhtml/) - Shares av.db curated category or tags: cli, code-formatting, developer-tools, formatter.
- [findent](https://www.automicvault.com/pkg/brew/findent/) - Shares av.db curated category or tags: cli, code-formatting, developer-tools, formatter.
- [google-java-format](https://www.automicvault.com/pkg/brew/google-java-format/) - Local package facts share a topical domain. Shared terms: cli, code, code-formatting, developer, developer-tools.
- [swift-format](https://www.automicvault.com/pkg/brew/swift-format/) - Local package facts share a topical domain. Shared terms: cli, code, code-formatting, developer, developer-tools.

## Combined YAML source

View the package source record on GitHub. [combined/cbfmt.yml](https://github.com/automic-vault/db/blob/main/combined/cbfmt.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
