Repolode
chubin

chubin/cheat.sh

Command-line and browser cheat sheets for Unix commands and programming languages, served over curl, a CLI client, and editor plugins.

Stars
41,823
Forks
1,917
Open issues
149
Last commit
30 days ago

What is it?

cheat.sh is a unified front end to several community-maintained cheat sheet repositories. You query it with a command name or a language and a topic, and it returns a short, example-focused answer in the terminal. Coverage includes UNIX/Linux commands, a long list of programming languages, and several DBMSes.

The service is usable with plain curl at cheat.sh or cht.sh, with no account or installation. For frequent use, the project ships a cht.sh client with a shell mode, history, clipboard copy, and tab completion for bash, zsh, and fish. A stealth mode shows answers automatically when you select text. Plugins exist for Vim, Emacs, Sublime Text, VS Code, IntelliJ IDEA, and Qt Creator.

For offline or private use, the README describes a Docker-based self-hosted setup using docker-compose with Redis, and notes that standalone installation is documented separately.

Key features

  • 01Query commands or language topics with curl, with no installation needed.
  • 02Covers UNIX/Linux commands and dozens of programming languages.
  • 03Includes cht.sh CLI with shell mode, history, clipboard copy and tab completion.
  • 04Offers a stealth mode that shows answers when text is selected.
  • 05Provides editor plugins for Vim, Emacs, VS Code, Sublime Text, IntelliJ IDEA and Qt Creator.
  • 06Can be self-hosted with Docker.

Use cases

  • Looking up a shell command's flags without leaving the terminal.
  • Getting a quick code snippet for an unfamiliar language feature.
  • Running a private cheat sheet server inside a team network.
  • Getting inline answers while coding in an editor.

Quick start

  1. 1

    Query a cheat sheet directly with curl (no install needed)

    curl cheat.sh/tar
  2. 2

    Search for a command when you don't know its name

    curl cht.sh/~snapshot

Things to know

  • Shell mode of the cht.sh client requires the rlwrap package to be installed separately.
  • Answers for programming-language queries are generated on the fly and are not guaranteed to be an exact match.

Topics

FAQ

What is cheat.sh?
Command-line and browser cheat sheets for Unix commands and programming languages, served over curl, a CLI client, and editor plugins. cheat.sh is a unified front end to several community-maintained cheat sheet repositories. You query it with a command name or a language and a topic, and it returns a short, example-focused answer in the terminal. Coverage includes UNIX/Linux commands, a long list of programming languages, and several DBMSes.
Is cheat.sh free to use? What license does it have?
cheat.sh is open source under the MIT license. Check the license terms before using it in commercial products.
Is cheat.sh still maintained?
Actively maintained. The last commit to cheat.sh was on Sep 22, 2026.
What can I use cheat.sh for?
Looking up a shell command's flags without leaving the terminal. Getting a quick code snippet for an unfamiliar language feature. Running a private cheat sheet server inside a team network. Getting inline answers while coding in an editor.
How do I install cheat.sh?
Query a cheat sheet directly with curl (no install needed): curl cheat.sh/tar Search for a command when you don't know its name: curl cht.sh/~snapshot
Where can I get cheat.sh?
The source code and installation instructions are on GitHub: https://github.com/chubin/cheat.sh

Summary generated by AI from the project's README. GitHub stats refresh daily.

Related projects