Installation
How to install Prune on your system.
Requirements
- Go 1.24 or higher (required for building from source or
go install) - CGO enabled — Prune uses go-tree-sitter, which has C bindings. CGO must not be disabled.
Building from Source
Clone the repository and build the binary:
git clone https://github.com/carlosedujs/prune.git
cd prune
go build -o prune ./cmd/pruneMove the binary to a directory on your PATH:
mv prune /usr/local/bin/pruneInstalling with go install
go install github.com/carlosedujs/prune/cmd/prune@latestCGO must be enabled when installing via go install. Cross-compilation without CGO support will fail to build the tree-sitter dependency.
Downloading a Binary
Pre-built binaries for Linux (amd64, arm64), macOS (amd64, arm64), and Windows (amd64) are available as release artifacts on the GitHub Releases page.
Download the archive for your platform, extract it, and place the binary on your PATH.
Example for Linux amd64:
curl -L https://github.com/carlosedujs/prune/releases/latest/download/prune_Linux_x86_64.tar.gz | tar xz
mv prune /usr/local/bin/pruneVerifying the Installation
prune versionExpected output:
prune version 0.3.0-beta.1