{"library":"postman-cli","title":"Postman CLI","description":"The Postman CLI is the official command-line companion for the Postman API platform, enabling developers to automate API development, testing, and integration into CI/CD pipelines. It allows users to run Postman Collections, execute monitors, and enforce API governance rules directly from the terminal. The current stable version is 1.34.1, indicating active development with regular updates to support the evolving Postman ecosystem. Key differentiators include its tight integration with Postman's cloud platform, providing a seamless bridge between collaborative API design and automated execution, and its capability to enforce quality gates in CI/CD workflows. It is a lightweight tool designed for local debugging, scaling systems, and embedding API workflows into build systems, supporting macOS, Linux (x64 & ARM64), and Windows (x64) platforms.","language":"javascript","status":"active","last_verified":"Wed Apr 22","install":{"commands":["npm install postman-cli"],"cli":{"name":"postman","version":null}},"imports":[],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"npm install -g postman-cli\n\n# Get help and verify installation\npostman --help\n\n# Sign in to Postman using an API key (replace with your actual API key or environment variable)\n# It's recommended to use environment variables for sensitive data.\npostman login --with-api-key \"${process.env.POSTMAN_API_KEY || 'pk_YOUR_API_KEY'}\"\n\n# Run a Postman collection (replace with your actual collection ID and environment ID)\npostman collection run \"<collection-id>\" -e \"<environment-id>\"\n\n# Check API governance and security rules for a specific API (replace with your actual API ID)\npostman api lint \"<api-id>\"","lang":"bash","description":"Installs the Postman CLI globally, demonstrates how to get help, log in using an API key, run a collection with an environment, and lint an API for governance rules.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}