I set up hyperledger fabric on Hyperledger Fabric consortium on Azure Kubernetes Service (AKS) . After successfull installation, I made some changes in this path (samples/chaincode/src/chaincode_example02/go/chaincode_example02.go). Now I want to update this chaincode changes into the network. I have referred here. I seems like azure-cli does not has upgrade command. Can someone help me to upgrade chaincode using azhlfTool. Here is available command,
sa@Azure:~/azhlfTool$ ./azhlf chaincode help
./azhlf chaincode <command>
Chaincode commands
Commands:
./azhlf chaincode install Installs chaincode to the peers. Should be called with peer.
./azhlf chaincode instantiate Instantiate chaincode to the application channel. Should be called with peer.
./azhlf chaincode invoke Invoke chaincode on the application channel. Should be called with peer.
./azhlf chaincode query Query chaincode on the application channel. Should be called with peer.
Not enough non-option arguments: got 0, need at least 1
I looked at the source code of azhlf chaincode on github, it only supports above listed operations. You will have to raise a feature request to add upgrade into azhftools command in order to use it directly.