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.
I am running below command :
variable=$collectionname
for i in $(echo $variable | sed "s/,/ /g")
do
# call your procedure/other scripts here below
echo "test $i"
echo $count
newman run $i --environment /home/ec2-user/workspace/apis-execution-postman-collection/postman_env/Staging.postman_environment.json -r htmlextra --reporter-htmlextra-export /home/ec2-user/workspace/apis-execution-postman-collection/report$count.html
count=$(($count+1))
done
This command executes all the collection which collection links are passed in “collectionname” variable so after execution I need single HTML report