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

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. @dannydainton. it is working fine.