Scroll to navigation

TOKEI(1) User Commands TOKEI(1)

NAME

tokei - tokei

SYNOPSIS

tokei [OPTIONS] [input]...

DESCRIPTION

Count your code, quickly. Support this project on GitHub Sponsors: https://github.com/sponsors/XAMPPRocky

Arguments:

[input]...
The path(s) to the file or directory to be counted. (default current directory)

OPTIONS

Sets a strict column width of the output, only available for terminal output.
Ignore all files & directories matching the pattern.
Will print out statistics on individual files.
Gives statistics from a previous tokei run. Can be given a file path, or "stdin" to read from stdin.
Count hidden files.
Prints out supported languages and their extensions.
Don't respect ignore files (.gitignore, .ignore, etc.). This implies --no-ignore-parent, --no-ignore-dot, and --no-ignore-vcs.
Don't respect ignore files (.gitignore, .ignore, etc.) in parent directories.
Don't respect .ignore and .tokeignore files, including those in parent directories.
Don't respect VCS ignore files (.gitignore, .hgignore, etc.) including those in parent directories.
Outputs Tokei in a specific format. Compile with additional features for more format support.
prints the (language, path, lines, blanks, code, comments) records as simple lines or as Json for batch processing [possible values: simple, json]
Sort languages based on column [possible values: files, lines, blanks, code, comments]
Reverse sort languages based on column [possible values: files, lines, blanks, code, comments]
Filters output by language type, separated by a comma. i.e. -t=Rust,Markdown
Do not print statistics about embedded languages.
Format of printed numbers, i.e., plain (1234, default), commas (1,234), dots (1.234), or underscores (1_234). Cannot be used with --output. [possible values: commas, dots, plain, underscores]
Set log output level: 1: to show unknown file extensions, 2: reserved for future debugging, 3: enable file level trace. Not recommended on multiple files
Print help
Print version
November 2025 tokei 13.0.0 compiled with serialization support: json