🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

postman-cli

Package Overview
Dependencies
Maintainers
4
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postman-cli

Official Postman CLI - Command-line companion for API development, testing, and automation

canary
latest
npmnpm
Version
1.24.2
Version published
Weekly downloads
951
37.23%
Maintainers
4
Weekly downloads
 
Created
Source

Postman Logo

Postman CLI

The Postman CLI brings the power of Postman’s API platform directly to your terminal. It lets you run collections, automate tests, integrate API checks into CI/CD pipelines, and enforce quality gates — all with a single, lightweight command-line tool. Whether you’re debugging locally, scaling systems, or embedding API workflows into your build system, the Postman CLI helps you bridge the gap between collaborative API design in Postman and automated execution in your development and production environments.

Installation

npm

npm install -g postman-cli

Alternative Installation Methods

For direct binary downloads, platform-specific installers, or other installation methods, see the Installation Guide.

Usage

# Get help
postman --help

# Sign in to Postman
postman login

# Sign in to Postman and EU region
postman login --region eu

# Sign in using API key
postman login --with-api-key <api-key>

# Sign in using API key and EU region
postman login --with-api-key <api-key> --region eu

# Run a collection
postman collection run <collection-id>

# Run with environment
postman collection run <collection-id> -e <environment-id>

# Run a monitor
postman monitor run <monitor-id>

# Check API governance and security rules
postman api lint <api-id>

Platform Support

This package automatically downloads the appropriate binary for your platform:

  • macOS (Intel & Apple Silicon)
  • Linux (x64)
  • Windows (x64)

Note: Linux support excludes Alpine Linux distributions due to libc compatibility requirements.

Troubleshooting Installation

The Postman CLI relies on platform-specific binaries distributed as optional dependencies. If you encounter "Binary not found" errors, ensure you're not using --no-optional or --omit=optional flags during installation, and verify that your .npmrc configuration doesn't contain optional=false. Installation failures may also occur due to network/registry access issues blocking @postman/* scoped packages or when using an unsupported platform architecture.

Resources

Support

Keywords

postman

FAQs

Package last updated on 14 Nov 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts