# Top CLI tools every developer should know, matched to a job

> Five modern CLI tools that replace slow defaults: fd for files, rg for code, fzf for picking.

Source: https://fullbytedeveloper.com/blog/cli-tools-matched-to-jobs
Keyword: CLIFLUENT
Published here: 2026-11-10, updated 2026-12-03

Classic UNIX tools still work. For everyday developer jobs, five modern CLIs give better defaults: `fd` for files, `rg` for code search, `fzf` for picking, `bat` for reading, and `jq` for JSON [1][2][3][4][5]. Match the tool to the job, then keep `find` and `grep` for the odd script that must stay portable.

## Quick start: search code, then list matching files

On this host (ripgrep 15.1.0-cursor5, jq 1.7, fd-find 9.0.0 as `fdfind`):

```bash
mkdir -p /tmp/cli-demo && cd /tmp/cli-demo
printf 'export const x = 1\n// TODO: fix\n' > a.ts
printf 'export const y = 2\n' > b.ts
printf '{"name":"demo","count":3}\n' > package.json
rg TODO .
fdfind -e ts .
echo '{"stargazers_count":12345}' | jq '.stargazers_count'
```

Captured:

```text
./a.ts:// TODO: fix
/tmp/cli-demo/a.ts
/tmp/cli-demo/b.ts
12345
```

That is the whole habit: search with `rg`, locate with `fd`/`fdfind`, shape JSON with `jq`.

## Find files: fd instead of find

`fd` respects `.gitignore`, searches recursively by default, and uses simpler syntax than classic `find` [2].

```bash
fdfind -e ts /tmp/cli-demo
```

You should see TypeScript paths under that tree, skipping ignored directories when a `.gitignore` is present. On Debian and Ubuntu the package binary is often `fdfind`; alias it:

```bash
alias fd=fdfind
```

`find` remains useful for portable scripts and exotic predicates. Prefer `fd` at the interactive prompt.

## Search code: ripgrep instead of grep

ripgrep skips `.git`, `node_modules`, and binary files by default and is built for large trees [1].

```bash
rg TODO /tmp/cli-demo
rg -n 'export const' /tmp/cli-demo -t ts
```

Captured first command above. You should see matching lines with paths. Add `-n` when you want line numbers in every environment (some builds show them by default).

## Pick from a list: fzf

`fzf` turns any list into an interactive fuzzy picker [3]. Pipe file paths, git branches, or history into it:

```bash
fdfind -e ts /tmp/cli-demo | fzf
```

Type to filter, arrows to move, Enter to confirm. In scripts that cannot be interactive, skip `fzf` and keep `rg`/`fd` filters instead.

## Read files: bat instead of cat

`bat` adds syntax highlighting, line numbers, and git diff markers, and falls back to plain output when piped [4].

```bash
bat package.json
# or when bat is not installed yet:
cat package.json
```

Install with your package manager when missing. Prefer `bat` for human reading; prefer plain `cat` or redirection when a machine consumes the bytes.

## Parse JSON: jq

`jq` filters and transforms JSON from APIs and config files [5].

```bash
printf '{"name":"demo","count":3}\n' | jq '.count'
curl -s https://api.github.com/repos/sharkdp/bat | jq '.stargazers_count'
```

Local capture for the printf form:

```text
3
```

You should see a plain number for `.stargazers_count` when the network call succeeds. Offline, pipe a saved JSON file the same way.

