logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt
How to install ast-grep/ast-grep. Official installation instructions. Project installation guide. Framework or library installation. Build installation instructions. How to setup and install from GitHub. Installation steps and setup instructions. Official docs and installation instructions GitHub.

ast-grep/ast-grep Installation Guide

How to install ast-grep/ast-grep. Official project installation instructions and setup guide.

Automated Install (Recommended)

Quick installation instructions for ast-grep/ast-grep. This is the fastest way to complete project installation and setup.

Install via curl

curl -fsSL https://hexmos.com/ipm-install | bash && 
ipm i ast-grep/ast-grep
or

Install via npx

npx @hexmos/ipm i ast-grep/ast-grep

Prerequisites

Node.js

build_tool

Version: >= 16.0.0

Rust

language

Version: 1.78.0

rustup

system_tool

Version: 2.39.0

Git

system_package

Version: 2.35.1

npm

package_manager

Version: 10.24.1

Manual Installation Methods

Manual installation instructions. How to install from GitHub source.

Package Manager (NPM, pip, Homebrew)

npm install --global @ast-grep/cli

pip install ast-grep-cli

brew install ast-grep

Cargo (Rust)

cargo install --path ./crates/cli --locked

cargo binstall ast-grep

Scoop

scoop install main/ast-grep

MacPorts

sudo port install ast-grep

Nix Shell

nix-shell -p ast-grep

Mise

mise use -g ast-grep

Post Installation Steps

  • Start the server using `npm start`.
  • Run database migrations with `npx db:migrate`.