pocketd Installation
brew tap pokt-network/pocket
brew install pocketd
Table of Contents
MacOS Users
Using Homebrew (recommended)
Ensure you have Homebrew installed.
Then run the following commands:
brew tap pokt-network/pocket
brew install pocketd
And verify it worked by running:
pocketd version
pocketd --help
Troubleshooting Homebrew
Read this section if you're having problems downloading or upgrading your pocketd
binary using Homebrew.
pocketd
binary using Homebrew.The source code for the Homebrew formula is available in the homebrew-pocket repository.
If you encounter any issues, like being unable to install the latest version, you can try the following:
brew update
brew upgrade pocketd
Or as a last resort, you can try the following:
brew tap --repair
brew untap pokt-network/pocket
brew uninstall pocketd
brew tap pokt-network/pocket
brew install pocketd
Using release binaries (if you don't have brew)
- Grab a binary from the latest release
- Download the appropriate
pocket_${OS}_${ARCH}.tar.gz
for your environment - Untar the downloaded file to retrieve the
pocketd
binary - Extract the binary to
/usr/local/bin
Pre-built binaries are available on our releases page.
You can view the latest release directly by clicking here.
The following snippet downloads/upgrades the binary to the latest released version:
# Download the correct binary based on the OS and architecture
curl -LO "https://github.com/pokt-network/poktroll/releases/latest/download/pocket_$(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 "pocket_$(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/pocketd
# Check version
pocketd version
From Source (danger zone)
This method is only recommended for ADVANCED users as it requires working with developer tools.
Installing dependencies
Ensure you have the following installed:
- Go (version 1.23 or later)
- Make
- Ignite CLI
Installing pocketd
Then, Retrieve the source code and build the pocketd
locally like so:
# Clone the repository
git clone https://github.com/pokt-network/poktroll.git pocket
cd pocket
# Optional: Switch to a specific version (recommended)
# Replace v0.0.12 with your desired version from https://github.com/pokt-network/poktroll/releases
git checkout v0.0.12
# Build the binary
make go_develop
make ignite_pocketd_build
And verify it worked by running:
pocketd version
pocketd --help
Windows Users (why!?)
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.