lefthook install guide

Get lefthook on macOS and Linux Now!

Fast and powerful Git hooks manager for any type of projects

lefthook one-command setup card, developer tool, for macOS and Linux, 8.9k stars on the project's repository
★ 8.9k stars macOS and Linux

Get lefthook with one command

Pick your system, reveal the step-by-step guide, copy the command, paste it into your terminal and press Enter. This command comes from the project's public source.

PowerShell not published

What lefthook does

  • Simple. It is single dependency-free binary which can work in any environment
  • Powerful. It allows to control execution and files you pass to your commands
  • Smooth PostgreSQL upgrades in DockerDev environments with Lefthook
  • 5 cool (and surprising) ways to configure Lefthook for automation joy
  • Lefthook: Knock your team’s code back into shape
  • Automatically linting docker containers

Summarised from lefthook's own documentation.

About lefthook

Fast and powerful Git hooks manager for any type of projects

CategoryDeveloper tool
Install methodHomebrew
Windowsno install command published
macOS / Linuxdocumented install command available
PriceFree and open source
Command verifiedFrom project source
Popularity8.9k stars on the project's public repository

On mobile

lefthook is a command-line tool, so there is no phone app for it — a phone has no shell to run it in. You'll need a desktop, or a remote shell into a machine that has one.

lefthook is developed by its own authors. This page is an independent reference; we are not affiliated with or sponsored by the project. The command shown here was reproduced from the project's public documentation — always check the project's own documentation before running anything.