code: func Cmd(cf *ChaincodeCmdFactory) *cobra.Command {
  	addFlags(chaincodeCmd)
  
  	chaincodeCmd.AddCommand(installCmd(cf))
  	chaincodeCmd.AddCommand(instantiateCmd(cf))
  	chaincodeCmd.AddCommand(invokeCmd(cf))
  	chaincodeCmd.AddCommand(packageCmd(cf, nil))
  	chaincodeCmd.AddCommand(queryCmd(cf))
  	chaincodeCmd.AddCommand(signpackageCmd(cf))
  	chaincodeCmd.AddCommand(upgradeCmd(cf))
  	chaincodeCmd.AddCommand(listCmd(cf))
  
  	return chaincodeCmd
  }
docs: // Cmd returns the cobra command for Chaincode