Automic VaultAutomic Vault

brew

Install sqlfmt with Homebrew

SQL formatter with width-aware output. Version 0.5.0 via Homebrew; verified 2026-07-04.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install sqlfmt

local Homebrew formula metadata

overview

Package summary

SQL formatter with width-aware output

Commands and aliases

  • sqlfmt

history

Project history and usage

sqlfmt is a command-line SQL formatter focused on width-aware output. In package-manager culture it fits the formatter niche: a small tool installed by name and wired into editor, CI, or pre-commit workflows to make SQL diffs less noisy.

Project history

The public repository describes sqlfmt as a SQL formatter with width-aware output and says its formatting model is based on Philip Wadler's pretty-printing work. The first GitHub release, v0.1.0, was published as an initial binary release in October 2018.

Later releases kept the tool packaged as standalone binaries. Version 0.5.0, published in March 2023, switched to the CockroachDB parser package according to the project's release notes.

Adoption history

Homebrew packages sqlfmt as the `sqlfmt` formula, making it available through the same install path used for other formatter CLIs. GitHub repository metadata also shows a modest open-source audience through stars, forks, and releases.

How it is used

The tool is used as `sqlfmt` to reformat SQL text. Its value is strongest in repositories where SQL lives beside application code and maintainers want predictable wrapping and casing without manually adjusting query text.

Why package nerds care

Package nerds care about sqlfmt because it is a narrowly scoped formatter with prebuilt release artifacts and a Homebrew formula: the classic shape of a small CLI that becomes useful once it is easy to install everywhere.

Timeline

  • 2018: v0.1.0 published as the initial binary release.
  • 2019: v0.4.0 release notes mention adding case-mode support to the CLI.
  • 2023: v0.5.0 release notes mention moving to the CockroachDB parser package.

Related projects

  • The project README cites Wadler-style pretty printing as an influence.
  • The v0.5.0 release notes cite CockroachDB's parser package as the parser dependency.

security posture

Risk level: blue

broad file, network, media, or database tool signal.

Risk classifier

blue risk · medium confidence · tool

Why

  • broad file, network, media, or database tool signal

Signals

  • text:sql

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 10 platform targets.
  • Build metadata lists 1 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
sqlfmtcliglobal executable

freshness

Version and 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.

page generated2026-07-08
manager version0.5.0
manager updated2026-07-04
local dataok
upstreamcurrent
latest detectedv0.5.0

https://github.com/madelynnblue/sqlfmt

  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:sqlfmt
Version0.5.0
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/sqlfmt
Homepagehttps://sqlfum.pt/
Repositoryhttps://github.com/madelynnblue/sqlfmt
Upstream docshttps://sqlfum.pt/about
LicenseApache-2.0
Source archivehttps://github.com/madelynnblue/sqlfmt/archive/refs/tags/v0.5.0.tar.gz
Last updated2026-07-04T16:53:45+09:00
Pulseupdated
Build dependenciesgo
Bottleavailable (on arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, monterey, sonoma, ventura, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namesqlfmt
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • package relationship graph
  • package version freshness
  • package-page enrichment