Version15.0.0
Revision4
Size1.6 MB
LicenseMIT OR Apache-2.0
Confinementstrict
Basecore26

Count lines of code, comments and blank lines by language


Tokei counts files, lines of code, comments and blank lines in a project,
grouped by language. It respects .gitignore and .tokeignore files and can
print JSON, YAML or CBOR for other tools.

Examples

tokei ./my-project
tokei ./my-project --files --sort code
tokei ./my-project --output json


File access

Tokei can count projects in your home directory. To also count projects on
USB drives and other removable media (/media, /mnt), run:

sudo snap connect tokei:removable-media

Update History

git-c14f744 (3) → 15.0.0 (4)
10 Nov 2026, 04:00 UTC
git-c14f744 (3)
10 Nov 2026, 01:45 UTC

Published10 Nov 2026, 01:04 UTC

Last updated10 Nov 2026, 03:18 UTC

First seen10 Nov 2026, 01:45 UTC