Newman vs Postman CLI — Which one to use?
The Postman v10 release in September 2022 introduced a new tool: the Postman CLI. Long-time Postman users know that the defacto CLI for Postman has been Newman. So what is going on at Postman? Two CLI tools for the same job?
Last update: Octomber 2022
TLDR
If you don’t have the time to read the whole thing and got more urgent matters to attend to, use Newman for now but stay tuned for developments in this area.
What is the Postman CLI?
Postman CLI now comes as a standalone tool that you can install. You no longer need to install Node.js and, after that, the npm package newman.
But it is not only this. Postman CLI is not a drop-in replacement for Newman, as it works a bit differently, and the commands are different.
First of all, Postman CLI introduces the concept of sessions. You log in at the beginning of a working session, and you have access to all Postman collections (and other resources) within your account.
Postman CLI also has the built-in ability to ingest any collection runs directly in your Postman workspace.