postman-cli 1.88.0 → 1.89.0
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 +239 -6
- 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-13" "v1.89.0" "Postman CLI Manual"
|
|
2
2
|
.SH NAME
|
|
3
3
|
postman \- Command\-line companion utility for Postman
|
|
4
4
|
.SH SYNOPSIS
|
|
@@ -1435,6 +1435,9 @@ Prevents reading the files situated outside of the working directory
|
|
|
1435
1435
|
.B \-k, \-\-insecure
|
|
1436
1436
|
Disables SSL validations
|
|
1437
1437
|
.TP
|
|
1438
|
+
.B \-\-allow\-stdio
|
|
1439
|
+
Allow MCP requests on the stdio transport to start their local server process
|
|
1440
|
+
.TP
|
|
1438
1441
|
.B \-\-ssl\-client\-cert\-list <path>
|
|
1439
1442
|
Specify the path to a client certificates configurations (JSON)
|
|
1440
1443
|
.TP
|
|
@@ -9286,7 +9289,7 @@ Examples:
|
|
|
9286
9289
|
|
|
9287
9290
|
|
|
9288
9291
|
.SS "mcp"
|
|
9289
|
-
Explore MCP servers: inspect them, list and call tools, read resources, and
|
|
9292
|
+
Explore MCP servers: inspect them, list and call tools, read resources, get prompts, and sign in to servers that use OAuth
|
|
9290
9293
|
|
|
9291
9294
|
.B Usage:
|
|
9292
9295
|
[options] [command]
|
|
@@ -9298,13 +9301,27 @@ Each command takes one target: \-\-request <path|id>, \-\-url <url>, or a local
|
|
|
9298
9301
|
$ postman mcp tools list \-\-allow\-stdio \-\- node server.js \-\-transport stdio
|
|
9299
9302
|
Every MCP operation has a 60000 ms time limit; change it with \-\-timeout\-request.
|
|
9300
9303
|
|
|
9301
|
-
|
|
9302
|
-
\-H "Authorization:
|
|
9303
|
-
|
|
9304
|
+
Which credentials a command sends to an HTTP server, first match wins:
|
|
9305
|
+
1. \-H "Authorization: ..."
|
|
9306
|
+
2. the saved request's own auth (\-\-request)
|
|
9307
|
+
3. auth the request inherits from its folder, then its collection
|
|
9308
|
+
4. the sign\-in `postman mcp login \-\-url <url>` stored (refreshed when it expires)
|
|
9309
|
+
5. none
|
|
9310
|
+
Levels 1\-3 are sent as given, never refreshed, and never lead to a sign\-in.
|
|
9311
|
+
|
|
9312
|
+
When a server that offers OAuth answers 401/403 and nothing was sent (or the stored sign\-in expired),
|
|
9313
|
+
a command in a terminal asks to sign in in your browser, then retries once. \-\-login signs in without
|
|
9314
|
+
asking (exit 8 where no browser can open); \-\-no\-login never asks. POSTMAN_MCP_LOGIN=prompt|always|never
|
|
9315
|
+
sets the default (prompt). List stored sign\-ins with `postman mcp credentials`; remove them with
|
|
9316
|
+
`postman mcp logout \-\-url <url>` or `\-\-all`.
|
|
9317
|
+
POSTMAN_MCP_CREDENTIALS_STORE=file|none sets where sign\-ins are kept: file (default,
|
|
9318
|
+
~/.postman/mcp\-credentials.json) or none (memory only; a sign\-in lasts one command, and stored
|
|
9319
|
+
sign\-ins are not read). Another value of either variable exits 2; a stdio target ignores both.
|
|
9304
9320
|
|
|
9305
9321
|
Exit codes: 0 ok, 1 failure (including a tool result with isError), 2 usage, 3 the server
|
|
9306
9322
|
rejected or requires credentials (HTTP 401/403), 4 inspect could not list everything, 5 cancelled,
|
|
9307
|
-
8 refused (stdio without \-\-allow\-stdio
|
|
9323
|
+
8 refused (stdio without \-\-allow\-stdio, login or \-\-login cannot open a browser here, or
|
|
9324
|
+
logout \-\-all without a terminal or \-\-yes).
|
|
9308
9325
|
|
|
9309
9326
|
|
|
9310
9327
|
.B Subcommands:
|
|
@@ -9320,6 +9337,15 @@ List and read the resources an MCP server offers
|
|
|
9320
9337
|
.TP
|
|
9321
9338
|
.B mcp prompts
|
|
9322
9339
|
List and get the prompts an MCP server offers
|
|
9340
|
+
.TP
|
|
9341
|
+
.B mcp login
|
|
9342
|
+
Sign in to an MCP server that uses OAuth, in a browser, and store the token every postman mcp command then sends to it
|
|
9343
|
+
.TP
|
|
9344
|
+
.B mcp logout
|
|
9345
|
+
Remove the credentials postman mcp login stored for an MCP server, and revoke them at its authorization server
|
|
9346
|
+
.TP
|
|
9347
|
+
.B mcp credentials
|
|
9348
|
+
List the sign\-ins postman mcp login stored: server, issuer, client, scopes, expiry and whether they refresh. Never shows a token or secret
|
|
9323
9349
|
|
|
9324
9350
|
.SS "mcp inspect"
|
|
9325
9351
|
Show what an MCP server reports at initialize: capabilities and counts of tools, resources, resource templates and prompts (initialize, then every */list)
|
|
@@ -9370,9 +9396,19 @@ Resolve {{variables}} from a local environment file
|
|
|
9370
9396
|
.TP
|
|
9371
9397
|
.B \-\-env\-var <key=value>
|
|
9372
9398
|
Set an environment variable for {{variable}} resolution. Repeatable. (default: )
|
|
9399
|
+
.TP
|
|
9400
|
+
.B \-\-login
|
|
9401
|
+
When an HTTP server needs an OAuth sign\-in, sign in without asking (opens a browser)
|
|
9402
|
+
.TP
|
|
9403
|
+
.B \-\-no\-login
|
|
9404
|
+
Never ask to sign in; exit 3 when an HTTP server needs one
|
|
9373
9405
|
|
|
9374
9406
|
.TP Examples:
|
|
9375
9407
|
|
|
9408
|
+
The Auth line (`auth` in \-\-json) names the credentials the session sent and where they came from:
|
|
9409
|
+
the Authorization header (\-H), saved auth on the request, a folder or the collection, your
|
|
9410
|
+
postman mcp login sign\-in, or none. It never shows their value.
|
|
9411
|
+
|
|
9376
9412
|
Examples:
|
|
9377
9413
|
$ postman mcp inspect \-\-url https://example.com/mcp \-H "Authorization: Bearer $TOKEN"
|
|
9378
9414
|
$ postman mcp inspect \-\-command "npx \-y @modelcontextprotocol/server\-everything" \-\-allow\-stdio \-\-json
|
|
@@ -9442,6 +9478,12 @@ Resolve {{variables}} from a local environment file
|
|
|
9442
9478
|
.TP
|
|
9443
9479
|
.B \-\-env\-var <key=value>
|
|
9444
9480
|
Set an environment variable for {{variable}} resolution. Repeatable. (default: )
|
|
9481
|
+
.TP
|
|
9482
|
+
.B \-\-login
|
|
9483
|
+
When an HTTP server needs an OAuth sign\-in, sign in without asking (opens a browser)
|
|
9484
|
+
.TP
|
|
9485
|
+
.B \-\-no\-login
|
|
9486
|
+
Never ask to sign in; exit 3 when an HTTP server needs one
|
|
9445
9487
|
|
|
9446
9488
|
.SS "mcp tools call"
|
|
9447
9489
|
Call one tool and print its result (tools/call)
|
|
@@ -9498,6 +9540,12 @@ Resolve {{variables}} from a local environment file
|
|
|
9498
9540
|
.TP
|
|
9499
9541
|
.B \-\-env\-var <key=value>
|
|
9500
9542
|
Set an environment variable for {{variable}} resolution. Repeatable. (default: )
|
|
9543
|
+
.TP
|
|
9544
|
+
.B \-\-login
|
|
9545
|
+
When an HTTP server needs an OAuth sign\-in, sign in without asking (opens a browser)
|
|
9546
|
+
.TP
|
|
9547
|
+
.B \-\-no\-login
|
|
9548
|
+
Never ask to sign in; exit 3 when an HTTP server needs one
|
|
9501
9549
|
|
|
9502
9550
|
.TP Examples:
|
|
9503
9551
|
|
|
@@ -9577,6 +9625,12 @@ Resolve {{variables}} from a local environment file
|
|
|
9577
9625
|
.TP
|
|
9578
9626
|
.B \-\-env\-var <key=value>
|
|
9579
9627
|
Set an environment variable for {{variable}} resolution. Repeatable. (default: )
|
|
9628
|
+
.TP
|
|
9629
|
+
.B \-\-login
|
|
9630
|
+
When an HTTP server needs an OAuth sign\-in, sign in without asking (opens a browser)
|
|
9631
|
+
.TP
|
|
9632
|
+
.B \-\-no\-login
|
|
9633
|
+
Never ask to sign in; exit 3 when an HTTP server needs one
|
|
9580
9634
|
|
|
9581
9635
|
.SS "mcp resources templates"
|
|
9582
9636
|
List the resource templates an MCP server offers
|
|
@@ -9638,6 +9692,12 @@ Resolve {{variables}} from a local environment file
|
|
|
9638
9692
|
.TP
|
|
9639
9693
|
.B \-\-env\-var <key=value>
|
|
9640
9694
|
Set an environment variable for {{variable}} resolution. Repeatable. (default: )
|
|
9695
|
+
.TP
|
|
9696
|
+
.B \-\-login
|
|
9697
|
+
When an HTTP server needs an OAuth sign\-in, sign in without asking (opens a browser)
|
|
9698
|
+
.TP
|
|
9699
|
+
.B \-\-no\-login
|
|
9700
|
+
Never ask to sign in; exit 3 when an HTTP server needs one
|
|
9641
9701
|
|
|
9642
9702
|
.SS "mcp resources read"
|
|
9643
9703
|
Read one resource and print its contents (resources/read)
|
|
@@ -9688,6 +9748,12 @@ Resolve {{variables}} from a local environment file
|
|
|
9688
9748
|
.TP
|
|
9689
9749
|
.B \-\-env\-var <key=value>
|
|
9690
9750
|
Set an environment variable for {{variable}} resolution. Repeatable. (default: )
|
|
9751
|
+
.TP
|
|
9752
|
+
.B \-\-login
|
|
9753
|
+
When an HTTP server needs an OAuth sign\-in, sign in without asking (opens a browser)
|
|
9754
|
+
.TP
|
|
9755
|
+
.B \-\-no\-login
|
|
9756
|
+
Never ask to sign in; exit 3 when an HTTP server needs one
|
|
9691
9757
|
|
|
9692
9758
|
.SS "mcp prompts"
|
|
9693
9759
|
List and get the prompts an MCP server offers
|
|
@@ -9752,6 +9818,12 @@ Resolve {{variables}} from a local environment file
|
|
|
9752
9818
|
.TP
|
|
9753
9819
|
.B \-\-env\-var <key=value>
|
|
9754
9820
|
Set an environment variable for {{variable}} resolution. Repeatable. (default: )
|
|
9821
|
+
.TP
|
|
9822
|
+
.B \-\-login
|
|
9823
|
+
When an HTTP server needs an OAuth sign\-in, sign in without asking (opens a browser)
|
|
9824
|
+
.TP
|
|
9825
|
+
.B \-\-no\-login
|
|
9826
|
+
Never ask to sign in; exit 3 when an HTTP server needs one
|
|
9755
9827
|
|
|
9756
9828
|
.SS "mcp prompts get"
|
|
9757
9829
|
Get one prompt with its arguments filled in (prompts/get)
|
|
@@ -9808,6 +9880,167 @@ Resolve {{variables}} from a local environment file
|
|
|
9808
9880
|
.TP
|
|
9809
9881
|
.B \-\-env\-var <key=value>
|
|
9810
9882
|
Set an environment variable for {{variable}} resolution. Repeatable. (default: )
|
|
9883
|
+
.TP
|
|
9884
|
+
.B \-\-login
|
|
9885
|
+
When an HTTP server needs an OAuth sign\-in, sign in without asking (opens a browser)
|
|
9886
|
+
.TP
|
|
9887
|
+
.B \-\-no\-login
|
|
9888
|
+
Never ask to sign in; exit 3 when an HTTP server needs one
|
|
9889
|
+
|
|
9890
|
+
.SS "mcp login"
|
|
9891
|
+
Sign in to an MCP server that uses OAuth, in a browser, and store the token every postman mcp command then sends to it
|
|
9892
|
+
|
|
9893
|
+
.B Usage:
|
|
9894
|
+
[options]
|
|
9895
|
+
|
|
9896
|
+
.B Options:
|
|
9897
|
+
.TP
|
|
9898
|
+
.B \-\-scope <scopes>
|
|
9899
|
+
Space\-separated scopes to request (default: what the server asks for)
|
|
9900
|
+
.TP
|
|
9901
|
+
.B \-\-client\-id <id>
|
|
9902
|
+
Use a client registered with the authorization server, instead of registering one dynamically
|
|
9903
|
+
.TP
|
|
9904
|
+
.B \-\-client\-secret <secret>
|
|
9905
|
+
The \-\-client\-id client's secret, if it has one
|
|
9906
|
+
.TP
|
|
9907
|
+
.B \-\-callback\-port <port>
|
|
9908
|
+
Receive the sign\-in on this port of 127.0.0.1, to match a registered redirect URI http://127.0.0.1:<port>/callback
|
|
9909
|
+
.TP
|
|
9910
|
+
.B \-\-no\-browser
|
|
9911
|
+
Print the sign\-in link to stderr instead of opening a browser. In a terminal, also accepts the URL the browser was redirected to, pasted, for a browser on another machine
|
|
9912
|
+
.TP
|
|
9913
|
+
.B \-H, \-\-header <key:value>
|
|
9914
|
+
Add an HTTP header to the sign\-in's first request to the server, in key:value format. Repeatable. (default: )
|
|
9915
|
+
.TP
|
|
9916
|
+
.B \-k, \-\-insecure
|
|
9917
|
+
Disable TLS certificate verification
|
|
9918
|
+
.TP
|
|
9919
|
+
.B \-\-timeout\-request <ms>
|
|
9920
|
+
Time limit for each request in ms (default: 60000, 0 for none)
|
|
9921
|
+
.TP
|
|
9922
|
+
.B \-\-debug
|
|
9923
|
+
Print each OAuth request's method, URL without its query, and status to stderr
|
|
9924
|
+
.TP
|
|
9925
|
+
.B \-\-request <path|id>
|
|
9926
|
+
A saved local\-mode MCP request ($kind: mcp\-request): a .request.yaml path, or the id of an MCP request in postman/collections/
|
|
9927
|
+
.TP
|
|
9928
|
+
.B \-\-url <url>
|
|
9929
|
+
The MCP server URL
|
|
9930
|
+
.TP
|
|
9931
|
+
.B \-e, \-\-environment <path>
|
|
9932
|
+
Resolve {{variables}} from a local environment file
|
|
9933
|
+
.TP
|
|
9934
|
+
.B \-\-env\-var <key=value>
|
|
9935
|
+
Set an environment variable for {{variable}} resolution. Repeatable. (default: )
|
|
9936
|
+
.TP
|
|
9937
|
+
.B \-\-json
|
|
9938
|
+
Print the result as JSON
|
|
9939
|
+
|
|
9940
|
+
.TP Examples:
|
|
9941
|
+
|
|
9942
|
+
Stores the tokens in the Postman home directory (~/.postman/mcp\-credentials.json), readable only by
|
|
9943
|
+
you. Signing in again replaces what was stored for the server. List what is stored with
|
|
9944
|
+
`postman mcp credentials`. With POSTMAN_MCP_CREDENTIALS_STORE=none nothing is stored: the sign\-in
|
|
9945
|
+
only checks that you can sign in, and its token is lost when the command ends.
|
|
9946
|
+
|
|
9947
|
+
Which credentials a command sends, first match wins:
|
|
9948
|
+
1. \-H "Authorization: ..."
|
|
9949
|
+
2. the saved request's own auth (\-\-request)
|
|
9950
|
+
3. auth the request inherits from its folder, then its collection
|
|
9951
|
+
4. the sign\-in this command stored
|
|
9952
|
+
5. none
|
|
9953
|
+
Levels 1\-3 are sent as given, never refreshed, and never lead to a sign\-in. A stored sign\-in is
|
|
9954
|
+
refreshed when it expires.
|
|
9955
|
+
|
|
9956
|
+
With \-\-no\-browser in a terminal, sign in on any machine, then paste the URL the browser ended on
|
|
9957
|
+
(http://127.0.0.1:<port>/callback?...). The pasted URL is not shown.
|
|
9958
|
+
|
|
9959
|
+
Examples:
|
|
9960
|
+
$ postman mcp login \-\-url https://example.com/mcp
|
|
9961
|
+
$ postman mcp login \-\-url https://example.com/mcp \-\-no\-browser
|
|
9962
|
+
$ postman mcp login \-\-request "postman/collections/My Server/whoami.request.yaml" \-\-scope "read write"
|
|
9963
|
+
$ postman mcp login \-\-url https://example.com/mcp \-\-client\-id my\-client \-\-callback\-port 8765
|
|
9964
|
+
|
|
9965
|
+
|
|
9966
|
+
.SS "mcp logout"
|
|
9967
|
+
Remove the credentials postman mcp login stored for an MCP server, and revoke them at its authorization server
|
|
9968
|
+
|
|
9969
|
+
.B Usage:
|
|
9970
|
+
[options]
|
|
9971
|
+
|
|
9972
|
+
.B Options:
|
|
9973
|
+
.TP
|
|
9974
|
+
.B \-\-all
|
|
9975
|
+
Remove every stored sign\-in
|
|
9976
|
+
.TP
|
|
9977
|
+
.B \-y, \-\-yes
|
|
9978
|
+
With \-\-all, skip the confirmation; required when there is no terminal
|
|
9979
|
+
.TP
|
|
9980
|
+
.B \-\-no\-revoke
|
|
9981
|
+
Only remove the credentials from this machine; do not revoke them
|
|
9982
|
+
.TP
|
|
9983
|
+
.B \-k, \-\-insecure
|
|
9984
|
+
Disable TLS certificate verification for the revocation
|
|
9985
|
+
.TP
|
|
9986
|
+
.B \-\-timeout\-request <ms>
|
|
9987
|
+
Time limit for each revocation request in ms (default: 60000, 0 for none)
|
|
9988
|
+
.TP
|
|
9989
|
+
.B \-\-debug
|
|
9990
|
+
Print each revocation request's method, URL without its query, and status to stderr
|
|
9991
|
+
.TP
|
|
9992
|
+
.B \-\-request <path|id>
|
|
9993
|
+
A saved local\-mode MCP request ($kind: mcp\-request): a .request.yaml path, or the id of an MCP request in postman/collections/
|
|
9994
|
+
.TP
|
|
9995
|
+
.B \-\-url <url>
|
|
9996
|
+
The MCP server URL
|
|
9997
|
+
.TP
|
|
9998
|
+
.B \-e, \-\-environment <path>
|
|
9999
|
+
Resolve {{variables}} from a local environment file
|
|
10000
|
+
.TP
|
|
10001
|
+
.B \-\-env\-var <key=value>
|
|
10002
|
+
Set an environment variable for {{variable}} resolution. Repeatable. (default: )
|
|
10003
|
+
.TP
|
|
10004
|
+
.B \-\-json
|
|
10005
|
+
Print the result as JSON
|
|
10006
|
+
|
|
10007
|
+
.TP Examples:
|
|
10008
|
+
|
|
10009
|
+
Removes the credentials from this machine first, then revokes the refresh and access tokens at the
|
|
10010
|
+
authorization server (RFC 7009), best effort: a failed revocation is a warning on stderr and does
|
|
10011
|
+
not change the exit code. \-\-no\-revoke skips it. \-\-all asks first in a terminal; without one it
|
|
10012
|
+
needs \-\-yes, and exits 8 otherwise.
|
|
10013
|
+
|
|
10014
|
+
Works on the credentials file with POSTMAN_MCP_CREDENTIALS_STORE=none too, so it can remove and revoke
|
|
10015
|
+
a sign\-in stored before; it never adds to the file.
|
|
10016
|
+
|
|
10017
|
+
Examples:
|
|
10018
|
+
$ postman mcp logout \-\-url https://example.com/mcp
|
|
10019
|
+
$ postman mcp logout \-\-request "postman/collections/My Server/whoami.request.yaml" \-\-json
|
|
10020
|
+
$ postman mcp logout \-\-all \-\-yes \-\-json
|
|
10021
|
+
|
|
10022
|
+
|
|
10023
|
+
.SS "mcp credentials"
|
|
10024
|
+
List the sign\-ins postman mcp login stored: server, issuer, client, scopes, expiry and whether they refresh. Never shows a token or secret
|
|
10025
|
+
|
|
10026
|
+
.B Usage:
|
|
10027
|
+
[options]
|
|
10028
|
+
|
|
10029
|
+
.B Options:
|
|
10030
|
+
.TP
|
|
10031
|
+
.B \-\-json
|
|
10032
|
+
Print the sign\-ins as JSON
|
|
10033
|
+
|
|
10034
|
+
.TP Examples:
|
|
10035
|
+
|
|
10036
|
+
Reads ~/.postman/mcp\-credentials.json only; nothing is sent. Remove a sign\-in with
|
|
10037
|
+
`postman mcp logout \-\-url <url>`, or all of them with `postman mcp logout \-\-all`.
|
|
10038
|
+
With POSTMAN_MCP_CREDENTIALS_STORE=none, the file is not read and the list says storage is off.
|
|
10039
|
+
|
|
10040
|
+
Examples:
|
|
10041
|
+
$ postman mcp credentials
|
|
10042
|
+
$ postman mcp credentials \-\-json
|
|
10043
|
+
|
|
9811
10044
|
|
|
9812
10045
|
.SH SEE ALSO
|
|
9813
10046
|
Full documentation: https://learning.postman.com/docs/postman\-cli/postman\-cli\-overview/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "postman-cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.89.0",
|
|
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.89.0",
|
|
61
|
+
"@postman/pm-bin-macos-x64": "1.89.0",
|
|
62
|
+
"@postman/pm-bin-linux-x64": "1.89.0",
|
|
63
|
+
"@postman/pm-bin-linux-arm64": "1.89.0",
|
|
64
|
+
"@postman/pm-bin-windows-x64": "1.89.0"
|
|
65
65
|
}
|
|
66
66
|
}
|