How to use newman to run postman collection , where I want to pass external file which I pass in collection runner data section?

Archived topic — this may be out of date.
Newman has been replaced by the Postman CLI, 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 lets agents in Claude Code, Cursor, Codex and others design, mock, test and ship APIs with Postman.
For current help, see the Postman docs, try the free Postman tools (no account needed), or join us on Discord.

I am working in postman automation. I am running my collection using external data file. i want the same to do with newman. how can I pass external data file using newman CLI? please help.

Hey @sanu199,

Welcome to the community! :trophy:

All the Newman options can be found here on the repo:

What you need to use for the data file is this command:

-d , --iteration-data
Specify a data source file (CSV or JSON) to be used for iteration as a path to a file or as a URL.

Thnaks. @danny-dainton. it is working fine.