code: func NewPullCommand(dockerCli command.Cli) *cobra.Command {
  	var opts PullOptions
  
  	cmd := &cobra.Command{
  		Use:   "pull [OPTIONS] NAME[:TAG|@DIGEST]",
  		Short: "Pull an image or a repository from a registry",
  		Args:  cli.ExactArgs(1),
  		RunE: func(cmd *cobra.Command, args []string) error {
  			opts.remote = args[0]
  			return RunPull(dockerCli, opts)
  		},
  	}
  
  	flags := cmd.Flags()
  
  	flags.BoolVarP(&opts.all, "all-tags", "a", false, "Download all tagged images in the repository")
  	flags.BoolVarP(&opts.quiet, "quiet", "q", false, "Suppress verbose output")
  
  	command.AddPlatformFlag(flags, &opts.platform)
  	command.AddTrustVerificationFlags(flags, &opts.untrusted, dockerCli.ContentTrustEnabled())
  
  	return cmd
  }
docs: // NewPullCommand creates a new `docker pull` command