Installation

The zbox CLI can be built and installed on Linux, macOS, and other supported platforms. This guide covers prerequisites, system requirements, installation steps, and how to run your first zbox command.

Prerequisites

  • Go Install Go for Mac, Linux, or Windowsarrow-up-right. Then, Verify installation:

    go version
  • Git Required to clone the repository (not needed on macOS by default).

    sudo apt install git
  • Build Tools

    • Linux/macOS: make, gcc, or clang

    • Recommended: gcc 11 for compatibility (Ubuntu 22 ships with gcc-11 by default; Ubuntu 20 requires upgrade).

    Upgrade gcc on Ubuntu 20:

    sudo add-apt-repository ppa:ubuntu-toolchain-r/test
    sudo apt update
    sudo apt install build-essential
    sudo apt install gcc-11 g++-11

System Requirements

Minimum recommended machine specifications for building and running zbox:

  • Linux (Ubuntu preferred): Version 20.04+

  • macOS: Big Sur+ (Intel or Apple Silicon)

  • CPU: 4 vCPU

  • Memory: 4 GB RAM

  • Storage: 2 GB free space (build + storage allocation)

Installation

1. Clone the Repository

2. Build and Install

This compiles the binary and installs it into your $GOPATH/bin or system path.

Configuration

zbox requires a config file located at:

Create it using the following script:

This sets the Züs mainnet as your default network.

Running zbox

Navigate to the zboxcli directory and run:

Running without arguments displays the full list of supported commands and global flags.

Example usage output:

Alternative Builds

For non-standard platforms (e.g., ARM64 Linux, Raspberry Pi 3B+):

  1. Download the build script:

  2. Run the script:

This builds the MCL/BLS libraries with the required MCL_USE_GMP=0 flag and installs zbox.

Last updated