code: func listCmd(cf *ChaincodeCmdFactory) *cobra.Command {
  	chaincodeListCmd = &cobra.Command{
  		Use:   "list",
  		Short: "Get the instantiated chaincodes on a channel or installed chaincodes on a peer.",
  		Long:  "Get the instantiated chaincodes in the channel if specify channel, or get installed chaincodes on the peer",
  		RunE: func(cmd *cobra.Command, args []string) error {
  			return getChaincodes(cmd, cf)
  		},
  	}
  
  	flagList := []string{
  		"channelID",
  		"installed",
  		"instantiated",
  		"peerAddresses",
  		"tlsRootCertFiles",
  		"connectionProfile",
  	}
  	attachFlags(chaincodeListCmd, flagList)
  
  	return chaincodeListCmd
  }
docs: // installCmd returns the cobra command for Chaincode Deploy