explaingit

chubin/cheat.sh

41,377PythonAudience · developerComplexity · 2/5MaintainedLicenseSetup · easy

TLDR

A terminal-based cheat sheet service that answers questions about Unix commands and programming languages instantly via curl, without leaving your terminal.

Mindmap

mindmap
  root((repo))
    What it does
      Instant command lookup
      Code snippet examples
      Generates answers on demand
    How to use
      curl queries
      Optional CLI client
      Editor integrations
    Coverage
      56 programming languages
      1000+ Unix commands
      Database syntax
    Tech stack
      Python backend
      Docker deployable
      Web service
    Use cases
      Quick command reference
      Code syntax checking
      Learning new tools

Things people build with this

USE CASE 1

Look up Unix command flags and syntax without opening a browser.

USE CASE 2

Get quick code examples in Python, Go, or 54 other programming languages.

USE CASE 3

Check database query syntax or command options while coding.

USE CASE 4

Integrate cheat sheet lookups directly into Vim, Emacs, or VS Code workflows.

Tech stack

PythonDockercurlBashVimEmacsVS Code

Getting it running

Difficulty · easy Time to first run · 5min
Use freely for any purpose including commercial, as long as you keep the copyright notice.

In plain English

cheat.sh is a unified cheat sheet service that gives you instant, concise answers about command-line tools and programming languages without ever leaving your terminal. The problem it solves is simple: developers constantly need to look up how a specific command works, what flags it accepts, or how to do something in a particular programming language, and traditionally that means opening a browser and searching through lengthy documentation pages. cheat.sh collapses all of that into a single, fast lookup. The way it works is elegantly simple. You query it using the standard curl command that most systems already have, pointing at cheat.sh or the shorter cht.sh with a topic appended. For example, typing curl cht.sh/tar returns a concise, practical cheat sheet for the tar command. For programming questions you add the language namespace, such as curl cht.sh/python/lambda, and it returns code examples with comments. If no pre-written cheat sheet exists for your query, the service generates an answer on the fly by combining community cheat sheet repositories with answers sourced from StackOverflow. You can install an optional command-line client called cht.sh that adds features like shell history, tab completion for bash and zsh, and a special stealth mode that lets you look things up without anyone noticing. The service also integrates with popular code editors including Vim, Emacs, and VS Code. You would reach for cheat.sh whenever you forget how to use a specific Unix command, need a quick Python or Go code snippet, or want to check syntax without breaking your focus by switching to a browser. It covers over 56 programming languages, more than 1000 Unix and Linux commands, and several databases. The project is written in Python and runs as a hosted web service, though it can be self-hosted using Docker.

Copy-paste prompts

Prompt 1
Show me how to use cheat.sh to look up the tar command with curl.
Prompt 2
How do I install the cht.sh CLI client and set up tab completion for bash?
Prompt 3
Give me an example of querying cheat.sh for a Python lambda function syntax.
Prompt 4
How can I integrate cheat.sh into my Vim editor for instant lookups?
Prompt 5
Explain how cheat.sh generates answers when a cheat sheet doesn't exist yet.
Open on GitHub → Explain another repo

Generated 2026-05-18 · Model: sonnet-4-6 · Verify against the repo before relying on details.