composer network install --card <your admin card> --archiveFile <your archive file>
connection.json
"channels": {
"first": {
"orderers": [
"orderer0.ex.ru"
],
"peers": {
"peer0.org1.ex.ru": {
"endorsingPeer": true,
"chaincodeQuery": true,
"eventSource": true
},
"peer0.org2.ex.ru": {
"endorsingPeer": true,
"chaincodeQuery": true,
"eventSource": true
}
},
"second": {
"orderers": [
"orderer0.ex.ru"
],
"peers": {
"peer0.org1.ex.ru": {
"endorsingPeer": true,
"chaincodeQuery": true,
"eventSource": true
},
"peer1.org2.ex.ru": {
"endorsingPeer": true,
"chaincodeQuery": true,
"eventSource": true
}
}
}
composer card create -p connection.json -u <identity name> -c <public key path> -k <secret key path> -r <admin card name> -r <role> -f <card filename>
composer card import -f <admin card file> --card <admin card name>
composer archive create -t dir -n .
composer network install --card <admin card name> --archiveFile <archive file produced in the previous step>