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
      • Schemas
        • Overview
        • Install
          • Overview
          • Basic CLI commands
          • Authentication commands
          • Workspace commands
          • Collection commands
          • Request commands
          • Monitoring and performance commands
          • Application commands
          • Flows commands
          • API governance commands
          • Mock server commands
          • Simulator commands
          • SDK Generator commands
          • Publish API versions commands
          • CLI commands for coding agents
        • Built-in reporters
        • Postman CLI GitHub Action
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
  • postman app init
  • postman app test
Postman CollectionsPostman CLICLI commands

Application commands

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

Monitoring and performance commands

Next

Flows commands

Built with

Application Inventory is available on Postman Solo, Team, and Enterprise plans. For more information, see the pricing page.

You can use the Postman CLI to initialize application configuration, run UI tests with network capture, validate observed API traffic against Postman Collections, and send results to Postman’s Application Inventory. The postman app commands require the repository to be linked to a Postman workspace (Git-connected).

postman app init

This command initializes application testing in the current repository by creating a postman.config.cjs file in your project’s root directory. Use the configuration file to define the targets, collections, environments, and filters used during application test runs. Targets enable you to select different collections and environments for different runtime setups, such as default, staging, or prod.

Learn more about using postman app init to initialize your project as an application.

To use this command with persistent data in the cloud, sign in to Postman with the postman login command.

Usage

$postman app init

postman app test

This command runs your application’s existing UI test command, captures the network traffic generated during the run, and validates observed API calls against requests in your collections. For matched calls, the command runs the pm.test assertions defined in the collection against the observed responses. It also reports unmatched calls and coverage gaps.

The command captures information only if the capture plugin is already set up on the tests. You can install it with npm install postman-playwright and set it up manually, or ask Postman Agent Mode to do it for you when you run postman app init.

When configured, the command also sends test results and detected dependencies to the Application Inventory. Learn more about using postman app test to run your application’s UI tests.

To use this command with persistent data in the cloud, sign in to Postman with the postman login command.

Usage

$postman app test [options]

Options

--command <command>

UI test command to execute.

--target <name>

A named runtime setup in postman.config.cjs (such as default, staging, or prod) that selects which collections and environment a given test run uses.

--target-collection <id>

Override the collection defined in the selected target.

--target-environment <id>

Override the environment defined in the selected target.

--capture-only

Capture traffic without validation and generate a draft collection from the observed requests.

Workflow

  1. Run UI tests — Executes the UI test command you specify with postman app init command.
  2. Capture traffic — Observes the network requests and responses generated during the run.
  3. Match requests — Maps captured calls to requests in the configured collections using method, path, query, and optional body hints.
  4. Validate responses — Runs pm.test assertions on matched responses.
  5. Report results — Reports assertion failures, unmatched calls, and coverage gaps. When configured, the command also sends results and detected dependencies to the Application Inventory.

Configuration

The postman app test command expects a postman.config.cjs file in your working directory.

The configuration file defines the targets used during a run. Each target can specify a collection and an environment. You can override those values at runtime with --target-collection and --target-environment.

You can also use the filters section in postman.config.cjs to exclude noisy traffic from validation, such as font requests, localhost traffic, or other requests that aren’t part of your API surface. Learn how to filter out irrelevant traffic.

Examples

$postman app test
$postman app test --target staging
$postman app test --capture-only