# Newman --folder command

**URL:** <https://community.postman.com/t/newman-folder-command/46844>\
**Category:** Help Hub\
**Tags:** newman-project\
**Created:** [April 27, 2023, 2:07pm UTC](https://community.postman.com/t/newman-folder-command/46844 "2023-04-27T14:07:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![CrossAce](https://avatars.discourse-cdn.com/v4/letter/c/dbc845/32.png) [@CrossAce](https://community.postman.com/u/CrossAce)\
**Post date:** [April 27, 2023, 2:07pm UTC](https://community.postman.com/t/newman-folder-command/46844/1 "2023-04-27T14:07:06Z")

</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).

Hello,  
I have a problem running multiple --folder commands.  
The command looks like this:  
**newman run [collection] -e [env] -d [iterationData] --folder “Test 1” --folder “Test 2” --folder “Test 3” -r htmlextra -k**

The collection structure is as follows:  
[Collection]  
– [Customers] folder  
— [Test 2] request  
— [Test 3] request  
– [Identity] folder  
— [Test 1] request

The problem is that collectionVariables set in request tests “Test 1” doesn’t persist in requests “Test 2” and “Test 3”.  
Maybe I am using it wrong - in the documentation it specifies that --folder can be run for a single request?

> –folder [name]  
> Run requests within a particular folder/folders or **specific requests in a collection**. Multiple folders or requests can be specified by using …
