For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Postman
PricingEnterprise
Contact SalesSign InSign Up for Free
HomeDocs
HomeDocs
      • Overview
        • Overview
        • Run tests manually
        • Run tests on a schedule
        • Run tests in CI/CD pipelines
        • Run tests with monitors
Postman API Platform

Product

  • Postman Overview
  • Enterprise
  • Spec Hub
  • Flows
  • Agent Mode
  • API Catalog
  • Fern
  • Postman CLI
  • Integrations
  • Workspaces
  • Plans and pricing

API Network

  • App Security
  • Artificial Intelligence
  • Communication
  • Data Analytics
  • Database
  • Developer Productivity
  • DevOps
  • Ecommerce
  • eSignature
  • Financial Services
  • Payments
  • Travel

Resources

  • Postman Docs
  • Academy
  • Community
  • Templates
  • Intergalactic
  • Videos
  • MCP Servers

Legal and Security

  • Legal Terms Hub
  • Terms of Service
  • Postman Product Terms
  • Security
  • Website Terms of Use

Company

  • About
  • Careers and culture
  • Contact us
  • Partner program
  • Customer stories
  • Student programs
  • Press and media
Twitter iconLinkedIn iconGithub iconYouTube iconInstagram iconDiscord icon
Download Postman
Privacy Policy

© 2026 Postman, Inc.

On this page
  • Configure Postman CLI test runs
Tests and scriptsRun and automate tests

Run API tests in your CI/CD pipeline using Postman

||View as Markdown|
Was this page helpful?
Previous

Run API tests on a schedule in Postman

Next

Run API tests using Postman Monitors

Built with

With continuous integration and continuous delivery (CI/CD), the goal is to deliver frequent software updates that provide value for users. At the same time, it’s important to maintain software quality. Running API tests automatically during the build process helps ensure that every code change is ready for production.

The Postman CLI enables you to run your test collections, monitors, flows, and more as part of your CI/CD pipeline. With the Postman CLI, you can run your tests and monitor their results every time there’s a push to your code repository.

Configure Postman CLI test runs

To run tests as part of the CI/CD pipeline, first create a Postman Collection with the tests you want to run. Then use Postman to generate a code snippet you can include in your CI/CD pipeline configuration. The Postman CLI runs your tests each time the pipeline runs. This enables you to push or roll back your changes based on the test results.

To configure your CI/CD pipeline to run a collection, do the following:

  1. Click Items icon Items in the sidebar.
  2. Click Collections, select a collection, then click the collection or folder you want to run in your CI/CD pipeline.
  3. Click Run icon Run.
  4. Click the Functional tab, then click Automate runs via CLI.
  5. Under Run on CI/CD, click Configure command.
  6. Select the collection you want to run and an optional environment. You can add multiple collections each associated with their own environment. Also select your CI/CD provider and operating system.
  7. Click Copy Postman CLI Command to copy the code. Then add this to your CI/CD pipeline configuration.

To learn more about configuring the Postman CLI in your CI/CD pipeline, see Postman CLI commands and options overview.