This is the official command line interface for Indy SDK, which provides a distributed-ledger-based foundation for self-sovereign identity. It provides the commands to:
- Manage wallets
- Manage pool configurations
- Manage DIDs
- Sending transactions to distributed ledger
Pre-Built binaries can be downloaded from https://repo.sovrin.org/:
- sdk/lib/apt/xenial/{master,stable,rc} - Ubuntu deb packages. Note that it depends on libindy package
- windows/indy-cli/{master,stable,rc} - Windows zip-archive with executable file and all required DLLs
On Ubuntu it is recommended to install packages with APT (change stable to master
or rc
if needed):
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 68DB5E88
sudo add-apt-repository "deb https://repo.sovrin.org/sdk/deb xenial stable"
sudo apt-get update
sudo apt-get install -y indy-cli
CLI supports 2 execution modes:
- Interactive. In this mode CLI reads commands from terminal interactively. To start this mode just run
indy-cli
without params. - Batch. In this mode all commands will be read from text file or pipe and executed in series. To start this mode run
indy-cli <path-to-text-file>
. Batch mode supports the same commands as interactive mode. Note that by default if some command finishes with an error batch execution will be interrupted. To prevent this start command with-
. For example,-wallet create test
. In this case the result of this command will be ignored. Comments can also be made by beginning the line with a#
.
The most simple way is just start cli by indy-cli
command and put help
command. Also you can look to
Indy CLI Design doc that contains the list of commands and architecture overview.
- -h and --help - Print usage.
- --logger-config - Init logger according to a config file (default no logger initialized).
- --plugins - Load plugins in Libindy (usage: :,...,:).
It is possible to import did's stored in the wallet of deprecated python-based CLI tool. To achieve this user needs to perform the following steps:
- Execute script on machine with installed old python-based CLI.
This script will export DIDs stored in specified wallet into the result file. By default, this file creates in current folder and has the following name:
indy_old_cli_export_dids [-e <env name>] -w <wallet name> [-f <path to the result file>]
<env name>_<wallet name>.exp_wallet
- Install Indy-Cli
- Import generated file into libindy wallet by using Indy CLI
- Run Indy CLI
- Open new target wallet (create if needed) in CLI
- Run
did import <path to the file created on first step>