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.
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 …