Skip to content

Install zboxcli

Harshit Mehndiratta edited this page Nov 6, 2023 · 20 revisions

Get started with the installation steps described below.

Linux Installation

Note: zbox binaries are designed to function optimally with gcc 11 as the default compiler. Notably, Ubuntu 22 is equipped with gcc 11 by default. However, Ubuntu 20 initially comes with gcc 9. To upgrade the gcc version, execute the following commands:

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt install build-essential
sudo apt install gcc-11 g++-11
  1. Download the latest linux zboxcli archive release.
curl https://github.com/0chain/zboxcli/releases/download/v1.10.0/zbox-linux.tar.gz
  1. Open terminal and extract the downloaded archive to a specified directory using the command below.
sudo tar -xzf zbox-linux.tar.gz --directory /usr/local/bin
  1. Navigate to the extracted directory path:
cd /usr/local/bin
  1. Run the zbox executable type by using the command below.
./zbox

On successful installation you will see a help section similar to response below:

zbox is a decentralized storage application written on the 0Chain platform.                    

Usage:
  zbox [command]

Available Commands:
  add                Adds free storage assigner
  alloc-cancel       Cancel an allocation

Windows Installation

  1. Download the latest windows zboxcli archive release from here.
  2. Extract the executable and dll files from the archive zbox-windows.zip
  3. Now run the executable zbox.exe in windows command prompt or powershell.
  4. On successful installation, you will see a help section similar to response below:
zbox is a decentralized storage application written on the 0Chain platform.
                        

Usage:
  zbox [command]

Available Commands:
  add                Adds free storage assigner
  alloc-cancel       Cancel an allocation
  alloc-fini         Finalize an expired allocation

macOS Installation

  1. Download the latest mac zboxcli archive release.
curl https://github.com/0chain/zboxcli/releases/download/v1.10.0/zbox-macos.tar.gz
  1. Open terminal and extract the downloaded archive to a directory using the command below:
sudo tar -xzf zbox-macos.tar.gz --directory /usr/local/bin
  1. Navigate to extracted directory path .
cd /usr/local/bin
  1. Run the zbox executable using the command below.
./zbox

On successful installation, you will see a help section :

zbox is a decentralized storage application written on the 0Chain platform.
                        Complete documentation is available at https://docs.0chain.net/0chain/

Usage:
  zbox [command]

Available Commands:
  add                Adds free storage assigner
  alloc-cancel       Cancel an allocation
  alloc-fini         Finalize an expired allocation
Clone this wiki locally