Skip to main content

CLI Installation

Release binaries

Pre-built binaries are available on our releases page.

The following snippet downloads/upgrades the binary to the latest released version (Linux and macOS only):

# Download the correct binary based on the OS and architecture
curl -LO "https://github.com/pokt-network/poktroll/releases/latest/download/poktroll_$(uname | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz"

# Extract the downloaded tarball to /usr/local/bin
sudo tar -zxf "poktroll_$(uname | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz" -C /usr/local/bin

# Make the binary executable
sudo chmod +x /usr/local/bin/poktrolld

# Check version
poktrolld version

Installing from source

Prerequisites

Ensure you have the following installed:

git clone https://github.com/pokt-network/poktroll.git
cd poktroll
make go_develop
make ignite_poktrolld_build

Verify it worked by running:

poktrolld --help

Homebrew and pkgx

tip

We have an open GitHub issue to introduce poktrolld to brew and pkgx.

Please reach out to us in the ticket if you want to pick this ticket!

Windows Users

Currently, we do not support native Windows installation. Windows users are encouraged to use Windows Subsystem for Linux (WSL) and follow the Linux installation instructions.