macOS
brew install shfmtlocal Homebrew formula metadata
sudo port install shfmtMacPorts ports tree · devel/shfmt/Portfile · source: api.github.com
brew
Autoformat shell script source code. Version 3.13.1 via Homebrew; verified from local package data.
install
brew install shfmtlocal Homebrew formula metadata
sudo port install shfmtMacPorts ports tree · devel/shfmt/Portfile · source: api.github.com
sudo apk add shfmtAlpine Linux edge package indexes · shfmt · source: dl-cdn.alpinelinux.org
sudo apt install shfmtDebian stable package indexes · shfmt · source: deb.debian.org
nix profile install nixpkgs#shfmtnixpkgs package indexes · pkgs/by-name/sh/shfmt/package.nix · source: api.github.com
sudo pacman -S shfmtArch Linux sync databases · shfmt · source: geo.mirror.pkgbuild.com
sudo zypper install shfmtopenSUSE Tumbleweed package metadata · shfmt · source: download.opensuse.org
scoop install main/shfmtScoop official bucket manifest trees · bucket/shfmt.json · source: api.github.com
winget install --id mvdan.shfmt -eWindows Package Manager source index · mvdan.shfmt · source: cdn.winget.microsoft.com
overview
Autoformat shell script source code
security posture
generalized runtime or code generation signal.
yellow risk · medium confidence · runtime
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
local files
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.
Config paths the tool may read or write during local use.
<project-root>/.editorconfigexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
shfmt | cli | global executable |
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.
install metadata
| Package key | brew:shfmt |
|---|---|
| Version | 3.13.1 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/shfmt |
| Homepage | https://github.com/mvdan/sh |
| Repository | https://github.com/mvdan/sh |
| Upstream docs | https://github.com/mvdan/sh |
| License | BSD-3-Clause |
| Source archive | https://github.com/mvdan/sh/archive/refs/tags/v3.13.1.tar.gz |
| Build dependencies | go, scdoc |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | shfmt |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
shfmt 3.8.0-1+b8
format shell programs
sudo apt install shfmtshfmt
nix profile install nixpkgs#shfmtshfmt 3.8.0-1
format shell programs
sudo apt install shfmtshfmt 3.13.1-r1
A shell parser, formatter, and interpreter (sh/bash/mksh)
sudo apk add shfmtshfmt-doc 3.13.1-r1
A shell parser, formatter, and interpreter (sh/bash/mksh) (documentation)
sudo apk add shfmt-docshfmt 3.13.1-1
Format shell programs
sudo pacman -S shfmtshfmt 3.12.0-1.4
A shell formatter with bash support
sudo zypper install shfmtshfmt
sudo port install shfmtmain/shfmt
scoop install main/shfmtmvdan.shfmt
winget install --id mvdan.shfmt -esource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.