Interactive cheatsheet tool that helps you browse, search, and execute CLI commands with dynamic argument suggestions
navi is an interactive cheatsheet tool that provides a searchable interface for command-line snippets and one-liners. It uses fzf or skim to create a fuzzy-searchable menu of commands from cheatsheet files, allowing users to browse through pre-written commands and execute them directly. The tool dynamically displays suggested values for command arguments in a list format, reducing the need to memorize complex CLI syntax.
The tool supports multiple usage modes including standalone terminal execution, shell widget integration (similar to Ctrl-R history search), Tmux widget support for SSH sessions, and shell scripting automation. Users can download community-maintained cheatsheets, import repositories from Git, or write custom .cheat files using a simple syntax that defines commands and their parameter options. The cheatsheet format supports variable substitution where arguments are populated through command execution.
navi integrates with existing tools like tldr and cheat.sh, supports auto-updating repositories, and offers extensive customization options for colors, column sizing, and search behavior. It's particularly useful for developers, system administrators, and anyone who frequently uses complex command-line tools but doesn't want to memorize all the syntax variations.
# via Homebrew
brew install navi