Indy-CLIの取得

56
4 min readApr 8, 2020

--

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 CLI
Usage:
[<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 command
Command groups are:
did - Identity management commands
ledger - Ledger management commands
pool - Pool management commands
wallet - Wallet management commands
payment-address - Payment address management commands
Top 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

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

56
56

No responses yet

Write a response