treefmt
« Back to VersTracker
Description:
One CLI to format the code tree
Type: Formula  |  Latest Version: 2.4.0@0  |  Tracked Since: Oct 18, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: formatter cli developer-tools code-quality linting
Install: brew install treefmt
About:
treefmt is a unified CLI tool that runs multiple formatters on your codebase in parallel. It acts as a wrapper, allowing you to configure and run any number of formatters (like black, gofmt, or prettier) with a single command. This ensures consistent code style across different languages and tools without needing to manage multiple scripts or commands.
Key Features:
  • Unified CLI for multiple formatters
  • Parallel execution for speed
  • Language-agnostic configuration
  • Git integration for formatting only changed files
Use Cases:
  • Standardizing code style across a multi-language project
  • Integrating into CI/CD pipelines for automated formatting checks
  • Simplifying pre-commit hooks
Alternatives:
  • pre-commit – pre-commit is a broader framework for managing git hooks, while treefmt focuses specifically on running formatters in parallel via a single CLI.
  • lint-staged – lint-staged runs tasks on staged files, whereas treefmt provides a unified interface for formatters across the entire tree or diff.
Version History
Detected Version Rev Change Commit
Oct 18, 2025 6:11pm 0 VERSION_BUMP 0f84ab5f