Command-line tool
tokei
brew/tokei
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
Program that allows you to count code, quickly rust linux macos windows cli code cloc sloc statistics tokei command-line-tool badge
At a glance
- Type
- Command-line tool
- Install on
- Windows, macOS, Linux
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
Windows
winget install --id XAMPPRocky.Tokei -e scoop install tokei cargo install tokei
macOS
brew install tokei cargo install tokei
Linux
brew install tokei cargo install tokei
Display a report for the code in a directory and all subdirectories
tokei path/to/directory
Display a report for a directory excluding `.min.js` files
tokei path/to/directory -e *.min.js
Display statistics for individual files in a directory
tokei path/to/directory -f
Browse
Related command-line tools
- OrbStack
Replacement for Docker Desktop rust developer-tools cli tauri terminal - loc
Count lines of code quickly - cargo-swift
A cargo plugin to easily build Swift packages from Rust code for use in iOS and macOS applications - colima
Container runtimes on MacOS (and Linux) with minimal setup - crosup
A simple CLI tool to quickly setup your development environment on Chomebook (ChromeOS) or any Linux Distribution. - nmail
Terminal-based email client for Linux and macOS - fnt
Apt for fonts, the missing font manager for macOS/linux - kanata
Cross-platform software keyboard remapper for Linux, macOS and Windows
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents