Postman CLI
$ postman Official Med RiskPostman CLI (postman) executes API test collections, runs ad-hoc HTTP/GraphQL/gRPC requests, lints OpenAPI/AsyncAPI specs (postman spec lint), and syncs results to Postman Cloud. Global --json, --api-key, -w/--workspace, and -y/--yes flags fit CI pipelines well, though cloud telemetry (--report-events) is enabled by default.
brew install postman-cli Deterministic collection test runs and OpenAPI governance linting with standard exit codes work directly in CI/shell without MCP.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports --json, --api-key, -w/--workspace, -y/--yes, and deterministic exit codes across CI/CD workflows.
- Global
--json,--api-key, and-y/--yesflags - Standard 0/non-zero CI exit codes
Supports --no-report-events to prevent default telemetry uploads and -w workspace scoping, though collection run executes arbitrary HTTP requests inside the collection.
--no-report-eventsopt-out for cloud reporting- No
--dry-runonworkspace push
Installable via Homebrew (postman-cli), npm/npx wrapper, or official curl/PowerShell installers across macOS, Linux, and Windows.
- Homebrew formula and npm
postman-cliinstaller
Covers collection assertions, OpenAPI/AsyncAPI governance linting, workspace sync, and ad-hoc HTTP/gRPC requests.
- Unified
collection,spec,workspace, andrequestcommands
Official first-party Postman tool, though distributed as a closed-source proprietary binary.
- Official Postman Learning Center distribution
Thorough official Postman Learning Center CLI reference and built-in --help.
- Official docs at learning.postman.com
Security, Auth & Guardrails
Authenticates headlessly via --api-key (or POSTMAN_API_KEY) or stores session credentials locally from postman login.
Proprietary free CLI binary; Postman Cloud workspace sync and governance features follow Postman plan limits.
# Postman CLI Agent Rules - Pass `--no-report-events --json` on local test/lint runs to avoid leaking run metadata to Postman Cloud unintentionally. - Target an explicit `-w/--workspace` ID and pass `--api-key` in headless sessions.
Agent-Ready Command Recipes
Safe Read-Only Queries
postman spec lint openapi.yaml --issueType syntax --json
Validates OpenAPI syntax locally and emits JSON diagnostics without mutating workspace state.
postman collection run ./collection.json --no-report-events --json
Executes local API assertions in JSON mode while suppressing Postman Cloud telemetry upload.
Controlled Writes & Previews
postman workspace push -w $POSTMAN_WORKSPACE_ID --api-key $POSTMAN_API_KEY -y --json
Pushes local collection/spec updates to the targeted Postman Cloud workspace non-interactively.
Strengths for Agents
- + Supports
--json,--api-key,-w/--workspace, and-y/--yesfor headless CI execution. - +
postman spec lintcatches OpenAPI/AsyncAPI syntax and governance issues locally.
Caveats & Pitfalls
- ! Proprietary closed-source binary; npm package
postman-cliis an installer wrapper. - ! Cloud event reporting (
--report-events) is enabled by default unless--no-report-eventsis passed.