# How to run subfolders of a collection in newman? Only selected subfolders, not the whole collection

**URL:** <https://community.postman.com/t/how-to-run-subfolders-of-a-collection-in-newman-only-selected-subfolders-not-the-whole-collection/16566>\
**Category:** Help Hub\
**Tags:** newman-project, collections\
**Created:** [October 8, 2020, 4:01am UTC](https://community.postman.com/t/how-to-run-subfolders-of-a-collection-in-newman-only-selected-subfolders-not-the-whole-collection/16566 "2020-10-08T04:01:24Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![IssacJackson](https://avatars.discourse-cdn.com/v4/letter/i/77aa72/32.png) [@IssacJackson](https://community.postman.com/u/IssacJackson)\
**Post date:** [October 8, 2020, 4:01am UTC](https://community.postman.com/t/how-to-run-subfolders-of-a-collection-in-newman-only-selected-subfolders-not-the-whole-collection/16566/1 "2020-10-08T04:01:24Z")

</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 all, I like to run a subfolder of my collection in newman. I have a collection that contains many subfolders, if I export as JSON and run in Newman, it runs the whole collection. But I want to run only one folder inside my collection in **Newman** , So if anyone knows the solution please help me.

---

<div class="post-metadata">

**Author:** ![maricrisbonzo](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/maricrisbonzo/32/5878_2.png) [@maricrisbonzo](https://community.postman.com/u/maricrisbonzo)\
**Post date:** [October 8, 2020, 6:45am UTC](https://community.postman.com/t/how-to-run-subfolders-of-a-collection-in-newman-only-selected-subfolders-not-the-whole-collection/16566/2 "2020-10-08T06:45:35Z")

</div>

Hi Issac 🙋🏻‍♀️!

To run a subfolder of your collection using the Newman CLI, all you would need to do is specify its’ name after the **folder** tag.

**E.g.** I have a subfolder in my Airtable API Collection called _Types Table_. To run only this subfolder, I’ll use the following command:

`newman run Airtable\ API.postman_collection.json --folder "Types Table"`

 ![Screen Shot 2020-10-07 at 11.49.58 PM](https://us1.discourse-cdn.com/getpostman/original/3X/5/1/51163a71b070c437c5e5bbdfd82ad2350c6965f7.png)

Btw, @danny-dainton answered a similar question in greater detail [here](https://community.postman.com/t/how-to-run-a-sub-folder-in-postman/11103/2)!

---

<div class="post-metadata">

**Author:** ![IssacJackson](https://avatars.discourse-cdn.com/v4/letter/i/77aa72/32.png) [@IssacJackson](https://community.postman.com/u/IssacJackson)\
**Post date:** [October 8, 2020, 8:21am UTC](https://community.postman.com/t/how-to-run-subfolders-of-a-collection-in-newman-only-selected-subfolders-not-the-whole-collection/16566/3 "2020-10-08T08:21:23Z")

</div>

Thank You, I’m able to run subfolders

---

<div class="post-metadata">

**Author:** ![harish89](https://avatars.discourse-cdn.com/v4/letter/h/8797f3/32.png) [@harish89](https://community.postman.com/u/harish89)\
**Post date:** [March 30, 2023, 4:12pm UTC](https://community.postman.com/t/how-to-run-subfolders-of-a-collection-in-newman-only-selected-subfolders-not-the-whole-collection/16566/4 "2023-03-30T16:12:07Z")

</div>

Hello [maricrisbonzo]  
Thanks a lot for your reply  
is it possible to run each subfolder with individual data driven input file ?  
i have specified some example below  
newman run Airtable\ API.postman\_collection.json --folder “Types Table1” -d testData1.json  
newman run Airtable\ API.postman\_collection.json --folder “Types Table2” -d testData.json

---

<div class="post-metadata">

**Author:** ![filoso](https://avatars.discourse-cdn.com/v4/letter/f/41988e/32.png) [@filoso](https://community.postman.com/u/filoso)\
**Post date:** [October 3, 2023, 6:50pm UTC](https://community.postman.com/t/how-to-run-subfolders-of-a-collection-in-newman-only-selected-subfolders-not-the-whole-collection/16566/5 "2023-10-03T18:50:39Z")

</div>

Do you know if it’s possible to run a sub-sub-sub folder? Just how much folder nesting is possible and what the newman commandline would look like?

---

<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:** [October 3, 2023, 9:59pm UTC](https://community.postman.com/t/how-to-run-subfolders-of-a-collection-in-newman-only-selected-subfolders-not-the-whole-collection/16566/6 "2023-10-03T21:59:28Z")

</div>

If the folder has a unique name, you could use the `--folder` flag to run it?

It’s worth exploring that and trying it out.

---

<div class="post-metadata">

**Author:** ![filoso](https://avatars.discourse-cdn.com/v4/letter/f/41988e/32.png) [@filoso](https://community.postman.com/u/filoso)\
**Post date:** [October 4, 2023, 6:36pm UTC](https://community.postman.com/t/how-to-run-subfolders-of-a-collection-in-newman-only-selected-subfolders-not-the-whole-collection/16566/7 "2023-10-04T18:36:05Z")

</div>

Yup. Felt pretty dumb asking w/o even trying it.

Permission vs. forgiveness

Thank you @danny-dainton .
