code: func cmdEnsureFileResolve(params Parameters) *subcommands.Command {
  	return &subcommands.Command{
  		UsageLine: "ensure-file-resolve [options]",
  		ShortDesc: "resolves versions of all packages and writes them into $ResolvedVersions file",
  		LongDesc: "Resolves versions of all packages for all verified platforms in the \"ensure\" file.\n\n" +
  			`Writes them to a file specified by $ResolvedVersions directive in the ensure file, ` +
  			`to be used for version resolution during "cipd ensure ..." instead of calling the backend.`,
  		Advanced: true,
  		CommandRun: func() subcommands.CommandRun {
  			c := &ensureFileResolveRun{}
  			c.registerBaseFlags()
  			c.clientOptions.registerFlags(&c.Flags, params, withoutRootDir)
  			c.ensureFileOptions.registerFlags(&c.Flags, withoutEnsureOutFlag, withoutLegacyListFlag)
  			return c
  		},
  	}
  }
docs: ////////////////////////////////////////////////////////////////////////////////
  // 'ensure-file-resolve' subcommand.