postman-cli 1.92.1 → 1.93.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 +189 -2
- package/package.json +6 -6
package/man/postman.1
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.TH POSTMAN 1 "2026-11-
|
|
1
|
+
.TH POSTMAN 1 "2026-11-23" "v1.93.1" "Postman CLI Manual"
|
|
2
2
|
.SH NAME
|
|
3
3
|
postman \- Command\-line companion utility for Postman
|
|
4
4
|
.SH SYNOPSIS
|
|
@@ -1469,7 +1469,7 @@ Run a collection by ID or path, or a request file.
|
|
|
1469
1469
|
Specify an Id or path to a Postman Environment
|
|
1470
1470
|
.TP
|
|
1471
1471
|
.B \-g, \-\-globals <path>
|
|
1472
|
-
Specify
|
|
1472
|
+
Specify a path to a file containing Postman Globals, or a workspace id to load that workspace's cloud globals
|
|
1473
1473
|
.TP
|
|
1474
1474
|
.B \-r, \-\-reporters [reporter]
|
|
1475
1475
|
Specify the reporters to use for the run: cli,json,junit,html. For multiple reporters, provide their names as a comma\-separated list (E.g., \-r cli,json) (default: cli)
|
|
@@ -1501,6 +1501,41 @@ Type: boolean, Default value: false
|
|
|
1501
1501
|
[Optional] Remove all request and response headers, as well as request and response bodies, from the report. Supported reporters: json, html.
|
|
1502
1502
|
Type: boolean, Default value: false
|
|
1503
1503
|
.TP
|
|
1504
|
+
.B \-\-upload\-request\-bodies
|
|
1505
|
+
[Optional] Upload request bodies with run data.
|
|
1506
|
+
Type: boolean, Default value: false
|
|
1507
|
+
.TP
|
|
1508
|
+
.B \-\-no\-upload\-request\-bodies
|
|
1509
|
+
Do not upload request bodies with run data
|
|
1510
|
+
.TP
|
|
1511
|
+
.B \-\-upload\-response\-bodies
|
|
1512
|
+
[Optional] Upload response bodies with run data.
|
|
1513
|
+
Type: boolean, Default value: false
|
|
1514
|
+
.TP
|
|
1515
|
+
.B \-\-no\-upload\-response\-bodies
|
|
1516
|
+
Do not upload response bodies with run data
|
|
1517
|
+
.TP
|
|
1518
|
+
.B \-\-upload\-headers
|
|
1519
|
+
[Optional] Upload request and response headers with run data. The values of authorization, proxy\-authorization, cookie, set\-cookie, x\-api\-key, x\-auth\-token and x\-access\-token are always replaced with [redacted]. Matching is by exact header name, so a vendor\-specific auth header is not covered.
|
|
1520
|
+
Type: boolean, Default value: false
|
|
1521
|
+
.TP
|
|
1522
|
+
.B \-\-no\-upload\-headers
|
|
1523
|
+
Do not upload request or response headers with run data
|
|
1524
|
+
.TP
|
|
1525
|
+
.B \-\-upload\-payloads\-on\-failure\-only
|
|
1526
|
+
[Optional] Only upload payloads for requests that errored, failed an assertion, or returned a 4xx/5xx. Recommended for large runs.
|
|
1527
|
+
Type: boolean, Default value: false
|
|
1528
|
+
.TP
|
|
1529
|
+
.B \-\-no\-upload\-payloads\-on\-failure\-only
|
|
1530
|
+
Upload payloads for all requests, not just failures
|
|
1531
|
+
.TP
|
|
1532
|
+
.B \-\-upload\-all\-headers\-and\-bodies
|
|
1533
|
+
[Optional] Upload request and response headers, as well as request and response bodies, with run data. Overrides the individual \-\-upload\-* flags.
|
|
1534
|
+
Type: boolean, Default value: false
|
|
1535
|
+
.TP
|
|
1536
|
+
.B \-\-no\-upload\-all\-headers\-and\-bodies
|
|
1537
|
+
Do not apply the \-\-upload\-all\-headers\-and\-bodies override; the individual \-\-upload\-* flags decide
|
|
1538
|
+
.TP
|
|
1504
1539
|
.B \-n, \-\-iteration\-count <n>
|
|
1505
1540
|
Define the number of iterations to run
|
|
1506
1541
|
.TP
|
|
@@ -6443,6 +6478,9 @@ Live output format: auto (default, human\-readable logs) or ndjson (one JSON eve
|
|
|
6443
6478
|
.B \-\-verbose
|
|
6444
6479
|
Show request and response headers and bodies for each request. By default each request prints one line, plus any applied scenario or error.
|
|
6445
6480
|
.TP
|
|
6481
|
+
.B \-\-max\-live\-mocks <count>
|
|
6482
|
+
How many of the simulation's mocks may run at once. Each mock starts on its first request and stays running; once this many are running, starting another stops the least recently used idle one first, and it starts again on its next request. A mock holding data is never stopped, so a simulation whose mocks all hold data can refuse a request with 503 at this limit. Defaults to what this machine's memory allows.
|
|
6483
|
+
.TP
|
|
6446
6484
|
.B \-\-proxy
|
|
6447
6485
|
Serve the mocks behind a local HTTP(S) forward proxy instead of one routed port, so a repo under test can point HTTP_PROXY/HTTPS_PROXY at it and reach each mock by hostname without code changes. Each mock is reached on the hostnames its `origin:` declares; a request to any other host reaches the real host unchanged.
|
|
6448
6486
|
.TP
|
|
@@ -10305,6 +10343,155 @@ Examples:
|
|
|
10305
10343
|
$ postman mcp credentials \-\-json
|
|
10306
10344
|
|
|
10307
10345
|
|
|
10346
|
+
.SS "api\-catalog\-setup"
|
|
10347
|
+
Bulk\-onboard your team's GitHub repositories into the API Catalog.
|
|
10348
|
+
|
|
10349
|
+
.B Usage:
|
|
10350
|
+
[options] [command]
|
|
10351
|
+
|
|
10352
|
+
.B Subcommands:
|
|
10353
|
+
.TP
|
|
10354
|
+
.B api-catalog-setup start
|
|
10355
|
+
Start a scan of your repositories. It runs on the service; follow it with status.
|
|
10356
|
+
.TP
|
|
10357
|
+
.B api-catalog-setup status
|
|
10358
|
+
Show a plan's progress and result, or the team's active plan and apply.
|
|
10359
|
+
.TP
|
|
10360
|
+
.B api-catalog-setup apply
|
|
10361
|
+
Apply a scanned plan after you confirm. The apply runs on the service.
|
|
10362
|
+
.TP
|
|
10363
|
+
.B api-catalog-setup cancel
|
|
10364
|
+
Cancel a running apply. Steps already written stay written.
|
|
10365
|
+
|
|
10366
|
+
.SS "api\-catalog\-setup start"
|
|
10367
|
+
Start a scan of your repositories. It runs on the service; follow it with status.
|
|
10368
|
+
|
|
10369
|
+
.B Usage:
|
|
10370
|
+
[options] [repositories...]
|
|
10371
|
+
|
|
10372
|
+
.B Options:
|
|
10373
|
+
.TP
|
|
10374
|
+
.B \-\-org <org>
|
|
10375
|
+
Scan only this GitHub organization (repeatable, or comma\-separated)
|
|
10376
|
+
.TP
|
|
10377
|
+
.B \-\-branch <branch>
|
|
10378
|
+
Scan this branch instead of each repository's default branch
|
|
10379
|
+
.TP
|
|
10380
|
+
.B \-\-dry\-run
|
|
10381
|
+
With \-\-wait, show the plan and stop without writing anything
|
|
10382
|
+
.TP
|
|
10383
|
+
.B \-y, \-\-yes
|
|
10384
|
+
Apply the plan when the scan finishes, without asking
|
|
10385
|
+
.TP
|
|
10386
|
+
.B \-\-wait
|
|
10387
|
+
Stay attached: show the plan when the scan finishes, confirm, and follow the apply
|
|
10388
|
+
.TP
|
|
10389
|
+
.B \-\-api\-key <key>
|
|
10390
|
+
Postman API key (falls back to POSTMAN_API_KEY, then a `postman login` session)
|
|
10391
|
+
.TP
|
|
10392
|
+
.B \-\-json
|
|
10393
|
+
Print the plan (and the apply, with \-\-wait) as JSON
|
|
10394
|
+
|
|
10395
|
+
.TP Examples:
|
|
10396
|
+
|
|
10397
|
+
Without repositories, every repository your team's GitHub App connection can see
|
|
10398
|
+
is scanned. Repositories are given as owner/name. \-\-org limits the scan to those
|
|
10399
|
+
organizations.
|
|
10400
|
+
|
|
10401
|
+
The command returns once the scan has started and prints the plan id. Follow it with
|
|
10402
|
+
`status <planId>`, then run `apply <planId>`. With \-\-yes the service applies the plan
|
|
10403
|
+
itself when the scan finishes.
|
|
10404
|
+
|
|
10405
|
+
Exit codes:
|
|
10406
|
+
0 accepted, applied, nothing to apply, or answered no
|
|
10407
|
+
1 the request, the plan or the apply failed
|
|
10408
|
+
3 not signed in, or the credential was rejected
|
|
10409
|
+
4 partial: some services failed (with \-\-wait)
|
|
10410
|
+
5 the prompt was cancelled
|
|
10411
|
+
8 no terminal to confirm and no \-\-yes; nothing was written
|
|
10412
|
+
|
|
10413
|
+
Examples:
|
|
10414
|
+
postman api\-catalog\-setup start
|
|
10415
|
+
postman api\-catalog\-setup start \-\-org acme
|
|
10416
|
+
postman api\-catalog\-setup start acme/billing\-api acme/orders\-api \-\-yes
|
|
10417
|
+
postman api\-catalog\-setup start \-\-org acme \-\-wait \-\-dry\-run
|
|
10418
|
+
|
|
10419
|
+
|
|
10420
|
+
|
|
10421
|
+
.SS "api\-catalog\-setup status"
|
|
10422
|
+
Show a plan's progress and result, or the team's active plan and apply.
|
|
10423
|
+
|
|
10424
|
+
.B Usage:
|
|
10425
|
+
[options] [planId]
|
|
10426
|
+
|
|
10427
|
+
.B Options:
|
|
10428
|
+
.TP
|
|
10429
|
+
.B \-\-api\-key <key>
|
|
10430
|
+
Postman API key (falls back to POSTMAN_API_KEY, then a `postman login` session)
|
|
10431
|
+
.TP
|
|
10432
|
+
.B \-\-json
|
|
10433
|
+
Print the plan and its apply, or the team status, as JSON
|
|
10434
|
+
|
|
10435
|
+
.TP Examples:
|
|
10436
|
+
|
|
10437
|
+
With a plan id: the scan progress, then the plan and its apply. Exits 1 if the plan
|
|
10438
|
+
failed and 4 if its apply was partial. Without one: service counts, any scan in
|
|
10439
|
+
progress, and the running or latest apply.
|
|
10440
|
+
|
|
10441
|
+
|
|
10442
|
+
|
|
10443
|
+
.SS "api\-catalog\-setup apply"
|
|
10444
|
+
Apply a scanned plan after you confirm. The apply runs on the service.
|
|
10445
|
+
|
|
10446
|
+
.B Usage:
|
|
10447
|
+
[options] <planId>
|
|
10448
|
+
|
|
10449
|
+
.B Options:
|
|
10450
|
+
.TP
|
|
10451
|
+
.B \-y, \-\-yes
|
|
10452
|
+
Apply without asking for confirmation
|
|
10453
|
+
.TP
|
|
10454
|
+
.B \-\-wait
|
|
10455
|
+
Wait for the scan if it is still running, and follow the apply to the end
|
|
10456
|
+
.TP
|
|
10457
|
+
.B \-\-api\-key <key>
|
|
10458
|
+
Postman API key (falls back to POSTMAN_API_KEY, then a `postman login` session)
|
|
10459
|
+
.TP
|
|
10460
|
+
.B \-\-json
|
|
10461
|
+
Print the plan and the apply as JSON
|
|
10462
|
+
|
|
10463
|
+
.TP Examples:
|
|
10464
|
+
|
|
10465
|
+
Exit codes:
|
|
10466
|
+
0 accepted, applied, nothing to apply, or answered no
|
|
10467
|
+
1 the request, the plan or the apply failed
|
|
10468
|
+
3 not signed in, or the credential was rejected
|
|
10469
|
+
4 partial: some services failed (with \-\-wait)
|
|
10470
|
+
5 the prompt was cancelled
|
|
10471
|
+
8 no terminal to confirm and no \-\-yes; nothing was written
|
|
10472
|
+
|
|
10473
|
+
|
|
10474
|
+
|
|
10475
|
+
.SS "api\-catalog\-setup cancel"
|
|
10476
|
+
Cancel a running apply. Steps already written stay written.
|
|
10477
|
+
|
|
10478
|
+
.B Usage:
|
|
10479
|
+
[options] <applyId>
|
|
10480
|
+
|
|
10481
|
+
.B Options:
|
|
10482
|
+
.TP
|
|
10483
|
+
.B \-\-api\-key <key>
|
|
10484
|
+
Postman API key (falls back to POSTMAN_API_KEY, then a `postman login` session)
|
|
10485
|
+
.TP
|
|
10486
|
+
.B \-\-json
|
|
10487
|
+
Print the apply as JSON, with alreadyFinished set when there was nothing to cancel
|
|
10488
|
+
|
|
10489
|
+
.TP Examples:
|
|
10490
|
+
|
|
10491
|
+
An apply that already finished is left as it is, and the command exits 0.
|
|
10492
|
+
|
|
10493
|
+
|
|
10494
|
+
|
|
10308
10495
|
.SH SEE ALSO
|
|
10309
10496
|
Full documentation: https://learning.postman.com/docs/postman\-cli/postman\-cli\-overview/
|
|
10310
10497
|
.SH AUTHOR
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "postman-cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.93.1",
|
|
4
4
|
"description": "Official Postman CLI - Command-line companion for API development, testing, and automation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"postman",
|
|
@@ -57,10 +57,10 @@
|
|
|
57
57
|
"scripts/"
|
|
58
58
|
],
|
|
59
59
|
"optionalDependencies": {
|
|
60
|
-
"@postman/pm-bin-macos-arm64": "1.
|
|
61
|
-
"@postman/pm-bin-macos-x64": "1.
|
|
62
|
-
"@postman/pm-bin-linux-x64": "1.
|
|
63
|
-
"@postman/pm-bin-linux-arm64": "1.
|
|
64
|
-
"@postman/pm-bin-windows-x64": "1.
|
|
60
|
+
"@postman/pm-bin-macos-arm64": "1.93.1",
|
|
61
|
+
"@postman/pm-bin-macos-x64": "1.93.1",
|
|
62
|
+
"@postman/pm-bin-linux-x64": "1.93.1",
|
|
63
|
+
"@postman/pm-bin-linux-arm64": "1.93.1",
|
|
64
|
+
"@postman/pm-bin-windows-x64": "1.93.1"
|
|
65
65
|
}
|
|
66
66
|
}
|