<figure>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 260" role="img" aria-label="Job to tool map: find, search, pick, read, parse">
  <defs>
    <marker id="cliJobArrow" markerWidth="10" markerHeight="10" refX="8" refY="3" orient="auto">
      <path d="M0,0 L8,3 L0,6 Z" fill="#14b8a6"/>
    </marker>
  </defs>
  <rect x="0" y="0" width="720" height="260" rx="12" fill="#0b1f3a"/>
  <text x="24" y="36" fill="#f8fafc" font-family="ui-sans-serif, system-ui, sans-serif" font-size="16" font-weight="700">job to CLI</text>
  <rect x="24" y="56" width="120" height="56" rx="8" fill="#123052" stroke="#14b8a6" stroke-width="2"/>
  <text x="40" y="90" fill="#f8fafc" font-family="ui-sans-serif, system-ui, sans-serif" font-size="14">find files</text>
  <path d="M144 84 H176" stroke="#14b8a6" stroke-width="3" fill="none" marker-end="url(#cliJobArrow)"/>
  <rect x="184" y="56" width="80" height="56" rx="8" fill="#123052" stroke="#f59e0b" stroke-width="2"/>
  <text x="204" y="90" fill="#f59e0b" font-family="ui-monospace, monospace" font-size="14">fd</text>
  <rect x="24" y="128" width="120" height="56" rx="8" fill="#123052" stroke="#14b8a6" stroke-width="2"/>
  <text x="40" y="162" fill="#f8fafc" font-family="ui-sans-serif, system-ui, sans-serif" font-size="14">search code</text>
  <path d="M144 156 H176" stroke="#14b8a6" stroke-width="3" fill="none" marker-end="url(#cliJobArrow)"/>
  <rect x="184" y="128" width="80" height="56" rx="8" fill="#123052" stroke="#f59e0b" stroke-width="2"/>
  <text x="204" y="162" fill="#f59e0b" font-family="ui-monospace, monospace" font-size="14">rg</text>
  <rect x="300" y="56" width="120" height="56" rx="8" fill="#123052" stroke="#14b8a6" stroke-width="2"/>
  <text x="320" y="90" fill="#f8fafc" font-family="ui-sans-serif, system-ui, sans-serif" font-size="14">pick one</text>
  <path d="M420 84 H452" stroke="#14b8a6" stroke-width="3" fill="none" marker-end="url(#cliJobArrow)"/>
  <rect x="460" y="56" width="80" height="56" rx="8" fill="#123052" stroke="#f59e0b" stroke-width="2"/>
  <text x="476" y="90" fill="#f59e0b" font-family="ui-monospace, monospace" font-size="14">fzf</text>
  <rect x="300" y="128" width="120" height="56" rx="8" fill="#123052" stroke="#14b8a6" stroke-width="2"/>
  <text x="316" y="162" fill="#f8fafc" font-family="ui-sans-serif, system-ui, sans-serif" font-size="14">read / JSON</text>
  <path d="M420 156 H452" stroke="#14b8a6" stroke-width="3" fill="none" marker-end="url(#cliJobArrow)"/>
  <rect x="460" y="128" width="200" height="56" rx="8" fill="#123052" stroke="#f59e0b" stroke-width="2"/>
  <text x="476" y="162" fill="#f59e0b" font-family="ui-monospace, monospace" font-size="14">bat + jq</text>
  <rect x="24" y="204" width="672" height="40" rx="8" fill="#123052" stroke="#64748b" stroke-width="2"/>
  <text x="40" y="230" fill="#cbd5e1" font-family="ui-sans-serif, system-ui, sans-serif" font-size="14">Compose: fdfind -e ts | fzf, then bat the pick; pipe API JSON to jq [1][2][3][4][5]</text>
</svg>
</figure>

*One job, one default tool; compose them with pipes when the job has two steps.*

## Install all five

```bash
# macOS
brew install ripgrep fd bat fzf jq

# Debian / Ubuntu
sudo apt install ripgrep fd-find bat fzf jq

# Arch
sudo pacman -S ripgrep fd bat fzf jq
```

On Debian and Ubuntu, remember `fdfind` versus `fd`. Some distros ship `bat` as `batcat`; check `command -v`.

## PATH and agents

Coding agents that say "run `rg`" assume that name resolves in the environment they launch. If an agent starts with a minimal PATH, your interactive aliases may be invisible. See the file walk in [essential Linux commands part 1](/blog/essential-linux-commands-developers-part-1).

## Compose patterns that pay rent

Find then pick:

```bash
fdfind -e md ~/projects | fzf
```

Search then open with bat (when bat is installed):

```bash
rg -l 'TODO' src | fzf | xargs bat
```

API then field extract:

```bash
curl -s https://api.github.com/repos/BurntSushi/ripgrep | jq '{name,stars:.stargazers_count,lang:.language}'
```

## Shell config that makes the five tools stick

Add durable aliases and completions once, then stop thinking about package names:

```bash
# ~/.bashrc or ~/.zshrc excerpts
command -v fdfind >/dev/null && alias fd=fdfind
command -v batcat >/dev/null && alias bat=batcat
# optional: fd + fzf file widget if you use fzf keybindings [2][3]
```

Reload the shell and confirm with `command -v rg fd fzf bat jq` (or the distro names). Put the same notes in a team dotfiles README so new laptops do not rediscover `fdfind` during an incident.

## Git workflows that pair well

