Accumulate
Search…
⌃K

CLI setup

The Accumulate CLI (Command Line Interface) installation and the binary installation are the fastest way to get Accumulate running locally. This guide will show you how to set up Accumulate locally.

Two ways of CLI setup

  • Binary installation
  • From the source

1. Binary Installation

Step 1: Choose one of the following:
Step 2: Move accumulate to a folder of your choice.
Moving it to your documents folder is recommended, making it easier to locate on your terminal.
Step 3: In order to set the permissions so you can run this file, type in the following command: chmod 744 <path_to_file>. Pro tip: drag and drop the accumulate file onto the terminal to get the path.
Step 4: Copy the binary file location and paste it into your terminal and press enter to bring up the usage guide. Pro-tip: after the first time you drag and drop, you can press the Up arrow key to repeat for every future command.
You can start using the Accumulate CLI commands.
How to access Accumulate CLI from anywhere in the terminal.
This is an optional step
This step makes it easier to run accumulate since you can call it anywhere in your terminal.
You can follow the instructions in this link

2. From source

Preparing the installation

The CLI installation guide needs two requirements.
  • GO language 1.18 version
  • Terminal or any command line interface of your choice

Step 1: Clone accumulate

git clone https://gitlab.com/accumulatenetwork/core/wallet.git

Step 2: Locate accumulate folder

cd wallet

Step 4: Build Accumulate

This command works for Mac/Linux and Windows
go build ./cmd/accumulate
Once you run the command above, an accumulate binary file should appear in the root directory accumulate, which enables the CLI Commands.

Step 5: Create a seeded wallet

This command will create a mnemonic seed and wallet locally.
./accumulate wallet init create
After running the command above, you will be requested to write down your generated mnemonic phrase in the terminal and press enter.
Please keep your mnemonic phrase safe, it will help you restore the wallet.
Also, if you have an existing Accumulate wallet, then you can import the wallet using the command below.
./accumulate wallet init import
Import a mnemonic seed via the command prompt or import a wallet backup file to create a wallet
To backup, your wallet
accumulate wallet export mywallet.json
To restore from the backup
accumulate wallet init import keystore mywallet.json

Step 5: Start the CLI Tool

To test that the Accumulate is installed correctly, run the below command without arguments.
On Mac / Linux / Windows
./accumulate