postman-cli 1.86.0 → 1.88.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 +870 -35
- 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-11" "v1.88.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
|
|
@@ -217,6 +216,9 @@ Update Postman CLI using the original installation method.
|
|
|
217
216
|
.TP
|
|
218
217
|
.B \-\-check
|
|
219
218
|
Check whether a Postman CLI update is available.
|
|
219
|
+
.TP
|
|
220
|
+
.B \-\-timeout <ms>
|
|
221
|
+
Timeout for the update check in milliseconds (default: 30000).
|
|
220
222
|
|
|
221
223
|
.SS "skills"
|
|
222
224
|
Check and update the agent skills in this repository.
|
|
@@ -324,7 +326,7 @@ Run linting on a local v3 collection at the given file or directory path.
|
|
|
324
326
|
Score a Postman collection for AI readiness by ID, local file path, or local\-mode directory.
|
|
325
327
|
.TP
|
|
326
328
|
.B collection get
|
|
327
|
-
|
|
329
|
+
Read a local collection path or fetch a cloud collection by id, and print V3 JSON.
|
|
328
330
|
.TP
|
|
329
331
|
.B collection delete
|
|
330
332
|
Delete a cloud collection by id or a local collection directory by path. Prompts unless \-\-yes is passed.
|
|
@@ -452,10 +454,10 @@ Resolving a collection by ID requires authentication. Use `postman login` before
|
|
|
452
454
|
|
|
453
455
|
|
|
454
456
|
.SS "collection get"
|
|
455
|
-
|
|
457
|
+
Read a local collection path or fetch a cloud collection by id, and print V3 JSON.
|
|
456
458
|
|
|
457
459
|
.B Usage:
|
|
458
|
-
[options] <id>
|
|
460
|
+
[options] <id\-or\-path>
|
|
459
461
|
|
|
460
462
|
.B Options:
|
|
461
463
|
.TP
|
|
@@ -469,6 +471,7 @@ Print the collection as machine\-readable V3 JSON instead of a table
|
|
|
469
471
|
|
|
470
472
|
Eg. postman collection get 12345\-33823532ab9e41c9b6fd12d0fd459b8b
|
|
471
473
|
postman collection get 0123456789abcdef01234567 \-\-json
|
|
474
|
+
postman collection get "./postman/collections/Orders API" \-\-json
|
|
472
475
|
|
|
473
476
|
|
|
474
477
|
.SS "collection delete"
|
|
@@ -683,7 +686,7 @@ Target collection: name, directory, id, cloud id, or path. Required.
|
|
|
683
686
|
Folder within the collection, e.g. "Users/Admin". Defaults to the root.
|
|
684
687
|
.TP
|
|
685
688
|
.B \-\-type <type>
|
|
686
|
-
Request type: http, graphql, grpc, websocket, socketio. (default: http)
|
|
689
|
+
Request type: http, graphql, grpc, websocket, socketio, mcp. (default: http)
|
|
687
690
|
.TP
|
|
688
691
|
.B \-w, \-\-workspace <id>
|
|
689
692
|
Target a Postman cloud workspace by id (cloud mode).
|
|
@@ -696,12 +699,13 @@ JSON output.
|
|
|
696
699
|
|
|
697
700
|
.TP Examples:
|
|
698
701
|
|
|
699
|
-
Creates an empty request (name + type only). Configure it with `collection request update`.
|
|
702
|
+
Creates an empty request (name + type only). Configure it with `collection request update`. An mcp request starts on the HTTP transport; `update \-\-command` moves it to stdio.
|
|
700
703
|
|
|
701
704
|
Examples:
|
|
702
705
|
postman collection request add "Get user" \-\-collection "My API"
|
|
703
706
|
postman collection request add \-\-collection "My API" # named "New request"
|
|
704
707
|
postman collection request add "List" \-\-collection "My API" \-\-folder Users \-\-type http
|
|
708
|
+
postman collection request add "Weather" \-\-collection "My API" \-\-type mcp
|
|
705
709
|
|
|
706
710
|
|
|
707
711
|
|
|
@@ -755,7 +759,13 @@ Folder to scope the request selector, e.g. "Users/Admin" (local: name/path; clou
|
|
|
755
759
|
Rename the request (moves its file). Any request type.
|
|
756
760
|
.TP
|
|
757
761
|
.B \-\-url <url>
|
|
758
|
-
Request URL; its query string becomes the query parameters. Any request type.
|
|
762
|
+
Request URL; its query string becomes the query parameters. Any request type; moves an mcp request to the HTTP transport.
|
|
763
|
+
.TP
|
|
764
|
+
.B \-\-command <command>
|
|
765
|
+
Command that starts a local MCP server; moves an mcp request to the stdio transport (mcp requests only, local mode).
|
|
766
|
+
.TP
|
|
767
|
+
.B \-\-command\-env <key=value>
|
|
768
|
+
Replace the environment variables of a stdio mcp request's server. Repeatable (local mode). (default: )
|
|
759
769
|
.TP
|
|
760
770
|
.B \-\-method <method>
|
|
761
771
|
HTTP method (http requests only).
|
|
@@ -782,13 +792,13 @@ Replace request headers. Repeatable; any request type with headers. (default: )
|
|
|
782
792
|
Request auth: none, inherit, bearer:TOKEN, basic:USER:PASS, apikey:KEY:VALUE[:header|query], oauth2:TOKEN. Any request type.
|
|
783
793
|
.TP
|
|
784
794
|
.B \-\-scripts <event:script>
|
|
785
|
-
Replace scripts. event is prerequest or test; script is @file, \- for stdin, or inline. Repeatable; any request type. (default: )
|
|
795
|
+
Replace scripts. event is prerequest or test, or on an mcp request beforeConnect, afterConnect, afterResponse or afterDisconnect; script is @file, \- for stdin, or inline. Repeatable; any request type. (default: )
|
|
786
796
|
.TP
|
|
787
797
|
.B \-w, \-\-workspace <id>
|
|
788
798
|
Target a Postman cloud workspace by id (cloud mode).
|
|
789
799
|
.TP
|
|
790
800
|
.B \-\-type <type>
|
|
791
|
-
Request type for cloud mode: http, graphql, grpc, websocket, socketio. (default: http)
|
|
801
|
+
Request type for cloud mode: http, graphql, grpc, websocket, socketio, mcp. (default: http)
|
|
792
802
|
.TP
|
|
793
803
|
.B \-m, \-\-message <text>
|
|
794
804
|
Short note on what changed, like a commit message (max 500 characters). Shown on the workspace activity feed. Cloud mode only.
|
|
@@ -798,7 +808,7 @@ JSON output.
|
|
|
798
808
|
|
|
799
809
|
.TP Examples:
|
|
800
810
|
|
|
801
|
-
Works on any request type; \-\-rename/\-\-url/\-\-description/\-\-headers/\-\-auth/\-\-scripts apply to all, while \-\-method/\-\-param/\-\-clear\-params are http\-only and \-\-body is interpreted per type. \-\-param and \-\-clear\-params apply after \-\-url. Select the request by the <request> selector: local — a name or "Folder/Name" path (or \-\-folder to scope a bare name); cloud (\-\-workspace) — a request id, with \-\-collection an id too.
|
|
811
|
+
Works on any request type; \-\-rename/\-\-url/\-\-description/\-\-headers/\-\-auth/\-\-scripts apply to all, while \-\-method/\-\-param/\-\-clear\-params are http\-only and \-\-body is interpreted per type. \-\-param and \-\-clear\-params apply after \-\-url. On an mcp request, \-\-url moves it to the HTTP transport and \-\-command to stdio, removing the other transport's fields (url and headers, or command and env). Select the request by the <request> selector: local — a name or "Folder/Name" path (or \-\-folder to scope a bare name); cloud (\-\-workspace) — a request id, with \-\-collection an id too.
|
|
802
812
|
|
|
803
813
|
Examples:
|
|
804
814
|
postman collection request update "Get user" \-\-collection "My API" \-\-url "{{baseUrl}}/users/:id"
|
|
@@ -806,6 +816,7 @@ Examples:
|
|
|
806
816
|
postman collection request update "List" \-\-collection "My API" \-\-clear\-params
|
|
807
817
|
postman collection request update "Get user" \-\-collection "My API" \-\-folder Users \-\-rename "Fetch user"
|
|
808
818
|
postman collection request update "Get user" \-\-collection "My API" \-\-headers "Authorization:Bearer x" \-\-auth bearer:TOKEN \-\-scripts "test:@check.js"
|
|
819
|
+
postman collection request update "Weather" \-\-collection "My API" \-\-command "node server.js \-\-transport stdio" \-\-command\-env "API_KEY={{apiKey}}"
|
|
809
820
|
postman collection request update <requestId> \-\-collection <collectionId> \-\-url "..." \-w <workspaceId>
|
|
810
821
|
|
|
811
822
|
|
|
@@ -828,7 +839,7 @@ Folder to scope the request selector, e.g. "Users/Admin" (local: name/path; clou
|
|
|
828
839
|
Target a Postman cloud workspace by id (cloud mode).
|
|
829
840
|
.TP
|
|
830
841
|
.B \-\-type <type>
|
|
831
|
-
Request type for cloud mode: http, graphql, grpc, websocket, socketio. (default: http)
|
|
842
|
+
Request type for cloud mode: http, graphql, grpc, websocket, socketio, mcp. (default: http)
|
|
832
843
|
.TP
|
|
833
844
|
.B \-m, \-\-message <text>
|
|
834
845
|
Short note on what changed, like a commit message (max 500 characters). Shown on the workspace activity feed. Cloud mode only.
|
|
@@ -3928,9 +3939,9 @@ Load segments:
|
|
|
3928
3939
|
ramp\-up — 2 segments
|
|
3929
3940
|
|
|
3930
3941
|
peak ┤ _________ at peak __________
|
|
3931
|
-
│ ramp\-up _____
|
|
3932
|
-
│ ______
|
|
3933
|
-
base ┤__ warm\-up ___
|
|
3942
|
+
│ ramp\-up _____╱
|
|
3943
|
+
│ ______╱
|
|
3944
|
+
base ┤__ warm\-up ___╱
|
|
3934
3945
|
└┬─────────────┬─────────────┬───────────────────────────┤ \-\-duration
|
|
3935
3946
|
1 2 (3)
|
|
3936
3947
|
|
|
@@ -3942,10 +3953,10 @@ Load segments:
|
|
|
3942
3953
|
|
|
3943
3954
|
spike — 3 segments · no time at the peak; use \-\-load\-profile peak to hold
|
|
3944
3955
|
|
|
3945
|
-
peak ┤
|
|
3946
|
-
│ ramp\-up _
|
|
3947
|
-
│ _
|
|
3948
|
-
base ┤______ warm\-up _______
|
|
3956
|
+
peak ┤ ╱╲
|
|
3957
|
+
│ ramp\-up _╱ ╲_ ramp\-down
|
|
3958
|
+
│ _╱ ╲_
|
|
3959
|
+
base ┤______ warm\-up _______╱ ╲______ at base _______
|
|
3949
3960
|
└┬─────────────────────┬─────┬─────┬─────────────────────┤ \-\-duration
|
|
3950
3961
|
1 2 3 (4)
|
|
3951
3962
|
|
|
@@ -3958,9 +3969,9 @@ Load segments:
|
|
|
3958
3969
|
peak — 4 segments
|
|
3959
3970
|
|
|
3960
3971
|
peak ┤ __ hold ___
|
|
3961
|
-
│ ramp\-up ____
|
|
3962
|
-
│ ____
|
|
3963
|
-
base ┤_ warm\-up _
|
|
3972
|
+
│ ramp\-up ____╱ ╲____ ramp\-down
|
|
3973
|
+
│ ____╱ ╲____
|
|
3974
|
+
base ┤_ warm\-up _╱ ╲_ at base __
|
|
3964
3975
|
└┬──────────┬──────────┬──────────┬──────────┬───────────┤ \-\-duration
|
|
3965
3976
|
1 2 3 4 (5)
|
|
3966
3977
|
|
|
@@ -4454,8 +4465,168 @@ Examples:
|
|
|
4454
4465
|
|
|
4455
4466
|
|
|
4456
4467
|
|
|
4468
|
+
.SS "fn"
|
|
4469
|
+
Build code\-based workflows
|
|
4470
|
+
|
|
4471
|
+
.B Usage:
|
|
4472
|
+
[options] [command]
|
|
4473
|
+
|
|
4474
|
+
.B Subcommands:
|
|
4475
|
+
.TP
|
|
4476
|
+
.B fn init
|
|
4477
|
+
Create a starter workflow in the current or chosen directory (requires Postman login)
|
|
4478
|
+
.TP
|
|
4479
|
+
.B fn describe
|
|
4480
|
+
Describe workflow primitives and blocks (requires Postman login)
|
|
4481
|
+
.TP
|
|
4482
|
+
.B fn check
|
|
4483
|
+
Validate a workflow definition without running its steps (requires Postman login)
|
|
4484
|
+
.TP
|
|
4485
|
+
.B fn run
|
|
4486
|
+
Run a workflow using Postman login for AI and evals
|
|
4487
|
+
|
|
4488
|
+
.SS "fn init"
|
|
4489
|
+
Create a starter workflow in the current or chosen directory (requires Postman login)
|
|
4490
|
+
|
|
4491
|
+
.B Usage:
|
|
4492
|
+
[options] [path]
|
|
4493
|
+
|
|
4494
|
+
.B Options:
|
|
4495
|
+
.TP
|
|
4496
|
+
.B \-\-json
|
|
4497
|
+
Output JSON (default when stdout is piped)
|
|
4498
|
+
.TP
|
|
4499
|
+
.B \-\-api\-key <key>
|
|
4500
|
+
Postman API key (otherwise use postman login or POSTMAN_API_KEY)
|
|
4501
|
+
|
|
4502
|
+
.TP Examples:
|
|
4503
|
+
|
|
4504
|
+
Examples:
|
|
4505
|
+
postman fn init
|
|
4506
|
+
postman fn init ./my\-workflow
|
|
4507
|
+
postman fn init ./my\-workflow \-\-json
|
|
4508
|
+
|
|
4509
|
+
Creates workflow.mts and any missing destination directories. Existing files are never overwritten.
|
|
4510
|
+
The starter prints "Welcome to Postman Flows" when run with postman fn run workflow.mts.
|
|
4511
|
+
Does not install packages, add editor configuration, or execute the workflow.
|
|
4512
|
+
The .mts extension works in both CommonJS and ES module projects.
|
|
4513
|
+
|
|
4514
|
+
|
|
4515
|
+
|
|
4516
|
+
.SS "fn describe"
|
|
4517
|
+
Describe workflow primitives and blocks (requires Postman login)
|
|
4518
|
+
|
|
4519
|
+
.B Usage:
|
|
4520
|
+
[options] [subject]
|
|
4521
|
+
|
|
4522
|
+
.B Options:
|
|
4523
|
+
.TP
|
|
4524
|
+
.B \-\-json
|
|
4525
|
+
Output JSON (default when stdout is piped)
|
|
4526
|
+
.TP
|
|
4527
|
+
.B \-\-api\-key <key>
|
|
4528
|
+
Postman API key (otherwise use postman login or POSTMAN_API_KEY)
|
|
4529
|
+
|
|
4530
|
+
.TP Examples:
|
|
4531
|
+
|
|
4532
|
+
Examples:
|
|
4533
|
+
postman fn describe
|
|
4534
|
+
postman fn describe workflow
|
|
4535
|
+
postman fn describe http.fetch \-\-json
|
|
4536
|
+
postman fn describe fetchRequest
|
|
4537
|
+
|
|
4538
|
+
Read\-only. Lists primitives and blocks; a subject shows readable details and examples.
|
|
4539
|
+
Use \-\-json for full structured documentation, including schemas.
|
|
4540
|
+
|
|
4541
|
+
|
|
4542
|
+
|
|
4543
|
+
.SS "fn check"
|
|
4544
|
+
Validate a workflow definition without running its steps (requires Postman login)
|
|
4545
|
+
|
|
4546
|
+
.B Usage:
|
|
4547
|
+
[options] <workflow.ts>
|
|
4548
|
+
|
|
4549
|
+
.B Options:
|
|
4550
|
+
.TP
|
|
4551
|
+
.B \-\-json
|
|
4552
|
+
Output JSON (default when stdout is piped)
|
|
4553
|
+
.TP
|
|
4554
|
+
.B \-\-api\-key <key>
|
|
4555
|
+
Postman API key (otherwise use postman login or POSTMAN_API_KEY)
|
|
4556
|
+
.TP
|
|
4557
|
+
.B \-\-timeout <ms>
|
|
4558
|
+
Maximum time to load and validate the workflow (default: 30000)
|
|
4559
|
+
|
|
4560
|
+
.TP Examples:
|
|
4561
|
+
|
|
4562
|
+
Examples:
|
|
4563
|
+
postman fn check ./workflow.ts
|
|
4564
|
+
postman fn check ./workflow.mts
|
|
4565
|
+
postman fn check ./workflow.ts \-\-json
|
|
4566
|
+
postman fn check ./workflow.ts \-\-timeout 60000
|
|
4567
|
+
|
|
4568
|
+
Supports import/export workflows and local helpers using the fn packages shipped with this CLI.
|
|
4569
|
+
Imports the workflow module, so top\-level code runs; workflow steps are not executed.
|
|
4570
|
+
Validates the workflow definition, not TypeScript types. Returns exit code 1 when validation fails.
|
|
4571
|
+
|
|
4572
|
+
|
|
4573
|
+
|
|
4574
|
+
.SS "fn run"
|
|
4575
|
+
Run a workflow using Postman login for AI and evals
|
|
4576
|
+
|
|
4577
|
+
.B Usage:
|
|
4578
|
+
[options] <workflow.ts>
|
|
4579
|
+
|
|
4580
|
+
.B Options:
|
|
4581
|
+
.TP
|
|
4582
|
+
.B \-\-input <input.json>
|
|
4583
|
+
JSON array of workflow inputs
|
|
4584
|
+
.TP
|
|
4585
|
+
.B \-\-config <config.json>
|
|
4586
|
+
Workflow configuration JSON file
|
|
4587
|
+
.TP
|
|
4588
|
+
.B \-\-json
|
|
4589
|
+
Output JSON (default when stdout is piped)
|
|
4590
|
+
.TP
|
|
4591
|
+
.B \-\-api\-key <key>
|
|
4592
|
+
Postman API key (otherwise use postman login or POSTMAN_API_KEY)
|
|
4593
|
+
.TP
|
|
4594
|
+
.B \-\-timeout <ms>
|
|
4595
|
+
Maximum time to load and run the workflow (default: 300000)
|
|
4596
|
+
.TP
|
|
4597
|
+
.B \-\-verbose
|
|
4598
|
+
Show workflow logs and step details without changing the workflow log level
|
|
4599
|
+
.TP
|
|
4600
|
+
.B \-\-stream
|
|
4601
|
+
Stream JSON events and workflow logs followed by a summary
|
|
4602
|
+
.TP
|
|
4603
|
+
.B \-\-visualize
|
|
4604
|
+
Write an HTML visualization of the execution
|
|
4605
|
+
.TP
|
|
4606
|
+
.B \-\-out <output.html>
|
|
4607
|
+
New visualization file path (requires \-\-visualize)
|
|
4608
|
+
|
|
4609
|
+
.TP Examples:
|
|
4610
|
+
|
|
4611
|
+
Examples:
|
|
4612
|
+
postman fn run ./workflow.ts
|
|
4613
|
+
postman fn run ./workflow.mts
|
|
4614
|
+
postman fn run ./workflow.ts \-\-input inputs.json \-\-config config.json \-\-json
|
|
4615
|
+
postman fn run ./workflow.ts \-\-stream
|
|
4616
|
+
postman fn run ./workflow.ts \-\-visualize \-\-out run.html
|
|
4617
|
+
|
|
4618
|
+
Runs workflow code and may change external systems. Runs are not automatically retried.
|
|
4619
|
+
AI and eval blocks use Postman login; separate service credentials are not needed.
|
|
4620
|
+
console.print values are shown without \-\-verbose. Use \-\-verbose for workflow logs and step details.
|
|
4621
|
+
Use console.print to display workflow values in the terminal.
|
|
4622
|
+
JSON and stream output retain returned values and workflow logs.
|
|
4623
|
+
Inputs/config and captured execution output are limited to 2 MiB each. Import\-time logs are suppressed.
|
|
4624
|
+
Ctrl+C cancels the run; cancellation and timeout do not roll back completed actions.
|
|
4625
|
+
|
|
4626
|
+
|
|
4627
|
+
|
|
4457
4628
|
.SS "request"
|
|
4458
|
-
Send HTTP requests from the command line with full Postman capabilities including authentication, environment variables, assertions, retries, and detailed output control.
|
|
4629
|
+
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
4630
|
|
|
4460
4631
|
.B Usage:
|
|
4461
4632
|
[METHOD] <URL|request\-file> [options]
|
|
@@ -4782,6 +4953,124 @@ Examples:
|
|
|
4782
4953
|
|
|
4783
4954
|
|
|
4784
4955
|
|
|
4956
|
+
.B Subcommands:
|
|
4957
|
+
.TP
|
|
4958
|
+
.B request grpc
|
|
4959
|
+
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.
|
|
4960
|
+
|
|
4961
|
+
.SS "request grpc"
|
|
4962
|
+
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.
|
|
4963
|
+
|
|
4964
|
+
.B Usage:
|
|
4965
|
+
<url|request\-file> [method] [options]
|
|
4966
|
+
|
|
4967
|
+
.B Options:
|
|
4968
|
+
.TP
|
|
4969
|
+
.B \-\-list\-methods
|
|
4970
|
+
List the services and methods instead of invoking one, with each method's streaming kind and message types.
|
|
4971
|
+
.TP
|
|
4972
|
+
.B \-\-describe
|
|
4973
|
+
Describe the method instead of invoking it: its message types and a request message template to fill in.
|
|
4974
|
+
.TP
|
|
4975
|
+
.B \-\-proto <path>
|
|
4976
|
+
Read the service definition from a .proto file (or URL) instead of server reflection. Can be used multiple times. (default: )
|
|
4977
|
+
.TP
|
|
4978
|
+
.B \-\-import\-path <dir>
|
|
4979
|
+
Directory to resolve \-\-proto imports from. Can be used multiple times. (default: )
|
|
4980
|
+
.TP
|
|
4981
|
+
.B \-\-protoset <path>
|
|
4982
|
+
Read the service definition from a compiled FileDescriptorSet (protoc \-\-descriptor_set_out, buf build \-o). Can be used multiple times. (default: )
|
|
4983
|
+
.TP
|
|
4984
|
+
.B \-\-tls
|
|
4985
|
+
Connect with TLS to an address without a scheme, the same as grpcs://.
|
|
4986
|
+
.TP
|
|
4987
|
+
.B \-\-server\-name <name>
|
|
4988
|
+
Name to verify the server's TLS certificate against, when it differs from the address.
|
|
4989
|
+
.TP
|
|
4990
|
+
.B \-\-emit\-defaults
|
|
4991
|
+
Include fields that hold their default value in response messages.
|
|
4992
|
+
.TP
|
|
4993
|
+
.B \-\-script\-before\-invoke <script>
|
|
4994
|
+
Script run before the call is invoked. Inline JavaScript or @path. pm.request holds the message and metadata.
|
|
4995
|
+
.TP
|
|
4996
|
+
.B \-\-script\-on\-message <script>
|
|
4997
|
+
Script run on every response message as it arrives. Inline JavaScript or @path. pm.message holds the message.
|
|
4998
|
+
.TP
|
|
4999
|
+
.B \-\-script\-after\-response <script>
|
|
5000
|
+
Script run once the call has ended. Inline JavaScript or @path. pm.response holds the status, metadata and messages; pm.test() results are reported.
|
|
5001
|
+
|
|
5002
|
+
.TP Examples:
|
|
5003
|
+
|
|
5004
|
+
Authorization (one type per request, sent as metadata):
|
|
5005
|
+
\-\-auth\-apikey\-key <name> Metadata key to send the API key in.
|
|
5006
|
+
\-\-auth\-apikey\-value <key> The API key.
|
|
5007
|
+
\-\-auth\-basic\-username <username> Username.
|
|
5008
|
+
\-\-auth\-basic\-password <password> Password.
|
|
5009
|
+
\-\-auth\-bearer\-token <token> Bearer token.
|
|
5010
|
+
\-\-auth\-oauth2\-access\-token <token> Access token.
|
|
5011
|
+
\-\-auth\-oauth2\-header\-prefix <prefix> Sent before the access token (default: Bearer).
|
|
5012
|
+
|
|
5013
|
+
Options shared with postman request:
|
|
5014
|
+
\-H, \-\-header <key:value> Request metadata. Can be used multiple times.
|
|
5015
|
+
\-d, \-\-body <message> Request message as JSON, @path to read a file, or "\-" to read
|
|
5016
|
+
stdin. Client\-streaming and bidirectional methods take several
|
|
5017
|
+
messages, one after another; from stdin each is sent as soon
|
|
5018
|
+
as it is complete. Without a body, unary and server\-streaming
|
|
5019
|
+
methods send an empty message ({}).
|
|
5020
|
+
\-e, \-\-environment <path> Postman environment to resolve {{variables}} from.
|
|
5021
|
+
\-\-timeout <ms> Deadline for the call and for server reflection (default 300000).
|
|
5022
|
+
\-k, \-\-insecure Do not verify the server's TLS certificate.
|
|
5023
|
+
\-\-ssl\-client\-cert <path> Client certificate (PEM) for mutual TLS, with \-\-ssl\-client\-key
|
|
5024
|
+
and \-\-ssl\-client\-passphrase.
|
|
5025
|
+
\-\-ssl\-client\-cert\-list <path> Client certificates per host (JSON).
|
|
5026
|
+
\-\-ssl\-extra\-ca\-certs <path> Additional trusted CA certificates (PEM).
|
|
5027
|
+
\-o, \-\-output <path> Save the full exchange or discovery result as JSON.
|
|
5028
|
+
\-\-verbose Also show metadata, trailers and the messages sent.
|
|
5029
|
+
\-\-response\-only Print only the response messages, as JSON, as they arrive.
|
|
5030
|
+
|
|
5031
|
+
Examples:
|
|
5032
|
+
|
|
5033
|
+
Execute a saved gRPC request, with optional overrides:
|
|
5034
|
+
postman request grpc ./postman/collections/Greeter/Greeting.request.yaml \-d '{"name":"Ada"}'
|
|
5035
|
+
|
|
5036
|
+
Discover a server's methods with server reflection:
|
|
5037
|
+
postman request grpc localhost:50051 \-\-list\-methods
|
|
5038
|
+
|
|
5039
|
+
See what a method expects, with a request message template:
|
|
5040
|
+
postman request grpc localhost:50051 helloworld.Greeter/SayHello \-\-describe
|
|
5041
|
+
|
|
5042
|
+
Invoke a unary method:
|
|
5043
|
+
postman request grpc localhost:50051 helloworld.Greeter/SayHello \-d '{"name": "Ada"}'
|
|
5044
|
+
|
|
5045
|
+
Invoke over TLS with metadata and a bearer token:
|
|
5046
|
+
postman request grpc grpcs://api.example.com helloworld.Greeter/SayHello \e
|
|
5047
|
+
\-H "x\-request\-id: 42" \-\-auth\-bearer\-token "{{token}}" \-e staging.postman_environment.json
|
|
5048
|
+
|
|
5049
|
+
Use a .proto file when the server has no reflection:
|
|
5050
|
+
postman request grpc localhost:50051 helloworld.Greeter/SayHello \e
|
|
5051
|
+
\-\-proto protos/helloworld.proto \-\-import\-path protos \-d @hello.json
|
|
5052
|
+
|
|
5053
|
+
Stream several request messages from a file, or live from stdin:
|
|
5054
|
+
postman request grpc localhost:50051 routeguide.RouteGuide/RecordRoute \-d @points.ndjson
|
|
5055
|
+
tail \-f points.ndjson | postman request grpc localhost:50051 routeguide.RouteGuide/RouteChat \-d \-
|
|
5056
|
+
|
|
5057
|
+
Test every streamed message, then the whole response:
|
|
5058
|
+
postman request grpc localhost:50051 routeguide.RouteGuide/ListFeatures \-d @area.json \e
|
|
5059
|
+
\-\-script\-on\-message "pm.test('has a name', () => pm.expect(pm.message.data.name).to.be.a('string'))" \e
|
|
5060
|
+
\-\-script\-after\-response "pm.test('ends OK', () => pm.expect(pm.response.code).to.equal(0))"
|
|
5061
|
+
|
|
5062
|
+
Pipe response messages to another tool:
|
|
5063
|
+
postman request grpc localhost:50051 helloworld.Greeter/SayHello \-\-response\-only | jq .message
|
|
5064
|
+
|
|
5065
|
+
Exit Codes:
|
|
5066
|
+
0: The call ended with status OK and every test passed
|
|
5067
|
+
1: The call failed, ended with a non\-OK status, or a test failed
|
|
5068
|
+
2: Usage error, including a method the schema does not define
|
|
5069
|
+
3: Not logged in to Postman
|
|
5070
|
+
8: Your plan does not include gRPC requests
|
|
5071
|
+
|
|
5072
|
+
|
|
5073
|
+
|
|
4785
5074
|
.SS "sdk"
|
|
4786
5075
|
Generate and manage your SDKs directly from the command line.
|
|
4787
5076
|
|
|
@@ -5238,7 +5527,7 @@ Same as \-\-mode stateful. Generated offline for a local file, by Postman with \
|
|
|
5238
5527
|
With \-\-mode ai: guidance for the AI, up to 2000 characters, e.g. "Orders can only be cancelled before they ship". Recorded with the mock, so \-\-update reuses them.
|
|
5239
5528
|
.TP
|
|
5240
5529
|
.B \-\-strict
|
|
5241
|
-
With \-\-mode ai: fail instead of falling back. Postman refuses a mock it would build without AI (exit 1, nothing written or saved). A mock whose AI rules reached only some operations, or one an older Postman built without AI anyway, is kept but exits 4.
|
|
5530
|
+
With \-\-mode ai: fail instead of falling back. Postman refuses a mock it would build without AI (exit 1, nothing written or saved). A mock whose AI rules reached only some operations, or one an older Postman built without AI anyway, is kept but exits 4. A cloud mock is saved before AI runs, so when AI fails it keeps its contract\-derived version (exit 1).
|
|
5242
5531
|
.TP
|
|
5243
5532
|
.B \-\-spec <specId>
|
|
5244
5533
|
Generate from a spec in Postman (by id) instead of a local file. With \-\-workspace, the mock stays linked to it and is regenerated when it changes.
|
|
@@ -5250,7 +5539,7 @@ Generate from a collection in Postman (by id) instead of a local file. With \-\-
|
|
|
5250
5539
|
Generate from a dataset: its tables become resources and their first 20 rows the records. A dataset in Postman (by id) or a local .dataset.yaml (CSV and JSON sources). Generated by Postman in stateful (the default) or ai mode; AI sees the column names and types, never the rows.
|
|
5251
5540
|
.TP
|
|
5252
5541
|
.B \-\-force
|
|
5253
|
-
Replace the mock's files if the target folder already holds a mock. A folder with other files and no mock is never written to.
|
|
5542
|
+
Replace the mock's files if the target folder already holds a mock. A folder with other files and no mock is never written to. With \-\-update, regenerate a handler that was edited by hand.
|
|
5254
5543
|
.TP
|
|
5255
5544
|
.B \-u, \-\-update <mockPathOrId>
|
|
5256
5545
|
Regenerate an existing mock in place: one in your repository by path (e.g. ./postman/mocks/orders), or one in Postman cloud by id. Without a source or \-\-mode, it uses the ones the mock recorded (and an ai mock's instructions). Cannot be used with \-\-output.
|
|
@@ -5268,7 +5557,7 @@ With \-\-deploy, let anyone with the link reach the server (default: callers nee
|
|
|
5268
5557
|
With \-\-deploy, the short label used in the server's web address. Requires \-\-deploy.
|
|
5269
5558
|
.TP
|
|
5270
5559
|
.B \-\-timeout <ms>
|
|
5271
|
-
How long to wait for Postman to
|
|
5560
|
+
How long to wait for Postman to answer the generate request, in milliseconds (default 75000). With \-\-mode ai, the AI step that follows is waited for up to 10 minutes.
|
|
5272
5561
|
.TP
|
|
5273
5562
|
.B \-\-api\-key <key>
|
|
5274
5563
|
Postman API key for anything Postman generates, saves or deploys (defaults to your `postman login` session)
|
|
@@ -7745,7 +8034,7 @@ Print a dataset's metadata and structure summary (local YAML path or cloud id).
|
|
|
7745
8034
|
Postman API key (defaults to the `postman login` session)
|
|
7746
8035
|
.TP
|
|
7747
8036
|
.B \-\-no\-populate
|
|
7748
|
-
Skip
|
|
8037
|
+
Skip the table/column structure for a local dataset, or datasources/views for a cloud one
|
|
7749
8038
|
.TP
|
|
7750
8039
|
.B \-\-json
|
|
7751
8040
|
Output the full dataset as JSON
|
|
@@ -7940,7 +8229,7 @@ Use this format instead of extension/type inference; file contents are not sniff
|
|
|
7940
8229
|
Source kind; local is inferred from \-\-file, jdbc from \-\-driver\-jar
|
|
7941
8230
|
.TP
|
|
7942
8231
|
.B \-\-file <path>
|
|
7943
|
-
Path to a local CSV/JSON/spreadsheet file (absolute or cwd\-relative)
|
|
8232
|
+
Path to a local CSV/JSON/NDJSON/spreadsheet file (absolute or cwd\-relative); .ndjson and .jsonl are read as json
|
|
7944
8233
|
.TP
|
|
7945
8234
|
.B \-\-ref\-only
|
|
7946
8235
|
Reference the file in place; do NOT copy into data_dir (local dataset)
|
|
@@ -8498,7 +8787,7 @@ Bind values to $1, $2, ... in order; pass multiple values after \-p or repeat \-
|
|
|
8498
8787
|
Postman API key (defaults to the `postman login` session)
|
|
8499
8788
|
.TP
|
|
8500
8789
|
.B \-\-json
|
|
8501
|
-
Output rows as JSON instead of a table
|
|
8790
|
+
Output rows as JSON instead of a table; a failure prints a JSON error on stdout
|
|
8502
8791
|
.TP
|
|
8503
8792
|
.B \-\-debug
|
|
8504
8793
|
Include safe classified dataset diagnostics
|
|
@@ -8512,6 +8801,15 @@ Examples:
|
|
|
8512
8801
|
postman dataset view run "Active Users" \e
|
|
8513
8802
|
\-d 14e30f6c\-1234\-1234\-1234\-cafef00dc0de \-p true
|
|
8514
8803
|
|
|
8804
|
+
JSON output (\-\-json):
|
|
8805
|
+
Success: the view result itself (unchanged; not wrapped in an envelope).
|
|
8806
|
+
Failure: {"ok":false,"error":{"code","message","remediation"?,...context}}, exit 1.
|
|
8807
|
+
A failure after rows were written closes the result with the rows so far plus
|
|
8808
|
+
"ok":false and "error", exit 1.
|
|
8809
|
+
Either way stdout holds one JSON document, so `\-\-json 2>/dev/null | jq .` parses it.
|
|
8810
|
+
"code" is the dataset error code when one is known (e.g. SQL_SYNTAX,
|
|
8811
|
+
QUERY_PARAMS_MISSING, AUTH_FAILED, PLAN_RESTRICTED), else DATASET_COMMAND_FAILED.
|
|
8812
|
+
|
|
8515
8813
|
|
|
8516
8814
|
|
|
8517
8815
|
.SS "dataset view create"
|
|
@@ -8537,6 +8835,9 @@ Bind the view to one datasource and run the query natively against it, instead o
|
|
|
8537
8835
|
.B \-\-view\-id <uuid>
|
|
8538
8836
|
Override the generated view id (local only; cloud assigns its own)
|
|
8539
8837
|
.TP
|
|
8838
|
+
.B \-\-no\-validate
|
|
8839
|
+
Save the view without first checking that its query runs against the dataset
|
|
8840
|
+
.TP
|
|
8540
8841
|
.B \-\-json
|
|
8541
8842
|
Emit the result as JSON instead of prose
|
|
8542
8843
|
.TP
|
|
@@ -8560,12 +8861,22 @@ Federated vs native:
|
|
|
8560
8861
|
join across sources. With \-\-source it is sent to that one datasource in its
|
|
8561
8862
|
own SQL dialect, which is what JDBC sources need. Mirrors `dataset query \-s`.
|
|
8562
8863
|
|
|
8864
|
+
Query validation:
|
|
8865
|
+
The query is prepared against the dataset before the view is written, so a
|
|
8866
|
+
query that cannot run is refused instead of failing later at `view run`.
|
|
8867
|
+
The query is planned, not run. Pass \-\-no\-validate to skip the
|
|
8868
|
+
check. A \-\-source (native) view is saved unchecked, because its query runs
|
|
8869
|
+
in that datasource's own SQL dialect. A view on a cloud dataset is also
|
|
8870
|
+
saved unchecked. Either way the result carries VIEW_NOT_VALIDATED.
|
|
8871
|
+
|
|
8563
8872
|
JSON output (\-\-json):
|
|
8564
8873
|
Success: {"ok":true,"view":{"id","name","target","datasourceId","viewType"},
|
|
8565
8874
|
"warnings":[]}
|
|
8566
8875
|
Failure: {"ok":false,"error":{"code","message","remediation"}}
|
|
8567
|
-
Error codes:
|
|
8568
|
-
DATASET_FILE_UNWRITABLE,
|
|
8876
|
+
Error codes: VIEW_QUERY_INVALID (with engineCode), SOURCE_NOT_FOUND (with
|
|
8877
|
+
available[]), DATASET_FILE_CHANGED, DATASET_FILE_UNWRITABLE,
|
|
8878
|
+
DATASET_COMMAND_FAILED
|
|
8879
|
+
Warning codes: VIEW_NOT_VALIDATED
|
|
8569
8880
|
|
|
8570
8881
|
|
|
8571
8882
|
|
|
@@ -8974,6 +9285,530 @@ Examples:
|
|
|
8974
9285
|
|
|
8975
9286
|
|
|
8976
9287
|
|
|
9288
|
+
.SS "mcp"
|
|
9289
|
+
Explore MCP servers: inspect them, list and call tools, read resources, and get prompts
|
|
9290
|
+
|
|
9291
|
+
.B Usage:
|
|
9292
|
+
[options] [command]
|
|
9293
|
+
|
|
9294
|
+
.TP Examples:
|
|
9295
|
+
|
|
9296
|
+
Each command takes one target: \-\-request <path|id>, \-\-url <url>, or a local stdio server with
|
|
9297
|
+
\-\-allow\-stdio and either \-\-command "<cmd>" or the command after \-\-, e.g.
|
|
9298
|
+
$ postman mcp tools list \-\-allow\-stdio \-\- node server.js \-\-transport stdio
|
|
9299
|
+
Every MCP operation has a 60000 ms time limit; change it with \-\-timeout\-request.
|
|
9300
|
+
|
|
9301
|
+
Interactive OAuth login is not supported yet. For a server that needs a token, pass one with
|
|
9302
|
+
\-H "Authorization: Bearer $TOKEN", or use \-\-request with a saved request whose auth holds one
|
|
9303
|
+
(bearer or OAuth 2). A saved OAuth 2 token is sent as saved and never refreshed.
|
|
9304
|
+
|
|
9305
|
+
Exit codes: 0 ok, 1 failure (including a tool result with isError), 2 usage, 3 the server
|
|
9306
|
+
rejected or requires credentials (HTTP 401/403), 4 inspect could not list everything, 5 cancelled,
|
|
9307
|
+
8 refused (stdio without \-\-allow\-stdio).
|
|
9308
|
+
|
|
9309
|
+
|
|
9310
|
+
.B Subcommands:
|
|
9311
|
+
.TP
|
|
9312
|
+
.B mcp inspect
|
|
9313
|
+
Show what an MCP server reports at initialize: capabilities and counts of tools, resources, resource templates and prompts (initialize, then every */list)
|
|
9314
|
+
.TP
|
|
9315
|
+
.B mcp tools
|
|
9316
|
+
List and call the tools an MCP server offers
|
|
9317
|
+
.TP
|
|
9318
|
+
.B mcp resources
|
|
9319
|
+
List and read the resources an MCP server offers
|
|
9320
|
+
.TP
|
|
9321
|
+
.B mcp prompts
|
|
9322
|
+
List and get the prompts an MCP server offers
|
|
9323
|
+
|
|
9324
|
+
.SS "mcp inspect"
|
|
9325
|
+
Show what an MCP server reports at initialize: capabilities and counts of tools, resources, resource templates and prompts (initialize, then every */list)
|
|
9326
|
+
|
|
9327
|
+
.B Usage:
|
|
9328
|
+
[options]
|
|
9329
|
+
|
|
9330
|
+
.B Options:
|
|
9331
|
+
.TP
|
|
9332
|
+
.B \-\-json
|
|
9333
|
+
Print the report as JSON
|
|
9334
|
+
.TP
|
|
9335
|
+
.B \-\-debug
|
|
9336
|
+
Print each @postman/runtime event, and the MCP client's debug messages, to stderr
|
|
9337
|
+
.TP
|
|
9338
|
+
.B \-\-request <path|id>
|
|
9339
|
+
Reuse a saved local\-mode MCP request ($kind: mcp\-request): a .request.yaml path, or the id of an MCP request in postman/collections/
|
|
9340
|
+
.TP
|
|
9341
|
+
.B \-\-url <url>
|
|
9342
|
+
Connect to a remote MCP server over HTTP (streamable HTTP, falling back to legacy SSE)
|
|
9343
|
+
.TP
|
|
9344
|
+
.B \-H, \-\-header <key:value>
|
|
9345
|
+
Add an HTTP header in key:value format. Repeatable. (default: )
|
|
9346
|
+
.TP
|
|
9347
|
+
.B \-\-transport <transport>
|
|
9348
|
+
Check the transport the target uses
|
|
9349
|
+
.TP
|
|
9350
|
+
.B \-\-command <command>
|
|
9351
|
+
Start a local MCP server and talk to it over stdio. Needs \-\-allow\-stdio. Or pass the command and its arguments after \-\-
|
|
9352
|
+
.TP
|
|
9353
|
+
.B \-\-command\-env <key=value>
|
|
9354
|
+
Set an environment variable for the \-\-command server. Repeatable. (default: )
|
|
9355
|
+
.TP
|
|
9356
|
+
.B \-\-allow\-stdio
|
|
9357
|
+
Allow starting a local process for a stdio server
|
|
9358
|
+
.TP
|
|
9359
|
+
.B \-k, \-\-insecure
|
|
9360
|
+
Disable TLS certificate verification for HTTP servers
|
|
9361
|
+
.TP
|
|
9362
|
+
.B \-\-timeout\-request <ms>
|
|
9363
|
+
Time limit for each MCP operation in ms (default: 60000, 0 for none)
|
|
9364
|
+
.TP
|
|
9365
|
+
.B \-\-protocol\-version <version>
|
|
9366
|
+
Protocol version negotiation (default: auto)
|
|
9367
|
+
.TP
|
|
9368
|
+
.B \-e, \-\-environment <path>
|
|
9369
|
+
Resolve {{variables}} from a local environment file
|
|
9370
|
+
.TP
|
|
9371
|
+
.B \-\-env\-var <key=value>
|
|
9372
|
+
Set an environment variable for {{variable}} resolution. Repeatable. (default: )
|
|
9373
|
+
|
|
9374
|
+
.TP Examples:
|
|
9375
|
+
|
|
9376
|
+
Examples:
|
|
9377
|
+
$ postman mcp inspect \-\-url https://example.com/mcp \-H "Authorization: Bearer $TOKEN"
|
|
9378
|
+
$ postman mcp inspect \-\-command "npx \-y @modelcontextprotocol/server\-everything" \-\-allow\-stdio \-\-json
|
|
9379
|
+
$ postman mcp inspect \-\-request "postman/collections/My Server/whoami.request.yaml"
|
|
9380
|
+
|
|
9381
|
+
|
|
9382
|
+
.SS "mcp tools"
|
|
9383
|
+
List and call the tools an MCP server offers
|
|
9384
|
+
|
|
9385
|
+
.B Usage:
|
|
9386
|
+
[options] [command]
|
|
9387
|
+
|
|
9388
|
+
.B Subcommands:
|
|
9389
|
+
.TP
|
|
9390
|
+
.B mcp tools list
|
|
9391
|
+
List the tools an MCP server offers (tools/list)
|
|
9392
|
+
.TP
|
|
9393
|
+
.B mcp tools call
|
|
9394
|
+
Call one tool and print its result (tools/call)
|
|
9395
|
+
|
|
9396
|
+
.SS "mcp tools list"
|
|
9397
|
+
List the tools an MCP server offers (tools/list)
|
|
9398
|
+
|
|
9399
|
+
.B Usage:
|
|
9400
|
+
[options]
|
|
9401
|
+
|
|
9402
|
+
.B Options:
|
|
9403
|
+
.TP
|
|
9404
|
+
.B \-\-json
|
|
9405
|
+
Print { tools } as JSON
|
|
9406
|
+
.TP
|
|
9407
|
+
.B \-\-debug
|
|
9408
|
+
Print each @postman/runtime event, and the MCP client's debug messages, to stderr
|
|
9409
|
+
.TP
|
|
9410
|
+
.B \-\-request <path|id>
|
|
9411
|
+
Reuse a saved local\-mode MCP request ($kind: mcp\-request): a .request.yaml path, or the id of an MCP request in postman/collections/
|
|
9412
|
+
.TP
|
|
9413
|
+
.B \-\-url <url>
|
|
9414
|
+
Connect to a remote MCP server over HTTP (streamable HTTP, falling back to legacy SSE)
|
|
9415
|
+
.TP
|
|
9416
|
+
.B \-H, \-\-header <key:value>
|
|
9417
|
+
Add an HTTP header in key:value format. Repeatable. (default: )
|
|
9418
|
+
.TP
|
|
9419
|
+
.B \-\-transport <transport>
|
|
9420
|
+
Check the transport the target uses
|
|
9421
|
+
.TP
|
|
9422
|
+
.B \-\-command <command>
|
|
9423
|
+
Start a local MCP server and talk to it over stdio. Needs \-\-allow\-stdio. Or pass the command and its arguments after \-\-
|
|
9424
|
+
.TP
|
|
9425
|
+
.B \-\-command\-env <key=value>
|
|
9426
|
+
Set an environment variable for the \-\-command server. Repeatable. (default: )
|
|
9427
|
+
.TP
|
|
9428
|
+
.B \-\-allow\-stdio
|
|
9429
|
+
Allow starting a local process for a stdio server
|
|
9430
|
+
.TP
|
|
9431
|
+
.B \-k, \-\-insecure
|
|
9432
|
+
Disable TLS certificate verification for HTTP servers
|
|
9433
|
+
.TP
|
|
9434
|
+
.B \-\-timeout\-request <ms>
|
|
9435
|
+
Time limit for each MCP operation in ms (default: 60000, 0 for none)
|
|
9436
|
+
.TP
|
|
9437
|
+
.B \-\-protocol\-version <version>
|
|
9438
|
+
Protocol version negotiation (default: auto)
|
|
9439
|
+
.TP
|
|
9440
|
+
.B \-e, \-\-environment <path>
|
|
9441
|
+
Resolve {{variables}} from a local environment file
|
|
9442
|
+
.TP
|
|
9443
|
+
.B \-\-env\-var <key=value>
|
|
9444
|
+
Set an environment variable for {{variable}} resolution. Repeatable. (default: )
|
|
9445
|
+
|
|
9446
|
+
.SS "mcp tools call"
|
|
9447
|
+
Call one tool and print its result (tools/call)
|
|
9448
|
+
|
|
9449
|
+
.B Usage:
|
|
9450
|
+
[options] <tool>
|
|
9451
|
+
|
|
9452
|
+
.B Options:
|
|
9453
|
+
.TP
|
|
9454
|
+
.B \-\-args <json|@file|\->
|
|
9455
|
+
Tool arguments as a JSON object, @path to a JSON file, or \- for stdin. Defaults to the \-\-request message's saved arguments for the same tool
|
|
9456
|
+
.TP
|
|
9457
|
+
.B \-\-arg <key=value>
|
|
9458
|
+
One tool argument, typed by the tool's inputSchema (a number, boolean, JSON object or array, or a string). Repeatable; a repeated key keeps the last value. Not with \-\-args (default: )
|
|
9459
|
+
.TP
|
|
9460
|
+
.B \-\-json
|
|
9461
|
+
Print the CallToolResult as JSON
|
|
9462
|
+
.TP
|
|
9463
|
+
.B \-\-debug
|
|
9464
|
+
Print each @postman/runtime event, and the MCP client's debug messages, to stderr
|
|
9465
|
+
.TP
|
|
9466
|
+
.B \-\-request <path|id>
|
|
9467
|
+
Reuse a saved local\-mode MCP request ($kind: mcp\-request): a .request.yaml path, or the id of an MCP request in postman/collections/
|
|
9468
|
+
.TP
|
|
9469
|
+
.B \-\-url <url>
|
|
9470
|
+
Connect to a remote MCP server over HTTP (streamable HTTP, falling back to legacy SSE)
|
|
9471
|
+
.TP
|
|
9472
|
+
.B \-H, \-\-header <key:value>
|
|
9473
|
+
Add an HTTP header in key:value format. Repeatable. (default: )
|
|
9474
|
+
.TP
|
|
9475
|
+
.B \-\-transport <transport>
|
|
9476
|
+
Check the transport the target uses
|
|
9477
|
+
.TP
|
|
9478
|
+
.B \-\-command <command>
|
|
9479
|
+
Start a local MCP server and talk to it over stdio. Needs \-\-allow\-stdio. Or pass the command and its arguments after \-\-
|
|
9480
|
+
.TP
|
|
9481
|
+
.B \-\-command\-env <key=value>
|
|
9482
|
+
Set an environment variable for the \-\-command server. Repeatable. (default: )
|
|
9483
|
+
.TP
|
|
9484
|
+
.B \-\-allow\-stdio
|
|
9485
|
+
Allow starting a local process for a stdio server
|
|
9486
|
+
.TP
|
|
9487
|
+
.B \-k, \-\-insecure
|
|
9488
|
+
Disable TLS certificate verification for HTTP servers
|
|
9489
|
+
.TP
|
|
9490
|
+
.B \-\-timeout\-request <ms>
|
|
9491
|
+
Time limit for each MCP operation in ms (default: 60000, 0 for none)
|
|
9492
|
+
.TP
|
|
9493
|
+
.B \-\-protocol\-version <version>
|
|
9494
|
+
Protocol version negotiation (default: auto)
|
|
9495
|
+
.TP
|
|
9496
|
+
.B \-e, \-\-environment <path>
|
|
9497
|
+
Resolve {{variables}} from a local environment file
|
|
9498
|
+
.TP
|
|
9499
|
+
.B \-\-env\-var <key=value>
|
|
9500
|
+
Set an environment variable for {{variable}} resolution. Repeatable. (default: )
|
|
9501
|
+
|
|
9502
|
+
.TP Examples:
|
|
9503
|
+
|
|
9504
|
+
Before calling, the arguments are checked against the tool's inputSchema: required properties, enum
|
|
9505
|
+
and const values, and null. A failed check exits 2 and sends nothing. A \-\-request's saved message is
|
|
9506
|
+
sent as written.
|
|
9507
|
+
|
|
9508
|
+
Examples:
|
|
9509
|
+
$ postman mcp tools call add \-\-arg a=2 \-\-arg b=3 \-\-url http://localhost:3000/mcp
|
|
9510
|
+
$ postman mcp tools call echo \-\-args '{"text":"hi"}' \-\-allow\-stdio \-\- node server.js \-\-stdio
|
|
9511
|
+
$ postman mcp tools call search \-\-args @args.json \-\-request search.request.yaml \-\-json | jq .structuredContent
|
|
9512
|
+
|
|
9513
|
+
|
|
9514
|
+
.SS "mcp resources"
|
|
9515
|
+
List and read the resources an MCP server offers
|
|
9516
|
+
|
|
9517
|
+
.B Usage:
|
|
9518
|
+
[options] [command]
|
|
9519
|
+
|
|
9520
|
+
.B Subcommands:
|
|
9521
|
+
.TP
|
|
9522
|
+
.B mcp resources list
|
|
9523
|
+
List the resources an MCP server offers (resources/list)
|
|
9524
|
+
.TP
|
|
9525
|
+
.B mcp resources templates
|
|
9526
|
+
List the resource templates an MCP server offers
|
|
9527
|
+
.TP
|
|
9528
|
+
.B mcp resources read
|
|
9529
|
+
Read one resource and print its contents (resources/read)
|
|
9530
|
+
|
|
9531
|
+
.SS "mcp resources list"
|
|
9532
|
+
List the resources an MCP server offers (resources/list)
|
|
9533
|
+
|
|
9534
|
+
.B Usage:
|
|
9535
|
+
[options]
|
|
9536
|
+
|
|
9537
|
+
.B Options:
|
|
9538
|
+
.TP
|
|
9539
|
+
.B \-\-json
|
|
9540
|
+
Print { resources } as JSON
|
|
9541
|
+
.TP
|
|
9542
|
+
.B \-\-debug
|
|
9543
|
+
Print each @postman/runtime event, and the MCP client's debug messages, to stderr
|
|
9544
|
+
.TP
|
|
9545
|
+
.B \-\-request <path|id>
|
|
9546
|
+
Reuse a saved local\-mode MCP request ($kind: mcp\-request): a .request.yaml path, or the id of an MCP request in postman/collections/
|
|
9547
|
+
.TP
|
|
9548
|
+
.B \-\-url <url>
|
|
9549
|
+
Connect to a remote MCP server over HTTP (streamable HTTP, falling back to legacy SSE)
|
|
9550
|
+
.TP
|
|
9551
|
+
.B \-H, \-\-header <key:value>
|
|
9552
|
+
Add an HTTP header in key:value format. Repeatable. (default: )
|
|
9553
|
+
.TP
|
|
9554
|
+
.B \-\-transport <transport>
|
|
9555
|
+
Check the transport the target uses
|
|
9556
|
+
.TP
|
|
9557
|
+
.B \-\-command <command>
|
|
9558
|
+
Start a local MCP server and talk to it over stdio. Needs \-\-allow\-stdio. Or pass the command and its arguments after \-\-
|
|
9559
|
+
.TP
|
|
9560
|
+
.B \-\-command\-env <key=value>
|
|
9561
|
+
Set an environment variable for the \-\-command server. Repeatable. (default: )
|
|
9562
|
+
.TP
|
|
9563
|
+
.B \-\-allow\-stdio
|
|
9564
|
+
Allow starting a local process for a stdio server
|
|
9565
|
+
.TP
|
|
9566
|
+
.B \-k, \-\-insecure
|
|
9567
|
+
Disable TLS certificate verification for HTTP servers
|
|
9568
|
+
.TP
|
|
9569
|
+
.B \-\-timeout\-request <ms>
|
|
9570
|
+
Time limit for each MCP operation in ms (default: 60000, 0 for none)
|
|
9571
|
+
.TP
|
|
9572
|
+
.B \-\-protocol\-version <version>
|
|
9573
|
+
Protocol version negotiation (default: auto)
|
|
9574
|
+
.TP
|
|
9575
|
+
.B \-e, \-\-environment <path>
|
|
9576
|
+
Resolve {{variables}} from a local environment file
|
|
9577
|
+
.TP
|
|
9578
|
+
.B \-\-env\-var <key=value>
|
|
9579
|
+
Set an environment variable for {{variable}} resolution. Repeatable. (default: )
|
|
9580
|
+
|
|
9581
|
+
.SS "mcp resources templates"
|
|
9582
|
+
List the resource templates an MCP server offers
|
|
9583
|
+
|
|
9584
|
+
.B Usage:
|
|
9585
|
+
[options] [command]
|
|
9586
|
+
|
|
9587
|
+
.B Subcommands:
|
|
9588
|
+
.TP
|
|
9589
|
+
.B mcp resources templates list
|
|
9590
|
+
List the resource templates an MCP server offers (resources/templates/list)
|
|
9591
|
+
|
|
9592
|
+
.SS "mcp resources templates list"
|
|
9593
|
+
List the resource templates an MCP server offers (resources/templates/list)
|
|
9594
|
+
|
|
9595
|
+
.B Usage:
|
|
9596
|
+
[options]
|
|
9597
|
+
|
|
9598
|
+
.B Options:
|
|
9599
|
+
.TP
|
|
9600
|
+
.B \-\-json
|
|
9601
|
+
Print { resourceTemplates } as JSON
|
|
9602
|
+
.TP
|
|
9603
|
+
.B \-\-debug
|
|
9604
|
+
Print each @postman/runtime event, and the MCP client's debug messages, to stderr
|
|
9605
|
+
.TP
|
|
9606
|
+
.B \-\-request <path|id>
|
|
9607
|
+
Reuse a saved local\-mode MCP request ($kind: mcp\-request): a .request.yaml path, or the id of an MCP request in postman/collections/
|
|
9608
|
+
.TP
|
|
9609
|
+
.B \-\-url <url>
|
|
9610
|
+
Connect to a remote MCP server over HTTP (streamable HTTP, falling back to legacy SSE)
|
|
9611
|
+
.TP
|
|
9612
|
+
.B \-H, \-\-header <key:value>
|
|
9613
|
+
Add an HTTP header in key:value format. Repeatable. (default: )
|
|
9614
|
+
.TP
|
|
9615
|
+
.B \-\-transport <transport>
|
|
9616
|
+
Check the transport the target uses
|
|
9617
|
+
.TP
|
|
9618
|
+
.B \-\-command <command>
|
|
9619
|
+
Start a local MCP server and talk to it over stdio. Needs \-\-allow\-stdio. Or pass the command and its arguments after \-\-
|
|
9620
|
+
.TP
|
|
9621
|
+
.B \-\-command\-env <key=value>
|
|
9622
|
+
Set an environment variable for the \-\-command server. Repeatable. (default: )
|
|
9623
|
+
.TP
|
|
9624
|
+
.B \-\-allow\-stdio
|
|
9625
|
+
Allow starting a local process for a stdio server
|
|
9626
|
+
.TP
|
|
9627
|
+
.B \-k, \-\-insecure
|
|
9628
|
+
Disable TLS certificate verification for HTTP servers
|
|
9629
|
+
.TP
|
|
9630
|
+
.B \-\-timeout\-request <ms>
|
|
9631
|
+
Time limit for each MCP operation in ms (default: 60000, 0 for none)
|
|
9632
|
+
.TP
|
|
9633
|
+
.B \-\-protocol\-version <version>
|
|
9634
|
+
Protocol version negotiation (default: auto)
|
|
9635
|
+
.TP
|
|
9636
|
+
.B \-e, \-\-environment <path>
|
|
9637
|
+
Resolve {{variables}} from a local environment file
|
|
9638
|
+
.TP
|
|
9639
|
+
.B \-\-env\-var <key=value>
|
|
9640
|
+
Set an environment variable for {{variable}} resolution. Repeatable. (default: )
|
|
9641
|
+
|
|
9642
|
+
.SS "mcp resources read"
|
|
9643
|
+
Read one resource and print its contents (resources/read)
|
|
9644
|
+
|
|
9645
|
+
.B Usage:
|
|
9646
|
+
[options] <uri>
|
|
9647
|
+
|
|
9648
|
+
.B Options:
|
|
9649
|
+
.TP
|
|
9650
|
+
.B \-\-json
|
|
9651
|
+
Print the ReadResourceResult as JSON (blob contents stay base64)
|
|
9652
|
+
.TP
|
|
9653
|
+
.B \-\-debug
|
|
9654
|
+
Print each @postman/runtime event, and the MCP client's debug messages, to stderr
|
|
9655
|
+
.TP
|
|
9656
|
+
.B \-\-request <path|id>
|
|
9657
|
+
Reuse a saved local\-mode MCP request ($kind: mcp\-request): a .request.yaml path, or the id of an MCP request in postman/collections/
|
|
9658
|
+
.TP
|
|
9659
|
+
.B \-\-url <url>
|
|
9660
|
+
Connect to a remote MCP server over HTTP (streamable HTTP, falling back to legacy SSE)
|
|
9661
|
+
.TP
|
|
9662
|
+
.B \-H, \-\-header <key:value>
|
|
9663
|
+
Add an HTTP header in key:value format. Repeatable. (default: )
|
|
9664
|
+
.TP
|
|
9665
|
+
.B \-\-transport <transport>
|
|
9666
|
+
Check the transport the target uses
|
|
9667
|
+
.TP
|
|
9668
|
+
.B \-\-command <command>
|
|
9669
|
+
Start a local MCP server and talk to it over stdio. Needs \-\-allow\-stdio. Or pass the command and its arguments after \-\-
|
|
9670
|
+
.TP
|
|
9671
|
+
.B \-\-command\-env <key=value>
|
|
9672
|
+
Set an environment variable for the \-\-command server. Repeatable. (default: )
|
|
9673
|
+
.TP
|
|
9674
|
+
.B \-\-allow\-stdio
|
|
9675
|
+
Allow starting a local process for a stdio server
|
|
9676
|
+
.TP
|
|
9677
|
+
.B \-k, \-\-insecure
|
|
9678
|
+
Disable TLS certificate verification for HTTP servers
|
|
9679
|
+
.TP
|
|
9680
|
+
.B \-\-timeout\-request <ms>
|
|
9681
|
+
Time limit for each MCP operation in ms (default: 60000, 0 for none)
|
|
9682
|
+
.TP
|
|
9683
|
+
.B \-\-protocol\-version <version>
|
|
9684
|
+
Protocol version negotiation (default: auto)
|
|
9685
|
+
.TP
|
|
9686
|
+
.B \-e, \-\-environment <path>
|
|
9687
|
+
Resolve {{variables}} from a local environment file
|
|
9688
|
+
.TP
|
|
9689
|
+
.B \-\-env\-var <key=value>
|
|
9690
|
+
Set an environment variable for {{variable}} resolution. Repeatable. (default: )
|
|
9691
|
+
|
|
9692
|
+
.SS "mcp prompts"
|
|
9693
|
+
List and get the prompts an MCP server offers
|
|
9694
|
+
|
|
9695
|
+
.B Usage:
|
|
9696
|
+
[options] [command]
|
|
9697
|
+
|
|
9698
|
+
.B Subcommands:
|
|
9699
|
+
.TP
|
|
9700
|
+
.B mcp prompts list
|
|
9701
|
+
List the prompts an MCP server offers (prompts/list)
|
|
9702
|
+
.TP
|
|
9703
|
+
.B mcp prompts get
|
|
9704
|
+
Get one prompt with its arguments filled in (prompts/get)
|
|
9705
|
+
|
|
9706
|
+
.SS "mcp prompts list"
|
|
9707
|
+
List the prompts an MCP server offers (prompts/list)
|
|
9708
|
+
|
|
9709
|
+
.B Usage:
|
|
9710
|
+
[options]
|
|
9711
|
+
|
|
9712
|
+
.B Options:
|
|
9713
|
+
.TP
|
|
9714
|
+
.B \-\-json
|
|
9715
|
+
Print { prompts } as JSON
|
|
9716
|
+
.TP
|
|
9717
|
+
.B \-\-debug
|
|
9718
|
+
Print each @postman/runtime event, and the MCP client's debug messages, to stderr
|
|
9719
|
+
.TP
|
|
9720
|
+
.B \-\-request <path|id>
|
|
9721
|
+
Reuse a saved local\-mode MCP request ($kind: mcp\-request): a .request.yaml path, or the id of an MCP request in postman/collections/
|
|
9722
|
+
.TP
|
|
9723
|
+
.B \-\-url <url>
|
|
9724
|
+
Connect to a remote MCP server over HTTP (streamable HTTP, falling back to legacy SSE)
|
|
9725
|
+
.TP
|
|
9726
|
+
.B \-H, \-\-header <key:value>
|
|
9727
|
+
Add an HTTP header in key:value format. Repeatable. (default: )
|
|
9728
|
+
.TP
|
|
9729
|
+
.B \-\-transport <transport>
|
|
9730
|
+
Check the transport the target uses
|
|
9731
|
+
.TP
|
|
9732
|
+
.B \-\-command <command>
|
|
9733
|
+
Start a local MCP server and talk to it over stdio. Needs \-\-allow\-stdio. Or pass the command and its arguments after \-\-
|
|
9734
|
+
.TP
|
|
9735
|
+
.B \-\-command\-env <key=value>
|
|
9736
|
+
Set an environment variable for the \-\-command server. Repeatable. (default: )
|
|
9737
|
+
.TP
|
|
9738
|
+
.B \-\-allow\-stdio
|
|
9739
|
+
Allow starting a local process for a stdio server
|
|
9740
|
+
.TP
|
|
9741
|
+
.B \-k, \-\-insecure
|
|
9742
|
+
Disable TLS certificate verification for HTTP servers
|
|
9743
|
+
.TP
|
|
9744
|
+
.B \-\-timeout\-request <ms>
|
|
9745
|
+
Time limit for each MCP operation in ms (default: 60000, 0 for none)
|
|
9746
|
+
.TP
|
|
9747
|
+
.B \-\-protocol\-version <version>
|
|
9748
|
+
Protocol version negotiation (default: auto)
|
|
9749
|
+
.TP
|
|
9750
|
+
.B \-e, \-\-environment <path>
|
|
9751
|
+
Resolve {{variables}} from a local environment file
|
|
9752
|
+
.TP
|
|
9753
|
+
.B \-\-env\-var <key=value>
|
|
9754
|
+
Set an environment variable for {{variable}} resolution. Repeatable. (default: )
|
|
9755
|
+
|
|
9756
|
+
.SS "mcp prompts get"
|
|
9757
|
+
Get one prompt with its arguments filled in (prompts/get)
|
|
9758
|
+
|
|
9759
|
+
.B Usage:
|
|
9760
|
+
[options] <name>
|
|
9761
|
+
|
|
9762
|
+
.B Options:
|
|
9763
|
+
.TP
|
|
9764
|
+
.B \-\-args <json|@file|\->
|
|
9765
|
+
Prompt arguments as a JSON object of strings, @path, or \- for stdin
|
|
9766
|
+
.TP
|
|
9767
|
+
.B \-\-arg <key=value>
|
|
9768
|
+
One prompt argument, always sent as a string. Repeatable; a repeated key keeps the last value. Not with \-\-args (default: )
|
|
9769
|
+
.TP
|
|
9770
|
+
.B \-\-json
|
|
9771
|
+
Print the GetPromptResult as JSON
|
|
9772
|
+
.TP
|
|
9773
|
+
.B \-\-debug
|
|
9774
|
+
Print each @postman/runtime event, and the MCP client's debug messages, to stderr
|
|
9775
|
+
.TP
|
|
9776
|
+
.B \-\-request <path|id>
|
|
9777
|
+
Reuse a saved local\-mode MCP request ($kind: mcp\-request): a .request.yaml path, or the id of an MCP request in postman/collections/
|
|
9778
|
+
.TP
|
|
9779
|
+
.B \-\-url <url>
|
|
9780
|
+
Connect to a remote MCP server over HTTP (streamable HTTP, falling back to legacy SSE)
|
|
9781
|
+
.TP
|
|
9782
|
+
.B \-H, \-\-header <key:value>
|
|
9783
|
+
Add an HTTP header in key:value format. Repeatable. (default: )
|
|
9784
|
+
.TP
|
|
9785
|
+
.B \-\-transport <transport>
|
|
9786
|
+
Check the transport the target uses
|
|
9787
|
+
.TP
|
|
9788
|
+
.B \-\-command <command>
|
|
9789
|
+
Start a local MCP server and talk to it over stdio. Needs \-\-allow\-stdio. Or pass the command and its arguments after \-\-
|
|
9790
|
+
.TP
|
|
9791
|
+
.B \-\-command\-env <key=value>
|
|
9792
|
+
Set an environment variable for the \-\-command server. Repeatable. (default: )
|
|
9793
|
+
.TP
|
|
9794
|
+
.B \-\-allow\-stdio
|
|
9795
|
+
Allow starting a local process for a stdio server
|
|
9796
|
+
.TP
|
|
9797
|
+
.B \-k, \-\-insecure
|
|
9798
|
+
Disable TLS certificate verification for HTTP servers
|
|
9799
|
+
.TP
|
|
9800
|
+
.B \-\-timeout\-request <ms>
|
|
9801
|
+
Time limit for each MCP operation in ms (default: 60000, 0 for none)
|
|
9802
|
+
.TP
|
|
9803
|
+
.B \-\-protocol\-version <version>
|
|
9804
|
+
Protocol version negotiation (default: auto)
|
|
9805
|
+
.TP
|
|
9806
|
+
.B \-e, \-\-environment <path>
|
|
9807
|
+
Resolve {{variables}} from a local environment file
|
|
9808
|
+
.TP
|
|
9809
|
+
.B \-\-env\-var <key=value>
|
|
9810
|
+
Set an environment variable for {{variable}} resolution. Repeatable. (default: )
|
|
9811
|
+
|
|
8977
9812
|
.SH SEE ALSO
|
|
8978
9813
|
Full documentation: https://learning.postman.com/docs/postman\-cli/postman\-cli\-overview/
|
|
8979
9814
|
.SH AUTHOR
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "postman-cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.88.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.88.0",
|
|
61
|
+
"@postman/pm-bin-macos-x64": "1.88.0",
|
|
62
|
+
"@postman/pm-bin-linux-x64": "1.88.0",
|
|
63
|
+
"@postman/pm-bin-linux-arm64": "1.88.0",
|
|
64
|
+
"@postman/pm-bin-windows-x64": "1.88.0"
|
|
65
65
|
}
|
|
66
66
|
}
|