pocketd CLI Installation

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 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 it executable:

sudo chmod +x /usr/local/bin/pocketd

Check version:

pocketd version

Additional references and links:

  • Pre-built binaries can be found on the releases page: https://github.com/pokt-network/poktroll/releases

  • Latest release: https://github.com/pokt-network/poktroll/releases/latest


From Source (danger zone)

Installation dependencies

  • https://go.dev/doc/install (Go v1.23+)

  • https://www.gnu.org/software/make/ (Make)

  • https://docs.ignite.com/welcome/install (Ignite CLI)

Build from source

Clone the repository:

Build the dependencies:

Then, you have a few options:

1

Use the make target helper to use Ignite indirectly

2

Use Ignite to build the binary directly to the GOPATH

3

Use Ignite to build the binary directly to the current directory

When you're done, verify the installation:

Building Release Binaries From Source

The official binaries in our GitHub releases are built using this GitHub workflow: https://github.com/pokt-network/poktroll/actions/workflows/release-artifacts.yml

You can build the release binaries locally for all CPU architectures like so:


Windows (why!?)


Publishing a new pocketd release

This section is intended for core protocol developers only. It is intended only for dev releases of the pocketd CLI. If you are publishing an official protocol upgrade accompanied by a CLI update, visit the release procedure docs: https://dev.poktroll.com/develop/upgrades/upgrade_preparation

1

Create a new dev or rc git tag

2

Draft a new GitHub release

Draft a new release at: https://github.com/pokt-network/poktroll/releases/new

Use the tag created in the previous step (e.g. v0.1.12-dev3). Mark the release as a pre-release and use the auto-generated release notes for simplicity.

3

Wait for the release artifacts to be built (5 - 20 minutes)

The release artifacts workflow https://github.com/pokt-network/poktroll/actions/workflows/release-artifacts.yml will automatically build and publish the release artifacts to GitHub. The artifacts will be attached as an Asset to your release once the workflow completes.

4

Verify via the pocketd-install.sh script

Last updated

Was this helpful?