Sloc (Source Lines Of Code) is a .NET global command-line tool for counting lines of source code. It analyzes files individually, distinguishing code lines, comment lines, and blank lines, then aggregates results by programming language.
Publisher’s description
What is sloc?
sloc is an open-source terminals & cli tool program for Windows from coldhighsun. It is written in C#.
Installation and requirements
Official installers exist for 64-bit as Portable. It runs without installation (portable).
Updates and version history
The current version is 4.1.0, released on October 2, 2026. 11 versions are listed since July 15, 2026, each with links to its own installer files. The last update is less than a month old.
Popularity and file types
The source code on GitHub (coldhighsun/Sloc) has 2 stars. Similar programs include PowerShell, QPDF and Oh My Posh.
Project description on GitHub: “Sloc (Source Lines Of Code) is a .NET global command-line tool for counting lines of source code. It analyzes files individually, distinguishing code lines, comment lines, and blank lines, then aggregates results by programming language.”
Pros / Cons
Pros
- Open source: the code can be inspected and built by anyone
- Portable: runs without installation
- Updated in the last two months
Cons
- No native ARM64 build
In short: sloc is an open-source terminals & cli tool tool for 64-bit PCs.
Is sloc safe to download?
- The file is served by github.com, the publisher’s own domain
- The download link uses HTTPS
- A SHA256 hash is published, so you can verify the file:
F27A81DA9348CE8E85AA5CC5F85B0A910642D4DE3B60B709D6E6B108E30D92FC· Open the VirusTotal report for this hash - The link has not been checked yet
- The source code is public
- ExeAtlas does not host, wrap or modify installers
Related guide: How to check a file’s SHA256 hash on Windows
Recent versions
All 11 versions ›| Version | Date | Size | Files |
|---|---|---|---|
| 4.1.0Latest | October 2, 2026 | — | 64-bit ZIP |
| 4.0.0 | September 25, 2026 | — | 64-bit ZIP |
| 3.3.0 | September 15, 2026 | — | 64-bit ZIP |
| 3.2.0 | September 12, 2026 | — | 64-bit ZIP |
| 3.1.0 | August 21, 2026 | — | 64-bit ZIP |
| 3.0.0 | July 31, 2026 | — | 64-bit ZIP |
| 2.2.0 | July 27, 2026 | — | 64-bit ZIP |
| 2.1.0 | July 26, 2026 | — | 64-bit ZIP |
Install from the command line
Silent install ›winget install --id coldhighsun.sloc -eRelated guide: How to use winget: install and update apps
Also for other systems
brew install slocInformation
- Publisher
- coldhighsun
- Category
- Terminals & CLI tools
- Licence
- MIT License
- Price
- Free
- Source code
- github.com/coldhighsun/Sloc
- Written in
- C#
- Requires
- Windows 11 / 10
- Architecture
- 64-bit
- Installer
- Portable
- Version
- 4.1.0
- Released
- October 2, 2026
- Added to the catalogue
- July 15, 2026
- Versions listed
- 11
- GitHub stars
- 2
- Website
- github.com
- winget ID
- coldhighsun.sloc
Ratings and reviews
No reviews yet. Be the first to rate it.
Alternatives to sloc
See all ›-
PowerShell7.6.9.0PowerShell is a cross-platform task automation solution made up of a command-line shell, a scripting language, and a configuration management framework. PowerShell runs on Windows, Linux, and macOS.Open source689.6K ↓ -
QPDF12.4.2QPDF is a command-line tool and C++ library that performs content-preserving transformations on PDF files.Open source2.1M ↓ -
Open source820.8K ↓ -
Open source290.1K ↓ -
Open source1.5M ↓ -
Alacritty0.17.0Alacritty is a free and open-source GPU accelerated terminal emulator focused on performance and simplicity.Open source75.9K ↓ -
Free5.9M ↓ -
PuTTY0.85.0.0A free implementation of SSH and Telnet for Windows and Unix platforms, along with an xterm terminal emulator.Open source5.3M ↓
Frequently asked questions
Is sloc free?
Yes. sloc is open-source software under the MIT License licence.
Is sloc safe to download?
The download comes from github.com, which belongs to the publisher; ExeAtlas does not host or change the file. Compare its SHA256 hash with the one shown here, or open the VirusTotal report for that hash.
How do I install sloc with winget?
Open PowerShell or Windows Terminal and run the winget command shown on this page. winget downloads the official installer and checks its SHA256 hash before running it.
Does sloc run on ARM (Windows on Arm)?
There is no ARM64 build; Windows 11 on Arm can run the 64-bit version through emulation.
Where can I download an older version of sloc?
The versions page lists all 11 versions with links to their official installer files, back to July 15, 2026.
Can I use sloc without administrator rights?
Yes, it is portable: unpack and run it.
What are alternatives to sloc?
PowerShell, QPDF, Oh My Posh, fzf and yq. The alternatives page compares them.