postman-cli 1.86.0 → 1.87.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 +165 -25
- 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-08" "v1.87.0" "Postman CLI Manual"
|
|
2
2
|
.SH NAME
|
|
3
3
|
postman \- Command\-line companion utility for Postman
|
|
4
4
|
.SH SYNOPSIS
|
|
@@ -146,11 +146,10 @@ foreign\-postman\-dir, bound\-spec\-missing, spec\-hint\-unmatched. `usageError`
|
|
|
146
146
|
names the flag whose value init could not use. `cloud` says what happened to
|
|
147
147
|
the workspace step, including why it was skipped.
|
|
148
148
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
to create and init may not prompt.
|
|
149
|
+
When signed out, \-\-json starts a temporary session and binds its personal
|
|
150
|
+
workspace without prompting. CI and existing workspace bindings skip creation.
|
|
151
|
+
When signed in, pass \-\-visibility or \-\-yes to create a workspace under \-\-json.
|
|
152
|
+
Stdout carries the payload; guidance for a person goes to stderr.
|
|
154
153
|
|
|
155
154
|
Examples:
|
|
156
155
|
$ postman init
|
|
@@ -324,7 +323,7 @@ Run linting on a local v3 collection at the given file or directory path.
|
|
|
324
323
|
Score a Postman collection for AI readiness by ID, local file path, or local\-mode directory.
|
|
325
324
|
.TP
|
|
326
325
|
.B collection get
|
|
327
|
-
|
|
326
|
+
Read a local collection path or fetch a cloud collection by id, and print V3 JSON.
|
|
328
327
|
.TP
|
|
329
328
|
.B collection delete
|
|
330
329
|
Delete a cloud collection by id or a local collection directory by path. Prompts unless \-\-yes is passed.
|
|
@@ -452,10 +451,10 @@ Resolving a collection by ID requires authentication. Use `postman login` before
|
|
|
452
451
|
|
|
453
452
|
|
|
454
453
|
.SS "collection get"
|
|
455
|
-
|
|
454
|
+
Read a local collection path or fetch a cloud collection by id, and print V3 JSON.
|
|
456
455
|
|
|
457
456
|
.B Usage:
|
|
458
|
-
[options] <id>
|
|
457
|
+
[options] <id\-or\-path>
|
|
459
458
|
|
|
460
459
|
.B Options:
|
|
461
460
|
.TP
|
|
@@ -469,6 +468,7 @@ Print the collection as machine\-readable V3 JSON instead of a table
|
|
|
469
468
|
|
|
470
469
|
Eg. postman collection get 12345\-33823532ab9e41c9b6fd12d0fd459b8b
|
|
471
470
|
postman collection get 0123456789abcdef01234567 \-\-json
|
|
471
|
+
postman collection get "./postman/collections/Orders API" \-\-json
|
|
472
472
|
|
|
473
473
|
|
|
474
474
|
.SS "collection delete"
|
|
@@ -3928,9 +3928,9 @@ Load segments:
|
|
|
3928
3928
|
ramp\-up — 2 segments
|
|
3929
3929
|
|
|
3930
3930
|
peak ┤ _________ at peak __________
|
|
3931
|
-
│ ramp\-up _____
|
|
3932
|
-
│ ______
|
|
3933
|
-
base ┤__ warm\-up ___
|
|
3931
|
+
│ ramp\-up _____╱
|
|
3932
|
+
│ ______╱
|
|
3933
|
+
base ┤__ warm\-up ___╱
|
|
3934
3934
|
└┬─────────────┬─────────────┬───────────────────────────┤ \-\-duration
|
|
3935
3935
|
1 2 (3)
|
|
3936
3936
|
|
|
@@ -3942,10 +3942,10 @@ Load segments:
|
|
|
3942
3942
|
|
|
3943
3943
|
spike — 3 segments · no time at the peak; use \-\-load\-profile peak to hold
|
|
3944
3944
|
|
|
3945
|
-
peak ┤
|
|
3946
|
-
│ ramp\-up _
|
|
3947
|
-
│ _
|
|
3948
|
-
base ┤______ warm\-up _______
|
|
3945
|
+
peak ┤ ╱╲
|
|
3946
|
+
│ ramp\-up _╱ ╲_ ramp\-down
|
|
3947
|
+
│ _╱ ╲_
|
|
3948
|
+
base ┤______ warm\-up _______╱ ╲______ at base _______
|
|
3949
3949
|
└┬─────────────────────┬─────┬─────┬─────────────────────┤ \-\-duration
|
|
3950
3950
|
1 2 3 (4)
|
|
3951
3951
|
|
|
@@ -3958,9 +3958,9 @@ Load segments:
|
|
|
3958
3958
|
peak — 4 segments
|
|
3959
3959
|
|
|
3960
3960
|
peak ┤ __ hold ___
|
|
3961
|
-
│ ramp\-up ____
|
|
3962
|
-
│ ____
|
|
3963
|
-
base ┤_ warm\-up _
|
|
3961
|
+
│ ramp\-up ____╱ ╲____ ramp\-down
|
|
3962
|
+
│ ____╱ ╲____
|
|
3963
|
+
base ┤_ warm\-up _╱ ╲_ at base __
|
|
3964
3964
|
└┬──────────┬──────────┬──────────┬──────────┬───────────┤ \-\-duration
|
|
3965
3965
|
1 2 3 4 (5)
|
|
3966
3966
|
|
|
@@ -4455,7 +4455,7 @@ Examples:
|
|
|
4455
4455
|
|
|
4456
4456
|
|
|
4457
4457
|
.SS "request"
|
|
4458
|
-
Send HTTP requests from the command line with full Postman capabilities including authentication, environment variables, assertions, retries, and detailed output control.
|
|
4458
|
+
Send HTTP requests from the command line with full Postman capabilities including authentication, environment variables, assertions, retries, and detailed output control. Use `postman request grpc` for gRPC.
|
|
4459
4459
|
|
|
4460
4460
|
.B Usage:
|
|
4461
4461
|
[METHOD] <URL|request\-file> [options]
|
|
@@ -4782,6 +4782,124 @@ Examples:
|
|
|
4782
4782
|
|
|
4783
4783
|
|
|
4784
4784
|
|
|
4785
|
+
.B Subcommands:
|
|
4786
|
+
.TP
|
|
4787
|
+
.B request grpc
|
|
4788
|
+
Invoke a gRPC method, or list and describe the methods a server exposes. The service definition comes from server reflection unless \-\-proto or \-\-protoset is given.
|
|
4789
|
+
|
|
4790
|
+
.SS "request grpc"
|
|
4791
|
+
Invoke a gRPC method, or list and describe the methods a server exposes. The service definition comes from server reflection unless \-\-proto or \-\-protoset is given.
|
|
4792
|
+
|
|
4793
|
+
.B Usage:
|
|
4794
|
+
<url|request\-file> [method] [options]
|
|
4795
|
+
|
|
4796
|
+
.B Options:
|
|
4797
|
+
.TP
|
|
4798
|
+
.B \-\-list\-methods
|
|
4799
|
+
List the services and methods instead of invoking one, with each method's streaming kind and message types.
|
|
4800
|
+
.TP
|
|
4801
|
+
.B \-\-describe
|
|
4802
|
+
Describe the method instead of invoking it: its message types and a request message template to fill in.
|
|
4803
|
+
.TP
|
|
4804
|
+
.B \-\-proto <path>
|
|
4805
|
+
Read the service definition from a .proto file (or URL) instead of server reflection. Can be used multiple times. (default: )
|
|
4806
|
+
.TP
|
|
4807
|
+
.B \-\-import\-path <dir>
|
|
4808
|
+
Directory to resolve \-\-proto imports from. Can be used multiple times. (default: )
|
|
4809
|
+
.TP
|
|
4810
|
+
.B \-\-protoset <path>
|
|
4811
|
+
Read the service definition from a compiled FileDescriptorSet (protoc \-\-descriptor_set_out, buf build \-o). Can be used multiple times. (default: )
|
|
4812
|
+
.TP
|
|
4813
|
+
.B \-\-tls
|
|
4814
|
+
Connect with TLS to an address without a scheme, the same as grpcs://.
|
|
4815
|
+
.TP
|
|
4816
|
+
.B \-\-server\-name <name>
|
|
4817
|
+
Name to verify the server's TLS certificate against, when it differs from the address.
|
|
4818
|
+
.TP
|
|
4819
|
+
.B \-\-emit\-defaults
|
|
4820
|
+
Include fields that hold their default value in response messages.
|
|
4821
|
+
.TP
|
|
4822
|
+
.B \-\-script\-before\-invoke <script>
|
|
4823
|
+
Script run before the call is invoked. Inline JavaScript or @path. pm.request holds the message and metadata.
|
|
4824
|
+
.TP
|
|
4825
|
+
.B \-\-script\-on\-message <script>
|
|
4826
|
+
Script run on every response message as it arrives. Inline JavaScript or @path. pm.message holds the message.
|
|
4827
|
+
.TP
|
|
4828
|
+
.B \-\-script\-after\-response <script>
|
|
4829
|
+
Script run once the call has ended. Inline JavaScript or @path. pm.response holds the status, metadata and messages; pm.test() results are reported.
|
|
4830
|
+
|
|
4831
|
+
.TP Examples:
|
|
4832
|
+
|
|
4833
|
+
Authorization (one type per request, sent as metadata):
|
|
4834
|
+
\-\-auth\-apikey\-key <name> Metadata key to send the API key in.
|
|
4835
|
+
\-\-auth\-apikey\-value <key> The API key.
|
|
4836
|
+
\-\-auth\-basic\-username <username> Username.
|
|
4837
|
+
\-\-auth\-basic\-password <password> Password.
|
|
4838
|
+
\-\-auth\-bearer\-token <token> Bearer token.
|
|
4839
|
+
\-\-auth\-oauth2\-access\-token <token> Access token.
|
|
4840
|
+
\-\-auth\-oauth2\-header\-prefix <prefix> Sent before the access token (default: Bearer).
|
|
4841
|
+
|
|
4842
|
+
Options shared with postman request:
|
|
4843
|
+
\-H, \-\-header <key:value> Request metadata. Can be used multiple times.
|
|
4844
|
+
\-d, \-\-body <message> Request message as JSON, @path to read a file, or "\-" to read
|
|
4845
|
+
stdin. Client\-streaming and bidirectional methods take several
|
|
4846
|
+
messages, one after another; from stdin each is sent as soon
|
|
4847
|
+
as it is complete. Without a body, unary and server\-streaming
|
|
4848
|
+
methods send an empty message ({}).
|
|
4849
|
+
\-e, \-\-environment <path> Postman environment to resolve {{variables}} from.
|
|
4850
|
+
\-\-timeout <ms> Deadline for the call and for server reflection (default 300000).
|
|
4851
|
+
\-k, \-\-insecure Do not verify the server's TLS certificate.
|
|
4852
|
+
\-\-ssl\-client\-cert <path> Client certificate (PEM) for mutual TLS, with \-\-ssl\-client\-key
|
|
4853
|
+
and \-\-ssl\-client\-passphrase.
|
|
4854
|
+
\-\-ssl\-client\-cert\-list <path> Client certificates per host (JSON).
|
|
4855
|
+
\-\-ssl\-extra\-ca\-certs <path> Additional trusted CA certificates (PEM).
|
|
4856
|
+
\-o, \-\-output <path> Save the full exchange or discovery result as JSON.
|
|
4857
|
+
\-\-verbose Also show metadata, trailers and the messages sent.
|
|
4858
|
+
\-\-response\-only Print only the response messages, as JSON, as they arrive.
|
|
4859
|
+
|
|
4860
|
+
Examples:
|
|
4861
|
+
|
|
4862
|
+
Execute a saved gRPC request, with optional overrides:
|
|
4863
|
+
postman request grpc ./postman/collections/Greeter/Greeting.request.yaml \-d '{"name":"Ada"}'
|
|
4864
|
+
|
|
4865
|
+
Discover a server's methods with server reflection:
|
|
4866
|
+
postman request grpc localhost:50051 \-\-list\-methods
|
|
4867
|
+
|
|
4868
|
+
See what a method expects, with a request message template:
|
|
4869
|
+
postman request grpc localhost:50051 helloworld.Greeter/SayHello \-\-describe
|
|
4870
|
+
|
|
4871
|
+
Invoke a unary method:
|
|
4872
|
+
postman request grpc localhost:50051 helloworld.Greeter/SayHello \-d '{"name": "Ada"}'
|
|
4873
|
+
|
|
4874
|
+
Invoke over TLS with metadata and a bearer token:
|
|
4875
|
+
postman request grpc grpcs://api.example.com helloworld.Greeter/SayHello \e
|
|
4876
|
+
\-H "x\-request\-id: 42" \-\-auth\-bearer\-token "{{token}}" \-e staging.postman_environment.json
|
|
4877
|
+
|
|
4878
|
+
Use a .proto file when the server has no reflection:
|
|
4879
|
+
postman request grpc localhost:50051 helloworld.Greeter/SayHello \e
|
|
4880
|
+
\-\-proto protos/helloworld.proto \-\-import\-path protos \-d @hello.json
|
|
4881
|
+
|
|
4882
|
+
Stream several request messages from a file, or live from stdin:
|
|
4883
|
+
postman request grpc localhost:50051 routeguide.RouteGuide/RecordRoute \-d @points.ndjson
|
|
4884
|
+
tail \-f points.ndjson | postman request grpc localhost:50051 routeguide.RouteGuide/RouteChat \-d \-
|
|
4885
|
+
|
|
4886
|
+
Test every streamed message, then the whole response:
|
|
4887
|
+
postman request grpc localhost:50051 routeguide.RouteGuide/ListFeatures \-d @area.json \e
|
|
4888
|
+
\-\-script\-on\-message "pm.test('has a name', () => pm.expect(pm.message.data.name).to.be.a('string'))" \e
|
|
4889
|
+
\-\-script\-after\-response "pm.test('ends OK', () => pm.expect(pm.response.code).to.equal(0))"
|
|
4890
|
+
|
|
4891
|
+
Pipe response messages to another tool:
|
|
4892
|
+
postman request grpc localhost:50051 helloworld.Greeter/SayHello \-\-response\-only | jq .message
|
|
4893
|
+
|
|
4894
|
+
Exit Codes:
|
|
4895
|
+
0: The call ended with status OK and every test passed
|
|
4896
|
+
1: The call failed, ended with a non\-OK status, or a test failed
|
|
4897
|
+
2: Usage error, including a method the schema does not define
|
|
4898
|
+
3: Not logged in to Postman
|
|
4899
|
+
8: Your plan does not include gRPC requests
|
|
4900
|
+
|
|
4901
|
+
|
|
4902
|
+
|
|
4785
4903
|
.SS "sdk"
|
|
4786
4904
|
Generate and manage your SDKs directly from the command line.
|
|
4787
4905
|
|
|
@@ -7745,7 +7863,7 @@ Print a dataset's metadata and structure summary (local YAML path or cloud id).
|
|
|
7745
7863
|
Postman API key (defaults to the `postman login` session)
|
|
7746
7864
|
.TP
|
|
7747
7865
|
.B \-\-no\-populate
|
|
7748
|
-
Skip
|
|
7866
|
+
Skip the table/column structure for a local dataset, or datasources/views for a cloud one
|
|
7749
7867
|
.TP
|
|
7750
7868
|
.B \-\-json
|
|
7751
7869
|
Output the full dataset as JSON
|
|
@@ -7940,7 +8058,7 @@ Use this format instead of extension/type inference; file contents are not sniff
|
|
|
7940
8058
|
Source kind; local is inferred from \-\-file, jdbc from \-\-driver\-jar
|
|
7941
8059
|
.TP
|
|
7942
8060
|
.B \-\-file <path>
|
|
7943
|
-
Path to a local CSV/JSON/spreadsheet file (absolute or cwd\-relative)
|
|
8061
|
+
Path to a local CSV/JSON/NDJSON/spreadsheet file (absolute or cwd\-relative); .ndjson and .jsonl are read as json
|
|
7944
8062
|
.TP
|
|
7945
8063
|
.B \-\-ref\-only
|
|
7946
8064
|
Reference the file in place; do NOT copy into data_dir (local dataset)
|
|
@@ -8498,7 +8616,7 @@ Bind values to $1, $2, ... in order; pass multiple values after \-p or repeat \-
|
|
|
8498
8616
|
Postman API key (defaults to the `postman login` session)
|
|
8499
8617
|
.TP
|
|
8500
8618
|
.B \-\-json
|
|
8501
|
-
Output rows as JSON instead of a table
|
|
8619
|
+
Output rows as JSON instead of a table; a failure prints a JSON error on stdout
|
|
8502
8620
|
.TP
|
|
8503
8621
|
.B \-\-debug
|
|
8504
8622
|
Include safe classified dataset diagnostics
|
|
@@ -8512,6 +8630,15 @@ Examples:
|
|
|
8512
8630
|
postman dataset view run "Active Users" \e
|
|
8513
8631
|
\-d 14e30f6c\-1234\-1234\-1234\-cafef00dc0de \-p true
|
|
8514
8632
|
|
|
8633
|
+
JSON output (\-\-json):
|
|
8634
|
+
Success: the view result itself (unchanged; not wrapped in an envelope).
|
|
8635
|
+
Failure: {"ok":false,"error":{"code","message","remediation"?,...context}}, exit 1.
|
|
8636
|
+
A failure after rows were written closes the result with the rows so far plus
|
|
8637
|
+
"ok":false and "error", exit 1.
|
|
8638
|
+
Either way stdout holds one JSON document, so `\-\-json 2>/dev/null | jq .` parses it.
|
|
8639
|
+
"code" is the dataset error code when one is known (e.g. SQL_SYNTAX,
|
|
8640
|
+
QUERY_PARAMS_MISSING, AUTH_FAILED, PLAN_RESTRICTED), else DATASET_COMMAND_FAILED.
|
|
8641
|
+
|
|
8515
8642
|
|
|
8516
8643
|
|
|
8517
8644
|
.SS "dataset view create"
|
|
@@ -8537,6 +8664,9 @@ Bind the view to one datasource and run the query natively against it, instead o
|
|
|
8537
8664
|
.B \-\-view\-id <uuid>
|
|
8538
8665
|
Override the generated view id (local only; cloud assigns its own)
|
|
8539
8666
|
.TP
|
|
8667
|
+
.B \-\-no\-validate
|
|
8668
|
+
Save the view without first checking that its query runs against the dataset
|
|
8669
|
+
.TP
|
|
8540
8670
|
.B \-\-json
|
|
8541
8671
|
Emit the result as JSON instead of prose
|
|
8542
8672
|
.TP
|
|
@@ -8560,12 +8690,22 @@ Federated vs native:
|
|
|
8560
8690
|
join across sources. With \-\-source it is sent to that one datasource in its
|
|
8561
8691
|
own SQL dialect, which is what JDBC sources need. Mirrors `dataset query \-s`.
|
|
8562
8692
|
|
|
8693
|
+
Query validation:
|
|
8694
|
+
The query is prepared against the dataset before the view is written, so a
|
|
8695
|
+
query that cannot run is refused instead of failing later at `view run`.
|
|
8696
|
+
The query is planned, not run. Pass \-\-no\-validate to skip the
|
|
8697
|
+
check. A \-\-source (native) view is saved unchecked, because its query runs
|
|
8698
|
+
in that datasource's own SQL dialect. A view on a cloud dataset is also
|
|
8699
|
+
saved unchecked. Either way the result carries VIEW_NOT_VALIDATED.
|
|
8700
|
+
|
|
8563
8701
|
JSON output (\-\-json):
|
|
8564
8702
|
Success: {"ok":true,"view":{"id","name","target","datasourceId","viewType"},
|
|
8565
8703
|
"warnings":[]}
|
|
8566
8704
|
Failure: {"ok":false,"error":{"code","message","remediation"}}
|
|
8567
|
-
Error codes:
|
|
8568
|
-
DATASET_FILE_UNWRITABLE,
|
|
8705
|
+
Error codes: VIEW_QUERY_INVALID (with engineCode), SOURCE_NOT_FOUND (with
|
|
8706
|
+
available[]), DATASET_FILE_CHANGED, DATASET_FILE_UNWRITABLE,
|
|
8707
|
+
DATASET_COMMAND_FAILED
|
|
8708
|
+
Warning codes: VIEW_NOT_VALIDATED
|
|
8569
8709
|
|
|
8570
8710
|
|
|
8571
8711
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "postman-cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.87.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.87.0",
|
|
61
|
+
"@postman/pm-bin-macos-x64": "1.87.0",
|
|
62
|
+
"@postman/pm-bin-linux-x64": "1.87.0",
|
|
63
|
+
"@postman/pm-bin-linux-arm64": "1.87.0",
|
|
64
|
+
"@postman/pm-bin-windows-x64": "1.87.0"
|
|
65
65
|
}
|
|
66
66
|
}
|