How to install fd
npm install -g fd-find fd use case
Quickly locate files and directories in a codebase while respecting gitignore rules and using intuitive regex patterns.
When to use fd
- Searching for specific files within a large project structure
- Filtering files to be used as input for subsequent shell commands via -x/--exec
- Finding files while automatically excluding build artifacts, hidden folders, and gitignored patterns
When not to use fd
- Performing complex boolean logic searches supported by GNU find's extensive operators
- Searching for specific text strings inside files (use ripgrep/rg instead)
- Strict POSIX compliance requirement for scripts
fd features
- · Parallelized directory traversal for high performance
- · Automatic integration with .gitignore and hidden file exclusion
- · Smart case-sensitivity
- · Regex and glob support by default
Want your agent to find this automatically?
Add the MCP server to your agent config and it will discover tools like fd on its own.
Set up MCP →