# Install cbfmt with Homebrew, Nix

Format codeblocks inside markdown and org documents. Version 0.2.0 via Homebrew; verified from local package data. Also installable with nix: nix profile install nixpkgs#cbfmt.

## 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
- **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>
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- cbfmt (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 0.2.0
## 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
## 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


## Combined YAML source

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


## Sources

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
