Python CLI

MobileCoin command-line interface

Command line interface and client library for MobileCoin full-service node.

Installation

sudo apt install python3-pip
pip3 install .

Check that it is installed.

mobcli -h

Set up environment variables.

Copy the config file to your home directory.

cp mc_env.sh ~/.mc_env.sh

Add the following lines to your .bashrc:

if [ -f "$HOME/.mc_env.sh" ]; then
    source "$HOME/.mc_env.sh"
fi

The environment variables file specifies to connect to the test network by default, but you can change it to connect to the main network if you know what you're doing, and are confident you will not lose actual funds.

Start the server

mobcli start

List of commands

  • start
  • stop
  • create
  • rename
  • import
  • export
  • delete
  • list
  • send