postman-cli
Version:
Official Postman CLI - Command-line companion for API development, testing, and automation
80 lines (52 loc) • 2.77 kB
Markdown
<br>
<div align="left">
<a href="https://www.getpostman.com/">
<img src="https://voyager.postman.com/logo/postman-logo-orange.svg" alt="Postman Logo" width="400" height="200">
</a>
</div>
<br>
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.
```bash
npm install -g postman-cli
```
For direct binary downloads, platform-specific installers, or other installation methods, see the **[Installation Guide](https://learning.postman.com/docs/postman-cli/postman-cli-installation/)**.
```bash
postman --help
postman login
postman login --region eu
postman login --with-api-key <api-key>
postman login --with-api-key <api-key> --region eu
postman collection run <collection-id>
postman collection run <collection-id> -e <environment-id>
postman monitor run <monitor-id>
postman api lint <api-id>
```
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.
For Alpine environments, consider using alternative installation methods or running from a glibc-based base image.
- **[Complete Documentation](https://learning.postman.com/docs/postman-cli/postman-cli-overview/)** - Full guide with examples and advanced usage
- **[Installation Guide](https://learning.postman.com/docs/postman-cli/postman-cli-installation/)** - All installation methods and platform-specific instructions
- **[Command Reference](https://learning.postman.com/docs/postman-cli/postman-cli-options/)** - Complete list of commands and options
- **[Release Notes](https://www.postman.com/release-notes/postman-cli/)** - Latest versions and changelog
- [Postman Support](https://support.postman.com/) – For general support and troubleshooting
- [GitHub Issues](https://github.com/postmanlabs/postman-app-support/issues) – For bug reports and feature requests