Tools, FAQ, Tutorials:
BYFN CLI Container "peer" Command
What is the BYFN (Build Your First Network) CLI Container "peer" Command?
✍: FYIcenter.com
If you have the BYFN CLI container running, you can use it
to run the "peer" command to manage your BYFN network.
1. Start the CLI container and connect to it:
$ docker start cli cli $ docker exec -it cli bash bash-4.4#
2. Run the "peer help" command to see its functions:
bash-4.4# peer Usage: peer [command] Available Commands: chaincode Operate a chaincode: install|instantiate|invoke|package|query|signpackage|upgrade|list. channel Operate a channel: create|fetch|join|list|update|signconfigtx|getinfo. help Help about any command lifecycle Perform _lifecycle operations logging Logging configuration: getlevel|setlevel|getlogspec|setlogspec|revertlevels. node Operate a peer node: start|status. version Print fabric peer version.
3. List all channels on BYFN:
bash-4.4# peer channel list [main] InitCmd -> ERRO 001 Cannot run peer because cannot init crypto, \ folder "/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto\ /peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp" does not exist
Looks like we are missing access certificates to run the command. See next tutorial on how to fix the issue.
Â
⇒ BYFN CLI Container Missing Admin Certificates
⇠"docker exec -it cli bash" - BYFN CLI Shell
⇑ Hyperledger Fabric Sample Networks
⇑⇑ Hyperledger Tutorials
2020-10-10, 1170👍, 0💬
Popular Posts:
FYIcenter.com Online Tools: FYIcenter JSON Validator and Formatter FYIcenter JSON to XML Converter F...
Where to get the detailed description of the JSON.stringify() Function in JavaScript? Here is the de...
Where to get a real Atom XML example? You can follow this tutorial to get a real Atom XML example: 1...
How to use the "set-backend-service" Policy Statement for an Azure API service operation? The "set-b...
How To Add Column Headers to a Table? If you want to add column headers to a table, you need to use ...