---
title: "Postman CLI | CI/CD Testing | Postman API Platform"
description: "Automate API testing, linting, and monitoring directly from your terminal or CI/CD pipelines."
url: https://www.postman.com/product/postman-cli/
---

# Postman CLI | CI/CD Testing | Postman API Platform

> Automate API testing, linting, and monitoring directly from your terminal or CI/CD pipelines.

## Postman CLI

Run, test, and validate APIs directly from your terminal or CI/CD pipelines.

[Get Started for Free](https://identity.getpostman.com/signup?continue=https%3A%2F%2Fgo.postman.co%2Fhome)
[Install Postman CLI](https://learning.postman.com/docs/postman-cli/postman-cli-installation/)

---

## Bring API workflows into your CI/CD pipeline

### Pipeline-native testing

Run your Postman collections anywhere your CI/CD pipeline runs without having to maintain separate test infrastructure.

### Automated quality gates

Block releases when API tests fail with pipeline-aware exit codes so broken APIs never reach production.

### Always in sync

The Postman CLI pulls the latest collections and environments from Postman automatically so your pipeline always tests the current version.

---

## Generate comprehensive tests using prompts

Postman AI writes test scripts that can then be executed in your CI/CD pipeline using the Postman CLI, providing you with full test coverage in seconds.

---

*CAPABILITIES*

### Run your Postman collections where you work

The Postman CLI brings your collections, environments, and test scripts into any terminal or CI/CD system with a single command.

### Run any collection with CI/CD

Catch bugs before code hits production with the Postman CLI integration. Automated test suites use the same collections you use in Postman, keeping quality gates consistent across dev, staging, and production.

### Validate API schemas

Ensure your API schemas meet governance and security rules in Spec Hub right from the command line.

### Debug failures, compare runs, and track trends in Postman

View run results right in the terminal, export them as JSON or JUnit, or generate a polished HTML report. Every CLI run syncs results back to the Postman app.

### Custom reporting

View run results right in the terminal, export them as JSON or JUnit, or generate a polished HTML report.

### Package library

Run collections with shared packages for auth, variables, and logic, so you don’t have to repeat the same code in every test.

### Automatic versioning

Publish new API versions directly from your terminal, which automatically include the latest release notes, collections, and schemas.

---

> With Postman, teams have seen a significant increase in developer productivity facilitated by automation. Plus the visibility it gives our teams makes it easier to spot integration issues early and catch errors before they reach the user experience.

— Kirti Kulkarni, Senior Principal Architect, Sling TV

---

*RESOURCES*

## Go deeper with API testing using the Postman CLI

### Postman CLI documentation

Learn more about how to run, test, and validate your APIs from the command line with the Postman CLI.

[Read docs](https://learning.postman.com/docs/postman-cli/postman-cli-overview/)

### How to install the Postman CLI

Follow these instructions to get the Postman CLI set up for your operating system.

[Install Postman CLI](https://learning.postman.com/docs/postman-cli/postman-cli-installation/)

### Run a collection with the Postman CLI

Get step-by-step instructions on how to run your collection using the Postman CLI.

[Read docs](https://learning.postman.com/docs/postman-cli/postman-cli-run-collection/)

---

## Learn more about the Postman CLI

Chat with a Postman expert to learn how the Postman CLI can help your organization run API tests in every pipeline, gate deployments on results, and keep your APIs production-ready.

---

## Broken collaboration leads to broken APIs.

Ninety-three percent of API teams still face collaboration blockers. The 2025 State of the API report reveals how you can unlock the productivity gains that API-first promises, but scattered tooling prevents.

[Read the Report](/state-of-api/2025/)
