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 context
Postman CollectionsPostman CLICLI commands

CLI commands for coding agents

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

Publish API versions commands

Next

Run a collection using the Postman CLI

Built with

This topic covers the postman context command for coding agents such as Claude Code.

postman context

The postman context command aggregates all the information that a coding agent needs to generate accurate code. To use the command, you need to prompt your coding agent to use the Postman CLI to perform a specific task. For example, you can ask your coding agent to generate code for a specific API endpoint and use the postman context command as a starting point to get an overview of what it can do. The coding agent then uses the command to gather all the necessary information about the API endpoint, such as the request method, URL, headers, and body.

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

Usage

postman context instructions [topic]

topic

Optional topic that scopes the instructions returned to the coding agent. Supported topics include the following:

  • discovery — Search for and explore APIs.
  • code-generation — Generate client code.
  • maintenance — Maintain and update client code.

Without a topic, the command returns a complete overview of the Postman CLI capabilities, workflow, and API reference.

Use the postman context command with coding agents

Prompt your coding agent to use the Postman CLI to perform a task and tell it to run the postman context command first to get the necessary context. You can then ask follow-up questions or give it more tasks related to the same API.

For example:

Search for payment APIs using the Postman CLI and help me select one and generate client code for it. Run the `postman context instructions` command first.