code: func NewCmdCreateRoleBinding(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command {
  	o := &RoleBindingOpts{
  		CreateSubcommandOptions: NewCreateSubcommandOptions(ioStreams),
  	}
  
  	cmd := &cobra.Command{
  		Use:                   "rolebinding NAME --clusterrole=NAME|--role=NAME [--user=username] [--group=groupname] [--serviceaccount=namespace:serviceaccountname] [--dry-run]",
  		DisableFlagsInUseLine: true,
  		Short:                 i18n.T("Create a RoleBinding for a particular Role or ClusterRole"),
  		Long:                  roleBindingLong,
  		Example:               roleBindingExample,
  		Run: func(cmd *cobra.Command, args []string) {
  			cmdutil.CheckErr(o.Complete(f, cmd, args))
  			cmdutil.CheckErr(o.Run())
  		},
  	}
  
  	o.CreateSubcommandOptions.PrintFlags.AddFlags(cmd)
  
  	cmdutil.AddApplyAnnotationFlags(cmd)
  	cmdutil.AddValidateFlags(cmd)
  	cmdutil.AddGeneratorFlags(cmd, generateversioned.RoleBindingV1GeneratorName)
  	cmd.Flags().String("clusterrole", "", i18n.T("ClusterRole this RoleBinding should reference"))
  	cmd.Flags().String("role", "", i18n.T("Role this RoleBinding should reference"))
  	cmd.Flags().StringArray("user", []string{}, "Usernames to bind to the role")
  	cmd.Flags().StringArray("group", []string{}, "Groups to bind to the role")
  	cmd.Flags().StringArray("serviceaccount", []string{}, "Service accounts to bind to the role, in the format <namespace>:<name>")
  	return cmd
  }
docs: // NewCmdCreateRoleBinding returns an initialized Command instance for 'create rolebinding' sub command