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-grepor
Install via npx
npx @hexmos/ipm i ast-grep/ast-grepPrerequisites
Node.js
build_toolVersion: >= 16.0.0
Rust
languageVersion: 1.78.0
rustup
system_toolVersion: 2.39.0
Git
system_packageVersion: 2.35.1
npm
package_managerVersion: 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-grepCargo (Rust)
cargo install --path ./crates/cli --locked
cargo binstall ast-grepScoop
scoop install main/ast-grepMacPorts
sudo port install ast-grepNix Shell
nix-shell -p ast-grepMise
mise use -g ast-grepPost Installation Steps
- Start the server using `npm start`.
- Run database migrations with `npx db:migrate`.
