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.
- Binary installation
- From the source
Step 1: Choose one of the following:
Windows
Mac OS
Linux
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.
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.
The CLI installation guide needs two requirements.
- GO language 1.18 version
- Terminal or any command line interface of your choice
git clone https://gitlab.com/accumulatenetwork/core/wallet.git
cd wallet
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.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
To test that the Accumulate is installed correctly, run the below command without arguments.
On Mac / Linux / Windows
./accumulate