In case of you want to use only cli. Newman is a command-line collection runner for Postman. newman
Newman CLI tool can be installed with brew
brew install newman
or with npm
npm i -g newman
npm install
For more advanced/user-friendly reports. We will install html reporter. It will help us to generate customized reports in HTML format. newman-reporter-htmlextra
It this script we execute newman by specifying the collection to run, reporters to use and the environment to set.
For dev, staging and prod
npm run newmanDev
npm run newmanStaging
npm run newmanProd
npm run postman
npm run performance