postman-cli 1.85.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.
Files changed (2) hide show
  1. package/man/postman.1 +207 -15
  2. package/package.json +6 -6
package/man/postman.1 CHANGED
@@ -1,4 +1,4 @@
1
- .TH POSTMAN 1 "2026-11-03" "v1.85.0" "Postman CLI Manual"
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
- \-\-json with \-\-visibility creates the workspace, same as without it: stdout
150
- carries the payload and everything meant for a person goes to stderr. It used
151
- to skip the step and exit 0, so a missing `origin` remote or a failed bind
152
- went unreported. Without \-\-visibility, \-\-json still skips \- there is nothing
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
- Fetch a Postman collection in the V3 format and print it.
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
- Fetch a Postman collection in the V3 format and print it.
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"
@@ -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
 
@@ -5190,6 +5308,9 @@ Generate a mock from a Postman collection, an OpenAPI file or a dataset, or a st
5190
5308
  .B mock run
5191
5309
  Start a mock using its path if it lives in your repository, or its id if it lives in Postman cloud (fetched and run locally).
5192
5310
  .TP
5311
+ .B mock stop
5312
+ Stop a mock started with `postman mock run` on this machine, and wait until it has exited and released its port.
5313
+ .TP
5193
5314
  .B mock push
5194
5315
  Upload a mock from your repository to Postman cloud (creates it the first time, updates it after).
5195
5316
  .TP
@@ -5352,6 +5473,29 @@ use \-\-no\-history to opt out.
5352
5473
  Paths can be relative (e.g. ./postman/mocks/orders) or absolute (e.g. /Users/me/postman/mocks/orders).
5353
5474
 
5354
5475
 
5476
+ .SS "mock stop"
5477
+ Stop a mock started with `postman mock run` on this machine, and wait until it has exited and released its port.
5478
+
5479
+ .B Usage:
5480
+ <mockIdOrPath> [options]
5481
+
5482
+ .B Options:
5483
+ .TP
5484
+ .B \-\-timeout <seconds>
5485
+ Seconds to wait for a graceful shutdown before force\-killing the mock (default 15)
5486
+ .TP
5487
+ .B \-\-json
5488
+ Print the result as machine\-readable data
5489
+
5490
+ .TP Examples:
5491
+
5492
+ Eg. postman mock stop ./postman/mocks/orders # by the path passed to mock run
5493
+ postman mock stop 12345678\-90ab\-cdef\-1234\-567890abcdef # by the cloud id passed to mock run
5494
+ postman mock stop ./postman/mocks/orders \-\-timeout 5
5495
+
5496
+ The mock is sent SIGTERM so it shuts down the same way as Ctrl+C, then SIGKILL if it is still running after \-\-timeout. The command returns once the process has exited and its port is free. Stopping a mock that is not running succeeds.
5497
+
5498
+
5355
5499
  .SS "mock push"
5356
5500
  Upload a mock from your repository to Postman cloud (creates it the first time, updates it after).
5357
5501
 
@@ -5754,6 +5898,9 @@ Show a simulation's details using its .sim.yaml path if it lives in your reposit
5754
5898
  .B simulation run
5755
5899
  Serve a simulation's mocks on one local port, routing each by its routeKey. Pass a .sim.yaml path (local) or a Postman simulation id (fetched and run locally).
5756
5900
  .TP
5901
+ .B simulation stop
5902
+ Stop a simulation started with `postman simulation run` on this machine, and wait until it has exited and released its port.
5903
+ .TP
5757
5904
  .B simulation push
5758
5905
  Upload a simulation from your repository to Postman cloud (creates it the first time, updates it after). Its member mocks are pushed too.
5759
5906
  .TP
@@ -5967,6 +6114,29 @@ Because the mocks sit on throwaway ports, a manifest's own `port` is ignored. A
5967
6114
  Every \-\-proxy\-* flag, plus \-\-scenario, \-\-session, \-\-log\-format, \-\-log\-body, \-\-doctor and \-\-lift, is inert without \-\-proxy and passing one alone is a usage error (exit 2), as is an unsupported \-\-log\-format.
5968
6115
 
5969
6116
 
