Installation
Table of contents
Via installer script
The fastest way to install Pacto:
curl -fsSL https://raw.githubusercontent.com/TrianaLab/pacto/main/scripts/get-pacto.sh | bash
The installer script may request elevated permissions (sudo) to install the binary to /usr/local/bin. You can use --no-sudo to install without elevated permissions or set PACTO_INSTALL_DIR to a custom directory.
Verify the installation:
pacto version
Via Go
Requires Go 1.25 or later.
go install github.com/trianalab/pacto/cmd/pacto@latest
From source (manual build)
git clone https://github.com/TrianaLab/pacto.git
cd pacto
make build
The binary is placed in your $GOBIN directory (typically ~/go/bin).
Updating
If you installed pacto via the installer script or from a GitHub release, you can update in-place:
# Update to the latest release
pacto update
# Update to a specific version
pacto update v1.2.0
This downloads the new binary and replaces the current one. No additional tools required.
If you installed via go install, use go install github.com/trianalab/pacto/cmd/pacto@latest to update instead.
Pacto also checks for updates automatically and shows a notification when a newer version is available. To disable this, set PACTO_NO_UPDATE_CHECK=1 in your environment.
Build targets
make build # Compile the pacto binary with version injection
make test # Run all tests
make lint # Run go vet
make clean # Remove build artifacts
Pre-built binaries and package manager support (Homebrew, apt, etc.) are planned for future releases.