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 sav that collection run in newman works correctly without connecting specific environment to that collection.
But do I need to connect the environment in general? and if yes, the how to do it? I tried to use the -e <url from https://web.postman.co/environments…> but it doesn’t work.
@o.haistruk There isn’t a concept of ‘connecting’ environments to collections, as environments can be used with multiple collections. As for your original question, web.postman.co does not serve environments in a format that Newman can understand, you’ll have to use the Postman API to achieve this, as has been documented here: https://github.com/postmanlabs/newman#using-newman-with-the-postman-api
If I am understand correctly. You are asking whether we can run postman collection in newman 3.9.3 with an environment file. yes we can do it. ref this link