```bash
git branch --format='%(refname:short)' | fzf
git log --oneline | fzf
rg -n 'TODO|FIXME' $(fdfind -e go -e rs -e py -e ts)
```

Interactive pickers belong at the keyboard. In CI, replace `fzf` with explicit `rg` filters and exit codes so jobs stay non-interactive [1][3].

## Performance habits without fake benchmarks

ripgrep and fd skip ignored and binary paths by default, which is why they feel fast on real repos [1][2]. If a search is still slow, check whether you are scanning a mounted network disk, a huge build artifact directory that is not ignored, or a compressed archive tree. Fix ignore rules before buying a new laptop story.

## JSON edges jq handles cleanly

Select, filter, and reshape without temporary files:

```bash
printf '{"items":[{"id":1,"ok":true},{"id":2,"ok":false}]}\n' | jq '.items[] | select(.ok) | .id'
```

Captured:

```text
1
```

Read the jq manual when you reach `reduce`, streaming, or CSV input; the five-tool set still starts with simple filters [5].

## Mistakes that keep you on slow defaults

Reaching for recursive `grep -R` on a node project without excluding `node_modules`, then blaming the disk.

Writing a 40-character `find` expression for "all `.ts` files" when `fd -e ts` was enough [2].

Parsing JSON with chained `sed` when `jq` already expresses the field path [5].

Installing the tools globally but never aliasing `fdfind` to `fd`, so muscle memory fails on Debian.

Expecting every agent shell to share the same PATH as your interactive prompt.

Piping `fzf` into a cron job or CI step that has no TTY, then calling the tool unreliable.

## Teaching the set to a new teammate

Spend fifteen minutes on a shared screen: `rg` a TODO, `fd`/`fdfind` an extension, `jq` one field, `bat` a config, `fzf` a branch list. Stop when each command has produced one real result on your repo. Tool tours without a live tree do not stick [1][2][3][4][5].

Write the five jobs on a sticky note near the monitor for a week: find, search, pick, read, parse. When your hand reaches for an old default, check the note first.

## CI images and hermetic builds

Pin tool versions in Docker images the same way you pin language toolchains. A job that assumes `rg` exists on GitHub-hosted runners may pass today and fail when the image changes. Prefer `sudo apt-get install` of known packages in the workflow, or bake them into your custom image, rather than relying on interactive aliases from a laptop.

## When the classic tools still win

Busybox-only images, ancient CI runners, and "must work on a coworker laptop with no brew" scripts should stick to POSIX `find`/`grep`. Interactive day-to-day work should not. Keep a portable script in `scripts/` that uses only POSIX tools when that script must run on unknown hosts, and keep the modern five on the developer PATH for everything else.

Depth without dogma: `grep -R` is not immoral. It is just the wrong default for a multi-gigabyte monorepo with `node_modules` sitting one directory away. Match the tool to the job, measure when something feels slow, and keep the five installs boring and always present.

If you only install two tools this month, install ripgrep and fd. They remove the largest daily tax. Add `jq` next if you touch APIs, then `bat` and `fzf` once the first three are muscle memory [1][2][3][4][5]. A partial set still beats a perfect wiki page nobody runs.

Print a one-page cheat sheet for your team with the five example commands from this page. Tape it under a monitor for a sprint. When the sheet is covered in coffee and nobody asks where recursive grep went, the habit stuck.

For the next shell layer see [essential Linux commands part 2](/blog/essential-linux-commands-developers-part-2). Browse the [Dev tools topic](https://fullbytedeveloper.com/blog/topic/dev-tools).

Send this to the friend who still uses find and grep for everything in a huge tree.

Image: Left: vertical teal frame with four horizontal bars and a white cube casting a teal beam. Center: four stacked translucent glass plates holding glowing shapes. Right: dark cube cloud funneling through concentric gold rings into one bright orange cube on the grid.
https://fullbytedeveloper.com/media/cli-tools-matched-to-jobs/cli-tools-matched-to-jobs-venice.webp
Match each job to a tool that filters the firehose down to the one result you need.

## Sources

1. [ripgrep GitHub repository](https://github.com/BurntSushi/ripgrep)
2. [fd GitHub repository](https://github.com/sharkdp/fd)
3. [fzf GitHub repository](https://github.com/junegunn/fzf)
4. [bat GitHub repository](https://github.com/sharkdp/bat)
5. [jq manual](https://jqlang.github.io/jq/manual/)
