Command-line tool
shellcheck
brew/shellcheck
Checked 25 Oct 2026, 21:11 UTC · Still published on npm
Static analysis and lint tool, for (ba)sh scripts bash sh shell shellcheck developer-tools cli portable static-analysis devops-tools linter haskell
At a glance
- Type
- Command-line tool
- Install on
- Windows, macOS, Linux
- Last checked
- 25 Oct 2026, 21:11 UTC
Install it
Windows
npm install -g shellcheck winget install --id koalaman.shellcheck -e scoop install shellcheck
macOS
brew install shellcheck npm install -g shellcheck
Linux
brew install shellcheck npm install -g shellcheck
Check a shell script
shellcheck path/to/script.sh
Check a shell script interpreting it as the specified shell dialect (overrides the shebang at the top of the script)
shellcheck -s sh path/to/script.sh
Ignore one or more error types
shellcheck -e SC1009,SC1073,... path/to/script.sh
Related command-line tools
- bash
Bourne-Again SHell, a UNIX command interpreter - dropbox-uploader
Bash script for interacting with Dropbox - bashka
Static verification of installation bash scripts - hadolint
Smarter Dockerfile linter to validate best practices docker cli portable static-analysis devops-tools linter haskell… - murex
Bash-like shell designed for greater command-line productivity and safer scripts - zsh
UNIX shell (command interpreter) - dash-shell
POSIX-compliant descendant of NetBSD's ash (the Almquist SHell) - ksh93
KornShell, ksh93
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents