Skip to content

Setup Git Pre Commit Hooks with CLI

Shrijith Venkatramana edited this page Feb 5, 2026 · 9 revisions

The LiveReview CLI is called lrc. It is usually installed in /usr/local/bin/lrc.

lrc can also be invoked as a git subcommand like git lrc. Usually this is the recommended way to trigger lrc (via git).

lrc provides powerful global hook management for all your git repositories.

Insallation

image
  1. Goto Settings
  2. Goto API Keys
  3. Create New Key
  4. Enter a friendly label
  5. Create Key

You'll get instructions for installing the tool like so:

image

You can copy/paste the command and get it installed. Notice that it'll configure global hooks automatically for all repos by default (don't worry - you can disable hooks on individual projects if you wish):

image

Now - goto a git repo, and make a change:

image

Now try:

git add .
git commit

This will automatically trigger the pre-commit hook:

image

You can see the review in http://localhost:8000 and it has clearly found the accidental addition we did above:

image

Clone this wiki locally