CLI tools worth knowing

Command-line tools that make everyday terminal work faster: finding files and text, reading code, moving around projects and automating chores. Most are single binaries you can install in a minute and keep for years.

29 tools: 27 established gems and 2 new. Sorted by how many developers recommend them.

Search and filter

Established CLI gems

Mature and well maintained, but easy to miss.

Hurl

hurl.dev
Gem

Run and test HTTP requests written in plain-text files.

Instead of Postman collections, curl-and-jq shell scripts, or hand-written API test code

1 recommend

Aider

aider.chat
Gem

AI pair programming in your terminal that edits files and commits to git.

Instead of Copying code between a chat window and your editor

1 recommend

fd

github.com
Gem

A simple, fast, user-friendly alternative to find.

Instead of find . -name "*.ts" -not -path "*/node_modules/*"

1 recommend

pgcli

pgcli.com
Gem

pgcli is an interactive PostgreSQL shell with SQL completion and syntax highlighting.

Instead of Interactive psql sessions and desktop database browsers.

sqlite-utils

sqlite-utils.datasette.io
Gem

A Python library and CLI for building and querying SQLite databases from files or pipelines.

Instead of One-off CSV loaders and scratch database scripts.

Glow

github.com
Gem

A terminal Markdown renderer and document browser.

Instead of Reading raw Markdown with cat or opening each document in a browser.

jless

jless.io
Gem

A terminal JSON viewer: collapse and expand nodes, move with vim keys, search with regex.

Instead of `cat response.json | jq . | less`, and opening a 40 MB JSON file in your editor just to look at it

tldr

tldr.sh
Gem

Short, example-first help pages for thousands of commands: the bit of the man page you actually wanted.

Instead of Scrolling a 2,000-line man page or searching the web for "tar extract command" for the hundredth time

fzf

junegunn.github.io
Gem

A fuzzy finder for anything you can list: files, shell history, git branches, processes.

Instead of Scrolling through `history | grep`, typing long paths by hand, and one-off select menus in shell scripts

jq

jqlang.org
Gem

Slice, filter and reshape JSON on the command line.

Instead of Ad-hoc Python or Node scripts, and grep/sed on JSON (which breaks as soon as the formatting changes)

bat

github.com
Gem

cat with syntax highlighting, line numbers and git change markers.

Instead of cat and less for reading code in the terminal

Starship

starship.rs
Gem

A fast, cross-shell prompt that shows your git status, language versions and more.

Instead of Oh My Zsh themes, Powerlevel10k, and hand-written PS1 strings

Zellij

zellij.dev
Gem

A terminal workspace with panes, tabs and sessions, and on-screen hints so you don't need to memorise keys.

Instead of tmux and GNU screen

Jujutsu

jj-vcs.dev
Gem

A Git-compatible version control system where your working copy is always a commit and every operation can be undone.

Instead of The git CLI, interactive rebase and git stash

difftastic

difftastic.wilfred.me.uk
Gem

A diff tool that compares code by its syntax, not line by line.

Instead of The line-based output of git diff

llm (CLI)

llm.datasette.io
Gem

Use LLMs from the command line and pipe anything into them.

Instead of Copy-pasting terminal output into a chat window

lazygit

github.com
Gem

A fast terminal UI for git: staging hunks, rebasing and resolving conflicts.

Instead of git add -p, git rebase -i in an editor, GUI clients

k9s

k9scli.io
Gem

A terminal UI for watching and managing Kubernetes clusters.

Instead of Long kubectl get / describe / logs command chains

direnv

direnv.net
Gem

Load and unload environment variables automatically when you cd into a project.

Instead of Manually sourcing .env files, exports in ~/.bashrc

ripgrep

github.com
Gem

Recursive code search that is fast and respects your .gitignore.

Instead of grep -r, ack, ag

zoxide

github.com
Gem

A smarter cd that learns the directories you use most.

Instead of cd ../../.. and long path tab-completion

Atuin

atuin.sh
Gem

Searchable shell history with context, and optional encrypted sync between machines.

Instead of Ctrl-R and a ~/.bash_history that loses commands

just

just.systems
Gem

A command runner: Make-style recipes without Make's build-system baggage.

Instead of Makefiles used as task runners, scattered npm scripts and README command lists

mise

mise.jdx.dev
Gem

One tool to pin Node, Python, Go and more per project, plus env vars and tasks.

Instead of nvm + pyenv + asdf + direnv + ad-hoc scripts

ast-grep

ast-grep.github.io
Gem

Search, lint and rewrite code by its syntax tree, using patterns that look like ordinary code.

Instead of grep-and-sed codemods, or a custom ESLint, Babel or jscodeshift transform

New & moving

Recently released, or picking up momentum.

Worktrunk

worktrunk.dev
New

Git worktrees made as easy as branches, so you can run several coding agents in parallel.

Instead of Typing git worktree add / cd / remove by hand, or running one agent at a time in one checkout

1 recommend

OpenCode

opencode.ai
New

An open-source AI coding agent for the terminal and desktop that works with any model provider.

Instead of Vendor-locked coding agent CLIs

Topics that often go with CLI.