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

**URL:** <https://community.postman.com/t/how-to-use-newman-to-run-postman-collection-where-i-want-to-pass-external-file-which-i-pass-in-collection-runner-data-section/12793>\
**Category:** Help Hub\
**Tags:** newman-project\
**Created:** [May 21, 2020, 6:38am UTC](https://community.postman.com/t/how-to-use-newman-to-run-postman-collection-where-i-want-to-pass-external-file-which-i-pass-in-collection-runner-data-section/12793 "2020-05-21T06:38:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sanu1991](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@sanu1991](https://community.postman.com/u/sanu1991)\
**Post date:** [May 21, 2020, 6:38am UTC](https://community.postman.com/t/how-to-use-newman-to-run-postman-collection-where-i-want-to-pass-external-file-which-i-pass-in-collection-runner-data-section/12793/1 "2020-05-21T06:38:43Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [May 21, 2020, 6:48am UTC](https://community.postman.com/t/how-to-use-newman-to-run-postman-collection-where-i-want-to-pass-external-file-which-i-pass-in-collection-runner-data-section/12793/2 "2020-05-21T06:48:46Z")

</div>

Hey @sanu199,

Welcome to the community! 🏆

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

> <https://github.com/postmanlabs/newman/blob/develop/README.md#newman-run-collection-file-source-options>

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.

---

<div class="post-metadata">

**Author:** ![sanu1991](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@sanu1991](https://community.postman.com/u/sanu1991)\
**Post date:** [May 21, 2020, 8:43am UTC](https://community.postman.com/t/how-to-use-newman-to-run-postman-collection-where-i-want-to-pass-external-file-which-i-pass-in-collection-runner-data-section/12793/3 "2020-05-21T08:43:26Z")

</div>

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