This is command line interface for Indy, 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
- Installation
- Execution modes
- Getting help
- Options
- Compatibility with old Indy-CLI
- Migration of a wallet created by old Indy-CLI
- Troubleshooting
- Go to the Github Releases page.
- Download archive with the last version of CLI depending on your system platform.
- Unzip archive to the directory where you want to save CLI.
- After unzip you will be able to execute binary file.
CLI supports 2 execution modes:
- Interactive:
- In this mode CLI reads commands from terminal interactively.
- To start this mode just run
indy-cli-rs
without params.
- Batch:
- In this mode all commands will be read from a text file or pipe and executed in series.
- To start this mode run
indy-cli-rs <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.
- To prevent this start command with
- To make a comment in the batch script start the line with the
#
symbol.
- The most simple way is just start cli by
indy-cli-rs
command and puthelp
command. - Also, you can refer to CLI design document containing 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).
- --config - Define config file for CLI initialization. A config file can contain the following fields:
- loggerConfig - path to a logger config file (is equal to usage of "--logger-config" option).
- taaAcceptanceMechanism - transaction author agreement acceptance mechanism to be used when sending write transactions to the Ledger.
- --plugins - DEPRECATED Load plugins in Libindy (usage: :,...,:).
- The names and parameters for all commands are preserved compared to the old Indy-CLI.
- Payment related commands and functionality are not included into this CLI.
- Pool Ledger created by the old Indy-CLI can be also opened using this CLI.
- Wallet created by the old Indy-CLI cannot be opened using this CLI due to different storage format.
- Wallet backup created by the old Indy-CLI can be imported using this CLI.
- Run old CLI and create wallet backup
indy-cli> wallet open wallet_to_export key
indy-cli> wallet export export_path=/Users/home/backup export_key
indy-cli> wallet close
- Run new CLI and import wallet
indy-cli-rs> wallet import wallet_imported key export_path=/Users/home/backup export_key
CLI depends on term
rust library that has a system dependency on terminfo database.
That is why CLI Debian package additionally installs libncursesw5-dev
library.
More about it read here at Packaging and Distributing
section.