Description
Downloads the latest release of grit and installs it over the copy you're running. It does this by running the same install script as the one-line install on the Install page: curl -fsSL https://grit-scm.com/install | sh on macOS and Linux, which needs sh and curl, and irm https://grit-scm.com/install.ps1 | iex in PowerShell on Windows.
The installer prints its own progress. If you installed grit with cargo install, update it with cargo install grit-cli instead.
Options
grit update takes no options beyond the global ones.
JSON output
Schema: v1
Pass --json for stable, scripting-friendly output:
| Field | Type | Meaning |
|---|---|---|
updated |
boolean | Whether the install script was started successfully. |
version |
string | Version of grit that ran the update (not necessarily the version installed). |
With --json, the installer's progress goes to stderr so stdout carries only the JSON object.
Markdown output
Pass --markdown for agent-friendly output.
Schema: v1
Markdown uses headings, bullet lists, and fenced blocks; pipe characters inside table cells are escaped. See the JSON output section for the stable field contract.
Exit status
See Exit codes for shared rules and structured --json kind values.