shfmt

Install command:
brew install shfmt

Autoformat shell script source code

https://github.com/mvdan/sh

License: BSD-3-Clause

Formula JSON API: /api/formula/shfmt.json

Formula code: shfmt.rb on GitHub

Bottle (binary package) installation support provided for:

macOS on
Apple Silicon
tahoe
sequoia
sonoma
ventura
macOS on
Intel
sonoma
ventura
Linux ARM64
x86_64

Current versions:

stable 3.12.0
head ⚡️ HEAD

Depends on when building from source:

go 1.25.4 Open source programming language to build simple/reliable/efficient software
scdoc 1.11.4 Small man page generator

Analytics:

Installs (30 days)
shfmt 2,968
shfmt --HEAD 3
Installs on Request (30 days)
shfmt 2,961
shfmt --HEAD 3
Build Errors (30 days)
shfmt 0
Installs (90 days)
shfmt 9,210
shfmt --HEAD 13
Installs on Request (90 days)
shfmt 9,186
shfmt --HEAD 13
Installs (365 days)
shfmt 42,700
shfmt --HEAD 47
Installs on Request (365 days)
shfmt 42,476
shfmt --HEAD 47