Installing Grit

One-line install with the script, or `go install` if you have Go.

4 mineasy

Time to install Grit. Pick one path — the install script (everyone) or go install (if you have the Go toolchain). Both produce the exact same binary at the same place on your PATH.

Path A — the install script (recommended)

One line. Works on macOS, Linux, and Windows. Detects whether you already have grit and either installs fresh or runs the self-update.

macOS / Linux

Terminal
$curl -fsSL https://gritframework.dev/install.sh | sh

Windows (PowerShell)

Terminal
$iwr -useb https://gritframework.dev/install.ps1 | iex

The script does three things: detects your OS + architecture, downloads the matching release binary from GitHub, and puts it on your PATH (/usr/local/bin/grit on Unix, %USERPROFILE%\.grit\bin\grit.exe on Windows). If you already had grit, it runs grit update instead.

On Windows the install script appends %USERPROFILE%\.grit\bin to your user PATH. You'll need to open a new terminal for the change to take effect — the script tells you that, but it's easy to miss.

Path B — `go install` (if you have Go)

If you already have Go 1.21+ on your machine, this is the most traditional path:

Terminal
$go install github.com/MUKE-coder/grit/v3/cmd/grit@latest

Compiles grit from source and puts it in $(go env GOPATH)/bin/grit. Make sure that directory is on your PATH — most Go setups add it automatically.

Want a pinned version?

For reproducible installs (CI scripts, team alignment), pin the exact version:

Terminal
# Pin via the install script
$GRIT_VERSION=v3.25.2 curl -fsSL https://gritframework.dev/install.sh | sh
# Pin via go install
$go install github.com/MUKE-coder/grit/v3/cmd/grit@v3.25.2
Don't install grit globally via npm. There's no npm package. If you find one, it's not us — install via the script or go install only.

What ships with the install

One binary (~20 MB). That's it. No background daemon, no telemetry, no licence server. You can move grit to a USB stick and run it anywhere with the matching OS.

Quick check

You don't have Go installed and you want grit on a Windows machine. Which command works?

Try it

Install grit on your machine using whichever path matches your setup. Then run grit version and paste the output into your notes.md.

What's next

You have grit on your machine. Next lesson — a 3-minute sanity check — confirms everything's wired right and you know how to update when a new version drops.

Spot a typo? Have an idea?

Help us improve this lesson. One click opens a GitHub issue with the lesson URL pre-filled — suggest clearer wording, report a bug, or request more depth. The course keeps improving thanks to learners like you.

Suggest an improvement on GitHub