# Is it possible to run to generate two reports using one Newman command in Command Line

**URL:** <https://community.postman.com/t/is-it-possible-to-run-to-generate-two-reports-using-one-newman-command-in-command-line/23665>\
**Category:** Help Hub\
**Tags:** newman-project, collections, postman, htmlreporter, xml\
**Created:** [May 12, 2021, 9:32am UTC](https://community.postman.com/t/is-it-possible-to-run-to-generate-two-reports-using-one-newman-command-in-command-line/23665 "2021-05-12T09:32:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![monish.narendra](https://avatars.discourse-cdn.com/v4/letter/m/e480ec/32.png) [@monish.narendra](https://community.postman.com/u/monish.narendra)\
**Post date:** [May 12, 2021, 9:32am UTC](https://community.postman.com/t/is-it-possible-to-run-to-generate-two-reports-using-one-newman-command-in-command-line/23665/1 "2021-05-12T09:32:41Z")

</div>

> **Archived topic — this may be out of date.**  
> Newman has been replaced by the **[Postman CLI](https://learning.postman.com/docs/postman-cli/postman-cli-overview/)**, Postman’s official, signed command-line tool. It runs collections as Newman did, and also lints API specs, runs mocks and monitors, and syncs local files with Postman from your terminal, CI/CD pipeline or coding agent.  
> Working with an AI coding agent? The [Postman plugin](https://github.com/postmanlabs/postman-plugin) lets agents in Claude Code, Cursor, Codex and others design, mock, test and ship APIs with Postman.  
> For current help, see the [Postman docs](https://learning.postman.com/docs/), try the free [Postman tools](https://www.postman.com/tools) (no account needed), or join us on [Discord](https://discord.gg/58aNNsRBGR).

Hi,

I am currently running a collection using Newman to generate an xml file by using the below command :-

`newman run <collectionFileName>.json -e <globalVariableFileName>.json --reporters cli, junit --reporter-junit-export <ReportFileName>.xml`

and a separate command to generate a html file command.

`newman run <collectionFileName>.json -e <globalVariableFileName>.json --reporters cli, html--reporter-html-export <ReportFileName>.html`

Is it possible to have one newman command to get both HTML and XML Files?

---

<div class="post-metadata">

**Author:** ![aviation-geoscienti6](https://avatars.discourse-cdn.com/v4/letter/a/91b2a8/32.png) [@aviation-geoscienti6](https://community.postman.com/u/aviation-geoscienti6)\
**Post date:** [November 8, 2021, 8:08am UTC](https://community.postman.com/t/is-it-possible-to-run-to-generate-two-reports-using-one-newman-command-in-command-line/23665/2 "2021-11-08T08:08:55Z")

</div>

Running the command:

`newman run <collectionFileName>.json -e <globalVariableFileName>.json --reporters cli,junit,html --reporter-junit-export <ReportFileName>.xml --reporter-html-export <ReportFileName>.html`

worked for me.
