Indy-CLIの取得方法を備忘録として残します。
今回の実行環境は次の通りです。
・OS: macOS Catalina Version 10.15.3
・indy-sdk: 1.15.0
Indy-CLIの取得
Indy-SDKを取得し、Indy-CLIをビルドします。
以下のリンクに記載の方法でライブラリのビルドとCLIのコンパイルをおこないます。
今回の実行環境はmacOSなので次のコマンドをそれぞれ実行します。
$ git clone https://github.com/hyperledger/indy-sdk.git
$ cd indy-sdk/libindy
$ ./mac.build.sh
targetディレクトリ以下にindy-cliが生成されるので実行します。
$ cd target/debug/
$ ./indy-cli
indy> help
Hyperledger Indy CLIUsage:
[<command-group>] <command> [[<main-param-name>=]<main-param-value>] [<param_name-1>=<param_value-1>]...[<param_name-n>=<param_value-n>]Getting help:
help - Display this help
<command-group> help - Display the help for the specific command group
[<command-group>] <command> help - Display the help for the specific commandCommand groups are:
did - Identity management commands
ledger - Ledger management commands
pool - Pool management commands
wallet - Wallet management commands
payment-address - Payment address management commandsTop level commands are:
load-plugin - Load plugin in Libindy
init-logger - Init logger according to a config file.
Indy Cli uses `log4rs` logging framework: https://crates.io/crates/log4rs
about - Show about information
exit - Exit Indy CLI
prompt - Change command prompt
show - Print the content of text file
補足
ビルド済みのものを以下から入手することもできるようですが、依存関係などで問題が生じないように上記の手順を実施しました。
参考
https://hyperledger-indy.readthedocs.io/projects/sdk/en/latest/docs/design/001-cli/README.html