tokei

CLI

Count lines of code across projects, by language.

3 views

Installation

Homebrewbrew install tokei
Cargocargo install tokei

Links

License

MIT OR Apache-2.0

AI Agent Notes

Count lines of code by language with statistics

When to use

Analyzing codebase size and language composition

Examples
  • tokei
  • tokei src/ --exclude '*.json'

Proven Recipes

Count lines of code in current directory🟢 99% success
tokei .
Count excluding specific paths🟢 97% success
tokei . --exclude 'node_modules,dist'
Output as JSON🟢 99% success
tokei . -o json