---
title: "How to Run Postman Collections with Newman CLI for Automated API Testing?"  
description: "How to Run Postman Collections with Newman CLI for Automated API Testing?"  
author: "Hemant Patel"  
published: 2026-08-19  
updated: 2026-08-18  
canonical: https://answers.mindstick.com/qa/117079/how-to-run-postman-collections-with-newman-cli-for-automated-api-testing  
category: "API Testing"  
tags: ["Newman", "Postman", "CLI", "API Testing", "DevOps"]  
reading_time: 1 minute  

---

# How to Run Postman Collections with Newman CLI for Automated API Testing?

Newman is the official command-line collection runner for Postman. It allows developers and QA engineers to execute API test suites directly from the command prompt or terminal.

## How do I install and run Postman collections with Newman CLI?

To run a Postman collection using Newman, follow these steps:

### 1. Installation

Ensure Node.js is installed, then install Newman globally via npm:

```
npm install -g newman
```

### 2. Running a Collection

Execute your exported collection JSON file along with an environment file:

```
newman run my_collection.json -e my_environment.json
```

### 3. Generating HTML Reports

Install the HTML reporter and generate test execution reports:

```
npm install -g newman-reporter-htmlextra
newman run my_collection.json -r htmlextra
```

Using Newman in CLI enables seamless integration into CI/CD build scripts such as Jenkins, GitHub Actions, or GitLab CI.


---

Original Source: https://answers.mindstick.com/qa/117079/how-to-run-postman-collections-with-newman-cli-for-automated-api-testing

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
