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.
How can I specify global variables directly using the newman nodejs module?
In the newman CLI, I am able to pass in global variables using the --global-var param:
Once you know the format, either is okay. So, it would appear to me as good to stick to the usual structure of global variables. Best around be to put this up as an example and/or documentation.
I am looking for a functional account in order to prevent basic Auth Username / password from being displayed in Github, as we cannot use global variables in Newman.