postman-cli 1.24.1 → 1.25.0-preview.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/man/postman.1 +18 -15
- package/package.json +5 -5
package/man/postman.1
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.TH POSTMAN 1 "2025-
|
|
1
|
+
.TH POSTMAN 1 "2025-12-01" "v1.25.0-preview.1" "Postman CLI Manual"
|
|
2
2
|
.SH NAME
|
|
3
3
|
postman \- Command\-line companion utility for Postman
|
|
4
4
|
.SH SYNOPSIS
|
|
@@ -310,7 +310,7 @@ Additional trusted CA certificates (PEM file, can contain multiple certs)
|
|
|
310
310
|
Enable the metrics server for health checks
|
|
311
311
|
.TP
|
|
312
312
|
.B \-\-metrics\-port <port>
|
|
313
|
-
Port for the metrics server (default: 9090)
|
|
313
|
+
Port for the metrics server (default: 9090)
|
|
314
314
|
|
|
315
315
|
.SS "spec"
|
|
316
316
|
Lint and validate Specifications from the command line
|
|
@@ -390,10 +390,10 @@ Maximum wait time for run completion in milliseconds (default: 15 minutes) (defa
|
|
|
390
390
|
.B Options:
|
|
391
391
|
.TP
|
|
392
392
|
.B \-\-collections\-dir <path>
|
|
393
|
-
Path to the collections directory (default:
|
|
393
|
+
Path to the collections directory (default: postman/collections)
|
|
394
394
|
.TP
|
|
395
395
|
.B \-\-environments\-dir <path>
|
|
396
|
-
Path to the environments directory (default:
|
|
396
|
+
Path to the environments directory (default: postman/environments)
|
|
397
397
|
|
|
398
398
|
.SS "workspace push"
|
|
399
399
|
[BETA] Push local collection, environment, and specification changes to Postman workspace.
|
|
@@ -404,10 +404,10 @@ Path to the environments directory (default: .postman/environments)
|
|
|
404
404
|
.B Options:
|
|
405
405
|
.TP
|
|
406
406
|
.B \-\-collections\-dir <path>
|
|
407
|
-
Path to the collections directory (default:
|
|
407
|
+
Path to the collections directory (default: postman/collections)
|
|
408
408
|
.TP
|
|
409
409
|
.B \-\-environments\-dir <path>
|
|
410
|
-
Path to the environments directory (default:
|
|
410
|
+
Path to the environments directory (default: postman/environments)
|
|
411
411
|
.TP
|
|
412
412
|
.B \-\-no\-prepare
|
|
413
413
|
Skip the prepare step before pushing
|
|
@@ -479,8 +479,11 @@ Save complete response to JSON file.Useful for debugging or further processing.
|
|
|
479
479
|
.B \-\-verbose
|
|
480
480
|
Show detailed request and response information including headers, body, and metadata.
|
|
481
481
|
.TP
|
|
482
|
-
.B \-
|
|
483
|
-
|
|
482
|
+
.B \-\-response\-only
|
|
483
|
+
suppress all output except response body. Useful for piping to other commands.
|
|
484
|
+
.TP
|
|
485
|
+
.B \-\-quiet
|
|
486
|
+
suppress all output except response body. Useful for piping to other commands.
|
|
484
487
|
.TP
|
|
485
488
|
.B \-\-debug
|
|
486
489
|
Debug mode: show detailed execution information including retry attempts, redirects, and timing breakdowns.
|
|
@@ -636,11 +639,11 @@ Examples:
|
|
|
636
639
|
Save complete response to JSON file (status, headers, body, timings):
|
|
637
640
|
postman request https://api.example.com/data \-\-output response.json
|
|
638
641
|
|
|
639
|
-
Download binary file using
|
|
640
|
-
postman request https://cdn.example.com/archive.zip \-\-
|
|
642
|
+
Download binary file using response only mode and shell redirection:
|
|
643
|
+
postman request https://cdn.example.com/archive.zip \-\-response\-only > archive.zip
|
|
641
644
|
|
|
642
|
-
|
|
643
|
-
postman request https://api.example.com/data \-\-
|
|
645
|
+
Response only mode \- only output response body (useful for piping):
|
|
646
|
+
postman request https://api.example.com/data \-\-response\-only | jq '.results[]'
|
|
644
647
|
|
|
645
648
|
Verbose mode \- show all request/response details:
|
|
646
649
|
postman request https://api.example.com/data \-\-verbose
|
|
@@ -658,7 +661,7 @@ Examples:
|
|
|
658
661
|
const resp = pm.response.json(); \e
|
|
659
662
|
pm.expect(resp.status).to.equal('healthy'); \e
|
|
660
663
|
});" \e
|
|
661
|
-
\-\-
|
|
664
|
+
\-\-response\-only
|
|
662
665
|
|
|
663
666
|
Long\-running request with complete response capture:
|
|
664
667
|
postman request https://api.example.com/long\-process \e
|
|
@@ -669,7 +672,7 @@ Examples:
|
|
|
669
672
|
Chain requests using jq and environment variables:
|
|
670
673
|
TOKEN=$(postman request POST https://api.example.com/login \e
|
|
671
674
|
\-\-body '{"username":"admin","password":"pass"}' \e
|
|
672
|
-
\-\-
|
|
675
|
+
\-\-response\-only | jq \-r '.token')
|
|
673
676
|
|
|
674
677
|
postman request https://api.example.com/protected \e
|
|
675
678
|
\-\-auth\-bearer\-token "${TOKEN}" \e
|
|
@@ -696,7 +699,7 @@ Examples:
|
|
|
696
699
|
N: Number of failed tests (e.g., exit code 3 means 3 tests failed)
|
|
697
700
|
|
|
698
701
|
Piping Output:
|
|
699
|
-
postman request https://api.example.com/users \-\-
|
|
702
|
+
postman request https://api.example.com/users \-\-response\-only | jq '.[] | .name'
|
|
700
703
|
|
|
701
704
|
|
|
702
705
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "postman-cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.25.0-preview.1",
|
|
4
4
|
"description": "Official Postman CLI - Command-line companion for API development, testing, and automation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"postman",
|
|
@@ -58,9 +58,9 @@
|
|
|
58
58
|
"man/"
|
|
59
59
|
],
|
|
60
60
|
"optionalDependencies": {
|
|
61
|
-
"@postman/pm-bin-macos-arm64": "1.
|
|
62
|
-
"@postman/pm-bin-macos-x64": "1.
|
|
63
|
-
"@postman/pm-bin-linux-x64": "1.
|
|
64
|
-
"@postman/pm-bin-windows-x64": "1.
|
|
61
|
+
"@postman/pm-bin-macos-arm64": "1.25.0-preview.1",
|
|
62
|
+
"@postman/pm-bin-macos-x64": "1.25.0-preview.1",
|
|
63
|
+
"@postman/pm-bin-linux-x64": "1.25.0-preview.1",
|
|
64
|
+
"@postman/pm-bin-windows-x64": "1.25.0-preview.1"
|
|
65
65
|
}
|
|
66
66
|
}
|