code: func chaincodeDeploy(cmd *cobra.Command, args []string, cf *ChaincodeCmdFactory) error {
  	if channelID == "" {
  		return errors.New("The required parameter 'channelID' is empty. Rerun the command with -C flag")
  	}
  	// Parsing of the command line is done so silence cmd usage
  	cmd.SilenceUsage = true
  
  	var err error
  	if cf == nil {
  		cf, err = InitCmdFactory(cmd.Name(), true, true)
  		if err != nil {
  			return err
  		}
  	}
  	defer cf.BroadcastClient.Close()
  	env, err := instantiate(cmd, cf)
  	if err != nil {
  		return err
  	}
  
  	if env != nil {
  		err = cf.BroadcastClient.Send(env)
  	}
  
  	return err
  }
docs: // chaincodeDeploy instantiates the chaincode. On success, the chaincode name
  // (hash) is printed to STDOUT for use by subsequent chaincode-related CLI
  // commands.