6117
+ .SS "simulation stop"
6118
+ Stop a simulation started with `postman simulation run` on this machine, and wait until it has exited and released its port.
6119
+
6120
+ .B Usage:
6121
+ <simIdOrPath> [options]
6122
+
6123
+ .B Options:
6124
+ .TP
6125
+ .B \-\-timeout <seconds>
6126
+ Seconds to wait for a graceful shutdown before force\-killing the simulation (default 15)
6127
+ .TP
6128
+ .B \-\-json
6129
+ Print the result as machine\-readable data
6130
+
6131
+ .TP Examples:
6132
+
6133
+ Eg. postman simulation stop ./postman/simulations/checkout.sim.yaml # by the path passed to run
6134
+ postman simulation stop 12345678\-90ab\-cdef\-1234\-567890abcdef # by the id passed to run
6135
+ postman simulation stop ./simulation.yaml \-\-timeout 5
6136
+
6137
+ Pass the same id or path that was given to `simulation run`. The simulation is sent SIGTERM so it shuts down the same way as Ctrl+C, then SIGKILL if it is still running after \-\-timeout. The command returns once the process has exited and its port is free. Stopping a simulation that is not running succeeds.
6138
+
6139
+
5970
6140
  .SS "simulation push"
5971
6141
  Upload a simulation from your repository to Postman cloud (creates it the first time, updates it after). Its member mocks are pushed too.
5972
6142
 
@@ -7693,7 +7863,7 @@ Print a dataset's metadata and structure summary (local YAML path or cloud id).
7693
7863
  Postman API key (defaults to the `postman login` session)
7694
7864
  .TP
7695
7865
  .B \-\-no\-populate
7696
- Skip fetching datasources/views for a cloud dataset
7866
+ Skip the table/column structure for a local dataset, or datasources/views for a cloud one
7697
7867
  .TP
7698
7868
  .B \-\-json
7699
7869
  Output the full dataset as JSON
@@ -7888,7 +8058,7 @@ Use this format instead of extension/type inference; file contents are not sniff
7888
8058
  Source kind; local is inferred from \-\-file, jdbc from \-\-driver\-jar
7889
8059
  .TP
7890
8060
  .B \-\-file <path>
7891
- 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
7892
8062
  .TP
7893
8063
  .B \-\-ref\-only
7894
8064
  Reference the file in place; do NOT copy into data_dir (local dataset)
@@ -8446,7 +8616,7 @@ Bind values to $1, $2, ... in order; pass multiple values after \-p or repeat \-
8446
8616
  Postman API key (defaults to the `postman login` session)
8447
8617
  .TP
8448
8618
  .B \-\-json
8449
- 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
8450
8620
  .TP
8451
8621
  .B \-\-debug
8452
8622
  Include safe classified dataset diagnostics
@@ -8460,6 +8630,15 @@ Examples:
8460
8630
  postman dataset view run "Active Users" \e
8461
8631
  \-d 14e30f6c\-1234\-1234\-1234\-cafef00dc0de \-p true
8462
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
+
8463
8642
 
8464
8643
 
8465
8644
  .SS "dataset view create"
@@ -8485,6 +8664,9 @@ Bind the view to one datasource and run the query natively against it, instead o
8485
8664
  .B \-\-view\-id <uuid>
8486
8665
  Override the generated view id (local only; cloud assigns its own)
8487
8666
  .TP
8667
+ .B \-\-no\-validate
8668
+ Save the view without first checking that its query runs against the dataset
8669
+ .TP
8488
8670
  .B \-\-json
8489
8671
  Emit the result as JSON instead of prose
8490
8672
  .TP
@@ -8508,12 +8690,22 @@ Federated vs native:
8508
8690
  join across sources. With \-\-source it is sent to that one datasource in its
8509
8691
  own SQL dialect, which is what JDBC sources need. Mirrors `dataset query \-s`.
8510
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
+
8511
8701
  JSON output (\-\-json):
8512
8702
  Success: {"ok":true,"view":{"id","name","target","datasourceId","viewType"},
8513
8703
  "warnings":[]}
8514
8704
  Failure: {"ok":false,"error":{"code","message","remediation"}}
8515
- Error codes: SOURCE_NOT_FOUND (with available[]), DATASET_FILE_CHANGED,
8516
- DATASET_FILE_UNWRITABLE, DATASET_COMMAND_FAILED
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
8517
8709
 
8518
8710
 
8519
8711
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "postman-cli",
3
- "version": "1.85.0",
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.85.0",
61
- "@postman/pm-bin-macos-x64": "1.85.0",
62
- "@postman/pm-bin-linux-x64": "1.85.0",
63
- "@postman/pm-bin-linux-arm64": "1.85.0",
64
- "@postman/pm-bin-windows-x64": "1.85.0"
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
  }