Command-line tool
sloccount
brew/sloccount
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
Count lines of code in many languages
At a glance
- Type
- Command-line tool
- Install on
- macOS, Linux
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
macOS
brew install sloccount
Linux
brew install sloccount
Related command-line tools
- scc
Fast and accurate code counter with complexity and COCOMO estimates cli code golang cloc complexity sloc sloccount… - cloc
Statistics utility to count lines of code programming-language cloc count-lines - nixfmt
Command-line tool to format Nix language code - loc
Count lines of code quickly - sloc
Simple tool to count source lines of code developer-tools cli csharp cloc static-analysis sloc dotnet-tool… - ctags
Reimplementation of ctags(1) c++ tags c ctags - universal-ctags
Maintained ctags implementation c++ tags c ctags - crystal
Fast and statically typed, compiled language with Ruby-like syntax programming 编程 programming-language language 编程语言 语言
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents