← 返回命令列表

Linux command

postman 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Launch Postman

postman

Run collection from CLI

newman run [collection.json]

Run with environment

newman run [collection.json] -e [environment.json]

Export results

newman run [collection.json] --reporters cli,json --reporter-json-export [results.json]

说明

Postman is an API development platform providing a graphical interface for designing, testing, and documenting HTTP APIs. It organizes requests into collections that can include test scripts, environment variables, and pre-request hooks for building comprehensive API test suites. Newman is the command-line companion for running Postman collections outside the GUI. It enables automated API testing in CI/CD pipelines, supporting environment files, data-driven iterations with CSV or JSON data, and multiple output reporters for integration with test reporting systems.

FAQ

What is the postman command used for?

Postman is an API development platform providing a graphical interface for designing, testing, and documenting HTTP APIs. It organizes requests into collections that can include test scripts, environment variables, and pre-request hooks for building comprehensive API test suites. Newman is the command-line companion for running Postman collections outside the GUI. It enables automated API testing in CI/CD pipelines, supporting environment files, data-driven iterations with CSV or JSON data, and multiple output reporters for integration with test reporting systems.

How do I run a basic postman example?

Run `postman` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

Where can I find more postman examples?

This page includes 4 examples for postman, plus related commands for nearby Linux tasks.