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,
Newman logs the following error when called from a shell script.
error: collection could not be loaded
" unable to read data from file "1_authentication.postman.collection.json
' ENOENT: no such file or directory, open '1_authentication.postman.collection.json
This is the script:
collection="1_authentication.postman.collection.json"
newman run $collection
It works only if I replace the $collection parameter with the name of the file
newman run 1_authentication.postman.collection.json
Newman version: 5.2.4
OS: Ubuntu 20.04
I think I found a similar issue here but the proposed solution did not work.
Is this a newman issue or am I doing something wrong?
Thank you!