Command-line tool
sloc
brew/sloc
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
Simple tool to count source lines of code developer-tools cli csharp cloc static-analysis sloc dotnet-tool code-analysis code-metrics lines-of-code source-code-analysis
At a glance
- Type
- Command-line tool
- Install on
- Windows, macOS, Linux
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
Windows
npm install -g sloc winget install --id coldhighsun.sloc -e
macOS
brew install sloc npm install -g sloc
Linux
npm install -g sloc
Related command-line tools
- oxide-sloc
oxide-sloc (Windows package; no description in the winget index) rust developer-tools cli sloc metrics code-analysis… - sloccount
Count lines of code in many languages - scc
Fast and accurate code counter with complexity and COCOMO estimates cli code golang cloc complexity sloc sloccount… - tokei
Program that allows you to count code, quickly rust linux macos windows cli code cloc sloc statistics tokei… - simple-acme
simple-acme (Windows package; no description in the winget index) cross-platform letsencrypt linux free automation cli… - CsMesh
CsMesh (Windows package; no description in the winget index) developer-tools cli csharp claude-code cursor dotnet… - grpc
Next generation open source RPC library and framework - loc
Count lines of code quickly
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents