ripgrep Documentation

Everything you need to get the most out of the fastest search tool for developers. From first install to advanced configuration.

Common Flags Cheatsheet

-i Case-insensitive search
-w Match whole words only
-v Invert match (exclude pattern)
-l List matching file names only
-c Count matches per file
-n Show line numbers (default)
-C 3 Show 3 lines of context
-t py Search only Python files
-g "*.ts" Glob filter
-P Use PCRE2 regex engine
-z Search compressed files
--stats Print search statistics

Official Resources

This documentation is adapted from the official ripgrep repository maintained by Andrew Gallant. For the canonical source, see the links below.