macOS
brew install shfmtlocal Homebrew formula metadata
sudo port install shfmtMacPorts ports tree · devel/shfmt/Portfile · Source: api.github.com
brew / rang 558
Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de shfmt pour les workflows d'agents IA.
installation
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
aperçu
Autoformat shell script source code
historique
shfmt is the command-line formatter supplied by the mvdan/sh Go project. It parses and rewrites shell source using a consistent style and supports POSIX shell, Bash, mksh, and zsh-oriented syntax.
shfmt is developed within Daniel Martí's mvdan/sh project, a Go implementation of shell parsing, formatting, and interpretation. Version 3 documentation is published under the mvdan.cc/sh/v3 module path.
The project has also supported JavaScript-facing integrations. Its README records that the older mvdan-sh package was archived in favor of the third-party sh-syntax WASM package.
The official README lists packaging across Alpine, Arch, Debian, Fedora, FreeBSD, Homebrew, MacPorts, NixOS, OpenSUSE, Scoop, Snapcraft, Void, and webi, plus release images on Docker. This unusually broad distribution makes shfmt readily available in developer workstations and CI systems.
Typical use is `shfmt -l -w script.sh` to list and rewrite shell files. Formatting behavior can be supplied through a project `.editorconfig`, making the tool suitable for editor hooks, pre-commit checks, and CI formatting gates.
The official project also publishes container images, allowing formatting without installing a host binary.
shfmt is the shell ecosystem's prominent opinionated formatter. Package enthusiasts value its broad package-manager coverage, single Go binary, EditorConfig support, and applicability to POSIX shell, Bash, mksh, and related dialects.
posture de sécurité
generalized runtime or code generation signal.
risque yellow · confiance moyen · runtime
Avant une utilisation sans surveillance par un agent, vérifiez si l'outil lit des identifiants en clair, écrit un état distant, publie des artefacts ou lance des 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>/.editorconfigexécutables
| Commande | Type | Exposition | Note |
|---|---|---|---|
shfmt | cli | exécutable global |
fraîcheur
Ces signaux séparent l'âge de génération de la page, l'activité du gestionnaire de paquets et la comparaison avec les versions amont. Un retard de version n'est signalé que lorsqu'une URL de preuve et des versions comparables sont présentes.
métadonnées d'installation
| Clé du paquet | brew:shfmt |
|---|---|
| Version | 3.14.1 |
| Gestionnaire de paquets | Homebrew |
| Page du gestionnaire de paquets | https://formulae.brew.sh/formula/shfmt |
| Page d'accueil | https://github.com/mvdan/sh |
| Dépôt | https://github.com/mvdan/sh |
| Licence | BSD-3-Clause |
| Archive source | https://github.com/mvdan/sh/archive/refs/tags/v3.14.0.tar.gz |
| Dernière mise à jour | 2026-09-13T13:33:22+02:00 |
| Pulse | updated |
| Dépendances de compilation | go, scdoc |
| Bouteille | disponible (sur arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, x86_64_linux) |
| post-install Homebrew | non défini |
| Service | aucun déclaré |
faits du registre
| 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 |
|
correspondances dans les bases sources
Les correspondances proviennent d’index externes de gestionnaires de paquets et restent séparées des liens de paquets Automic Vault locaux.
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-r2
A shell parser, formatter, and interpreter (sh/bash/mksh)
sudo apk add shfmtshfmt-doc 3.13.1-r2
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.7
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 -episte source
Cette page est servie par av-web depuis l'artéfact SQLite privé des paquets généré par scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.