Newman - CLI companion for Postman

Priti SolankiPriti Solanki
1 min read

A developer's love for the command line is undeniable.

The developer's expression when you say - "Run this test suite in Postman. Generate the summary, download and share"

via GIPHY

Meet "Newman" : It is a command-line collection runner for Postman. It enables one to run and test a Postman Collection directly from the command line.

How to install newman

$ npm install -g newman

How to run Postman Collection with environment variables on the command line

 $> newman run .\Weather.postman_collection.json -e .\openweather_Dev.postman_environment.json

newmancode.PNG

Easy!

I will be exploring newman further, hope you find this interesting.

0
Subscribe to my newsletter

Read articles from Priti Solanki directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Priti Solanki
Priti Solanki