UNPKG

@hashgraph/solo

Version:

An opinionated CLI tool to deploy and manage private Hedera Networks.

35 lines (32 loc) 1.62 kB
version: 3 tasks: get:ledger:addressbook: silent: true desc: retrieve the address book (file 101; examples/address-book/localhost/sysfiles/addressBook.json) and node details (file 102; examples/address-book/localhost/sysfiles/nodeDetails.json) from the ledger cmds: - java -jar yahcli.jar --verbose=WARN -n localhost -p 2 sysfiles download 102 - java -jar yahcli.jar --verbose=WARN -n localhost -p 2 sysfiles download 101 - echo "cat file 102 = localhost/sysfiles/nodeDetails.json" - echo "---------------------------------------" - cat localhost/sysfiles/nodeDetails.json - echo "---------------------------------------" - echo "cat file 101 = localhost/sysfiles/addressBook.json" - echo "---------------------------------------" - cat localhost/sysfiles/addressBook.json update:ledger:addressbook: silent: true desc: update the address book (file 101; examples/address-book/localhost/sysfiles/addressBook.json) and node details (file 102; examples/address-book/localhost/sysfiles/nodeDetails.json) on the ledger cmds: - java -jar yahcli.jar --verbose=WARN -n localhost -p 2 sysfiles upload 102 - java -jar yahcli.jar --verbose=WARN -n localhost -p 2 sysfiles upload 101 get:mirror:addressbook: silent: true desc: retrieve the address book from the mirror node (file 102) cmds: - | jq --version > /dev/null 2>&1 if [[ $? -eq 0 ]]; then curl -s http://localhost:5551/api/v1/network/nodes | jq else curl -s http://localhost:5551/api/v1/network/nodes fi