code: func NewCmdCreateDeployment(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command {
  	options := &DeploymentOpts{
  		CreateSubcommandOptions: NewCreateSubcommandOptions(ioStreams),
  	}
  
  	cmd := &cobra.Command{
  		Use:                   "deployment NAME --image=image [--dry-run]",
  		DisableFlagsInUseLine: true,
  		Aliases:               []string{"deploy"},
  		Short:                 i18n.T("Create a deployment with the specified name."),
  		Long:                  deploymentLong,
  		Example:               deploymentExample,
  		Run: func(cmd *cobra.Command, args []string) {
  			cmdutil.CheckErr(options.Complete(f, cmd, args))
  			cmdutil.CheckErr(options.Run())
  		},
  	}
  
  	options.CreateSubcommandOptions.PrintFlags.AddFlags(cmd)
  
  	cmdutil.AddApplyAnnotationFlags(cmd)
  	cmdutil.AddValidateFlags(cmd)
  	cmdutil.AddGeneratorFlags(cmd, "")
  	cmd.Flags().StringSlice("image", []string{}, "Image name to run.")
  	cmd.MarkFlagRequired("image")
  	return cmd
  }
docs: // NewCmdCreateDeployment is a macro command to create a new deployment.
  // This command is better known to users as `kubectl create deployment`.
  // Note that this command overlaps significantly with the `kubectl run` command.