"composer network" - Deploy BNA File

Q

How to deploy and start a business network BNA file to the local Hyperledger Fabric developer environment?

✍: FYIcenter.com

A

You can use the "composer network" command to deploy and start a business network BNA file on the local Hyperledger Fabric developer environment:

$ cd tutorial-network

$ composer network install --card PeerAdmin@hlfv1 \
   --archiveFile tutorial-network@0.0.1.bna

✔ Installing business network. This may take a minute...
Successfully installed business network tutorial-network, version 0.0.1

Command succeeded

Then you can start the business network you just deployed.

$ cd tutorial-network

$ composer network start --networkName tutorial-network \
 --networkVersion 0.0.1 --networkAdmin admin \
 --networkAdminEnrollSecret adminpw \
 --card PeerAdmin@hlfv1 --file networkadmin.card \

Successfully started business network tutorial-network, version 0.0.1

Command succeeded

Your business network is up and running in the Hyperledger Composer developer environment now.

 

⇒ "composer network install" Errors

⇐ Create Peer Admin Access Card

⇑ Building Business Network with Hyperledger Composer

⇑⇑ Hyperledger Composer Tutorials

2021-02-04, 645👍, 0💬