Submit a product

shfmt

Command-line formatter for shell scripts

ToolWindowsOpen source

shfmt is a command-line tool that rewrites shell scripts into a consistent layout. It is aimed at developers and system administrators who maintain Bash, POSIX sh and related shell scripts and want a formatter they can run from a terminal or a build pipeline.

The source code is public on GitHub and released under the BSD-3-Clause license, so it can be read, reused and modified freely. The facts available describe a Windows build distributed through the winget package manager.

Alternatives to shfmt

Products that do a similar job in Developer Tools.

All alternatives

ShellCheck

Static analysis linter for bash and other shell scripts

ToolDeveloper Tools·Open source·40k·Updated Dec 2026

zx

JavaScript wrapper for writing shell scripts

ToolDeveloper Tools··Open source·46k·Quiet since Oct 2025

autocomplete

Command-line autocomplete for shell commands and options

ToolDeveloper Tools··Open source·25k·Quiet since May 2025

inshellisense

IDE-style autocomplete for the command line

ToolDeveloper Tools··Open source·11k

up

Command-line tool for building Linux pipes with a live preview

ToolDeveloper Tools··Open source·8.9k

fzf

Command-line fuzzy finder for lists of files, history and any text

ToolDeveloper Tools··Open source·85k

lazygit

Terminal UI for running git commands with keyboard shortcuts

ToolDeveloper Tools··Open source·84k

ripgrep

command-line search tool that finds regex matches across directory trees

ToolDeveloper Tools··Open source·71k