code: func NewCmdConvert(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command {
  	o := NewConvertOptions(ioStreams)
  
  	cmd := &cobra.Command{
  		Use:                   "convert -f FILENAME",
  		DisableFlagsInUseLine: true,
  		Short:                 i18n.T("Convert config files between different API versions"),
  		Long:                  convertLong,
  		Example:               convertExample,
  		Run: func(cmd *cobra.Command, args []string) {
  			cmdutil.CheckErr(o.Complete(f, cmd))
  			cmdutil.CheckErr(o.RunConvert())
  		},
  	}
  
  	cmd.Flags().BoolVar(&o.local, "local", o.local, "If true, convert will NOT try to contact api-server but run locally.")
  	cmd.Flags().StringVar(&o.OutputVersion, "output-version", o.OutputVersion, i18n.T("Output the formatted object with the given group version (for ex: 'extensions/v1beta1')."))
  	o.PrintFlags.AddFlags(cmd)
  
  	cmdutil.AddValidateFlags(cmd)
  	cmdutil.AddFilenameOptionFlags(cmd, &o.FilenameOptions, "to need to get converted.")
  	return cmd
  }
docs: // NewCmdConvert creates a command object for the generic "convert" action, which
  // translates the config file into a given version.