Verifying your install
grit version, grit --help, and how to update later.
Three quick commands and you're ready for chapter 2. This lesson is the "does my install actually work" sanity check, plus how to keep grit up to date once you start using it daily.
1. Version check
$grit version
Should print grit version 3.25.x or later. If it says 3.24.x or older, run grit update first ā SQLite support, scaffolded random secrets, and the one-line install script all landed in 3.25.
2. Help ā see what grit can do
$grit --help
You should see a printed list including (at minimum):
Available Commands:new Scaffold a new Grit projectnew-desktop Scaffold a Wails desktop appgenerate Generate a resource (model + handler + service + types + ...)sync Sync Go types ā TypeScriptmigrate Run database migrationsseed Seed the databasestart Start dev serversupdate Update the Grit CLI to the latest versiondeploy Deploy to a VPSversion Print the grit CLI version
--help for its own flags. Try grit new --help ā you'll see the architecture choices we'll cover in chapter 5.3. Update check ā the command you'll use most
$grit update
Hits GitHub's release API, compares the latest tag to the version of the binary running this command, and either updates in place or exits with "Already on the latest version. Nothing to do."
Make a habit of running this once a week. New features ship regularly; grit update is a single HTTP round-trip when there's nothing to do, so the cost is essentially zero.
What if something goes wrong?
The two most common issues:
- "command not found" ā your PATH didn't pick up the install dir. Open a new terminal first. If that doesn't fix it, re-read the install lesson's exercise solution.
- "permission denied" on macOS / Linux when
grit updateruns ā the install dir requires sudo. The install script's default location ($HOME/.local/bin) is user-owned, so you should never hit this. If you do, the script probably installed to/usr/local/bin; re-run withsudoor reinstall to$HOME/.local/bin.
Quick check
Try it
Run all three sanity checks and capture proof:
- Run
grit versionand paste output innotes.md. - Run
grit --helpand copy the list of commands intonotes.md. - Run
grit updateand paste its output too ā if it says "Already on the latest version", that's the success state.
You've now completed chapter 1's assignment. Look at the sidebar ā ch.1 Assignment: Install Grit and capture proof is the next link. Click it to see the success criteria and tick them off.
What's next
Chapter 2 ā your first real Grit project. We'll scaffold a project, tour every folder it produces, start the dev servers, and log into the admin panel. By the end of the chapter you'll have a working full-stack app in your browser.
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