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
sequoia
sonoma
ventura
macOS on
Intel
sonoma
ventura
Linux ARM64
x86_64

Current versions:

stable 3.11.0
head ⚡️ HEAD

Depends on when building from source:

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

Analytics:

Installs (30 days)
shfmt 4,009
shfmt --HEAD 2
Installs on Request (30 days)
shfmt 4,001
shfmt --HEAD 2
Build Errors (30 days)
shfmt 8
Installs (90 days)
shfmt 12,754
shfmt --HEAD 9
Installs on Request (90 days)
shfmt 12,706
shfmt --HEAD 9
Installs (365 days)
shfmt 46,211
shfmt --HEAD 46
Installs on Request (365 days)
shfmt 45,910
shfmt --HEAD 46
Fork me on GitHub