postman-cli 1.68.0 → 1.70.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 (3) hide show
  1. package/README.md +0 -12
  2. package/man/postman.1 +795 -73
  3. package/package.json +6 -6
package/README.md CHANGED
@@ -20,18 +20,6 @@ The Postman CLI brings the power of Postman’s API platform directly to your te
20
20
  npm install -g postman-cli
21
21
  ```
22
22
 
23
- After a global npm installation, the package checks for existing Claude Code and Codex
24
- configuration directories. When found, it adds a managed Postman CLI availability note to
25
- the agent's global instructions without replacing existing content. This step is idempotent
26
- and non-blocking, so an inaccessible agent configuration does not fail the CLI installation.
27
-
28
- npm hides successful lifecycle-script output by default. To see the agent configuration
29
- summary and Claude Code plugin recommendation during installation, use:
30
-
31
- ```bash
32
- npm install -g postman-cli --foreground-scripts
33
- ```
34
-
35
23
  ### Alternative Installation Methods
36
24
 
37
25
  For direct binary downloads, platform-specific installers, or other installation methods, see the **[Installation Guide](https://learning.postman.com/docs/postman-cli/postman-cli-installation/)**.
package/man/postman.1 CHANGED
@@ -1,4 +1,4 @@
1
- .TH POSTMAN 1 "2026-10-01" "v1.68.0" "Postman CLI Manual"
1
+ .TH POSTMAN 1 "2026-10-07" "v1.70.0" "Postman CLI Manual"
2
2
  .SH NAME
3
3
  postman \- Command\-line companion utility for Postman
4
4
  .SH SYNOPSIS
@@ -8,12 +8,17 @@ postman \- Command\-line companion utility for Postman
8
8
  The Postman CLI is a command\-line companion utility that brings the power of Postman platform directly to your terminal. It enables you to run collections, lint APIs, manage monitors, and integrate API testing into CI/CD pipelines.
9
9
  .br
10
10
  Note: All commands support the --help option for more information..
11
- .SH CLAUDE CODE PLUGIN
12
- Claude Code users and agents can use the Postman Plugin for Claude Code for full API lifecycle management including documentation, collections, workspaces, environments, mocks, monitors right from your repository.
11
+ .SH LOCAL AND CLOUD WORKFLOWS
12
+ Postman CLI works locally by default for filesystem\-backed entities such as collections, environments, and API specifications. Commands that support cloud resources document the parameter that switches them to a Postman workspace, such as --workspace <id> or an equivalent. Use those workspace\-scoped options when you want the command to read from or write to cloud entities instead of local files.
13
13
  .br
14
- Install it with: claude plugin install postman@claude\-plugins\-official
14
+ The filesystem\-backed entities can be synced to and from the cloud, using `workspace <push|pull>`.
15
15
  .br
16
- Then start Claude Code and run: /postman:setup
16
+ .SH POSTMAN PLUGIN FOR CODING AGENTS
17
+ The Postman plugin provides Postman MCP setup, collection workflows, API discovery, testing, mocks, documentation, and API readiness guidance for supported coding agents.
18
+ .br
19
+ Install Postman in every compatible coding agent detected on your machine with: npx @postman/postman\-plugin
20
+ .br
21
+ Full plugin instructions with individual agent guides: https://github.com/postmanlabs/postman\-plugin#readme
17
22
  .br
18
23
  .SH OPTIONS
19
24
  .TP
@@ -96,11 +101,11 @@ Which spec is authoritative, when more than one could be
96
101
  .B \-\-visibility <status>
97
102
  Create and bind a workspace non\-interactively (personal, team)
98
103
  .TP
99
- .B \-\-no\-cloud
100
- Skip the workspace step entirely
104
+ .B \-y, \-\-yes
105
+ Accept the default for every question instead of asking or stopping
101
106
  .TP
102
107
  .B \-\-report\-events
103
- Send init analytics to Postman (requires login)
108
+ Dispatch init events to the API Catalog and Application Inventory ingestion pipelines (requires login)
104
109
 
105
110
  .TP Examples:
106
111
 
@@ -114,15 +119,20 @@ for test\-traffic capture.
114
119
  Exit codes:
115
120
  0 set up, or adopted an existing setup
116
121
  1 init could not run: bad usage, or an unexpected error
117
- 2 several specs could be authoritative \- re\-run with \-\-spec <path>
122
+ 2 several specs could be authoritative \- re\-run with \-\-spec <path>, or \-\-yes
118
123
  4 refused: postman/ holds source files, or a binding names a missing file
119
124
  5 local setup done, but the workspace \-\-visibility asked for was not made
120
125
 
126
+ \-\-yes answers every question with its default: several candidate specs leave
127
+ the spec unbound unless \-\-spec names one, and a workspace is created and
128
+ bound as \-\-visibility personal unless \-\-visibility says otherwise (a guest
129
+ session when not signed in). CI never creates one.
130
+
121
131
  Code 5 needs \-\-visibility: without it no workspace was requested, so nothing
122
132
  can fail for not getting one. It does not mean re\-run init \- the local files
123
133
  are already written. A \-\-visibility that is not personal, team is code 5 on
124
- every path, including \-\-json, CI and \-\-no\-cloud: none of them makes the value
125
- usable, so none of them should report success for it.
134
+ every path, including \-\-json and CI: neither of them makes the value
135
+ usable, so neither of them should report success for it.
126
136
 
127
137
  Under \-\-json, read `exitCode`, `refusal`, `usageError` and `cloud` from the
128
138
  payload rather than matching the messages on stderr. `refusal.kind` is one of
@@ -142,6 +152,7 @@ Examples:
142
152
  $ postman init \-\-dry\-run
143
153
  $ postman init \-\-spec postman/specs/orders.yaml
144
154
  $ postman init \-\-visibility personal
155
+ $ postman init \-\-yes
145
156
 
146
157
 
147
158
  .SS "whoami"
@@ -287,6 +298,9 @@ Migrate a v2.1 collection to the v3 format
287
298
  .B collection lint
288
299
  Run linting on a local v3 collection at the given file or directory path.
289
300
  .TP
301
+ .B collection ai-readiness
302
+ Score a Postman collection for AI readiness by ID, local file path, or local\-mode directory.
303
+ .TP
290
304
  .B collection get
291
305
  Fetch a Postman collection in the V3 format and print it.
292
306
  .TP
@@ -300,10 +314,13 @@ Generate artifacts from a collection.
300
314
  Sync artifacts generated from a collection.
301
315
  .TP
302
316
  .B collection request
303
- Add, update, or remove requests in a local v3 collection.
317
+ Add, get, update, or remove requests in a local v3 collection.
304
318
  .TP
305
319
  .B collection folder
306
- Add, update, or remove folders in a local v3 collection.
320
+ Add, get, update, or remove folders in a local v3 collection.
321
+ .TP
322
+ .B collection example
323
+ Add, update, remove, get, or list examples (saved responses) under a request.
307
324
  .TP
308
325
  .B collection import
309
326
  Import a cURL or HAR source into a v3 collection (local, or cloud with \-\-workspace).
@@ -374,6 +391,35 @@ Exit with failure if diagnostics at this level or above are present. [choices: "
374
391
  .B \-r, \-\-reporter <value>
375
392
  Output format: cli (human\-readable) or json. (default: cli)
376
393
 
394
+ .SS "collection ai\-readiness"
395
+ Score a Postman collection for AI readiness by ID, local file path, or local\-mode directory.
396
+
397
+ .B Usage:
398
+ <collectionId/Path> [options]
399
+
400
+ .B Options:
401
+ .TP
402
+ .B \-o, \-\-output <value>
403
+ Output format for the results. [choices: "cli", "json", "html"]
404
+ .TP
405
+ .B \-\-export <path>
406
+ Write the report to this file instead of stdout. A directory receives the report under a name derived from the collection. Requires \-\-output html.
407
+ .TP
408
+ .B \-\-min\-score <n>
409
+ Exit with a non\-zero code if the overall score is below this threshold (0\-100).
410
+
411
+ .TP Examples:
412
+
413
+ Examples:
414
+ $ postman collection ai\-readiness ./postman/collections/My\e API
415
+ $ postman collection ai\-readiness ./my\-collection.json
416
+ $ postman collection ai\-readiness 631643\-f695cab7\-... \-\-output json
417
+ $ postman collection ai\-readiness ./my\-collection.json \-\-output html > report.html
418
+ $ postman collection ai\-readiness ./my\-collection.json \-\-min\-score 70
419
+
420
+ Resolving a collection by ID requires authentication. Use `postman login` before running this command with a UID.
421
+
422
+
377
423
  .SS "collection get"
378
424
  Fetch a Postman collection in the V3 format and print it.
379
425
 
@@ -510,7 +556,7 @@ Examples:
510
556
 
511
557
 
512
558
  .SS "collection request"
513
- Add, update, or remove requests in a local v3 collection.
559
+ Add, get, update, or remove requests in a local v3 collection.
514
560
 
515
561
  .B Usage:
516
562
  [options] [command]
@@ -520,6 +566,9 @@ Add, update, or remove requests in a local v3 collection.
520
566
  .B collection request add
521
567
  Add an empty request to a local v3 collection (set its details later with `update`).
522
568
  .TP
569
+ .B collection request get
570
+ Show a request (any type) in a v3 collection: its own fields, with examples and messages as references.
571
+ .TP
523
572
  .B collection request update
524
573
  Update a request in a v3 collection (only the fields you pass).
525
574
  .TP
@@ -560,6 +609,38 @@ Examples:
560
609
 
561
610
 
562
611
 
612
+ .SS "collection request get"
613
+ Show a request (any type) in a v3 collection: its own fields, with examples and messages as references.
614
+
615
+ .B Usage:
616
+ [options] <request>
617
+
618
+ .B Options:
619
+ .TP
620
+ .B \-\-collection <id|name>
621
+ Target collection: name, directory, id, cloud id, or path. Required locally; optional in cloud mode (id only).
622
+ .TP
623
+ .B \-\-folder <id|name|path>
624
+ Folder to scope a bare\-name request selector, e.g. "Users/Admin" (local mode only).
625
+ .TP
626
+ .B \-w, \-\-workspace <id>
627
+ Target a Postman cloud workspace by id (cloud mode).
628
+ .TP
629
+ .B \-\-json
630
+ JSON output.
631
+
632
+ .TP Examples:
633
+
634
+ Prints the request's own fields in the V3 collection format. Its examples (and, for WebSocket / Socket.IO / MQTT, its messages) are listed as references ({ id, $kind } in cloud mode; { name, $kind } plus id when stored, locally). "parent" is added: the containing folder, or the collection for a top\-level request. A linked copy of a reusable request carries "uses" (its source request id) and a source carries "usedBy" (its linked copies); the source may live in another collection, so fetch it by id alone. 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) optional and no \-\-folder. Read\-only: locally it reads v3 collections only and rejects a v2.1 .json instead of converting it.
635
+
636
+ Examples:
637
+ postman collection request get "Get user" \-\-collection "My API"
638
+ postman collection request get "Users/Get user" \-\-collection "My API" \-\-json
639
+ postman collection request get <requestId> \-w <workspaceId>
640
+ postman collection request get <requestId> \-\-collection <collectionId> \-w <workspaceId> \-\-json
641
+
642
+
643
+
563
644
  .SS "collection request update"
564
645
  Update a request in a v3 collection (only the fields you pass).
565
646
 
@@ -665,7 +746,7 @@ Examples:
665
746
 
666
747
 
667
748
  .SS "collection folder"
668
- Add, update, or remove folders in a local v3 collection.
749
+ Add, get, update, or remove folders in a local v3 collection.
669
750
 
670
751
  .B Usage:
671
752
  [options] [command]
@@ -675,6 +756,9 @@ Add, update, or remove folders in a local v3 collection.
675
756
  .B collection folder add
676
757
  Add an empty folder to a local v3 collection (set its details later with `update`).
677
758
  .TP
759
+ .B collection folder get
760
+ Show a folder in a v3 collection: its own fields and its direct children as references.
761
+ .TP
678
762
  .B collection folder update
679
763
  Update a folder in a v3 collection (only the fields you pass).
680
764
  .TP
@@ -712,6 +796,38 @@ Examples:
712
796
 
713
797
 
714
798
 
799
+ .SS "collection folder get"
800
+ Show a folder in a v3 collection: its own fields and its direct children as references.
801
+
802
+ .B Usage:
803
+ [options] <folder>
804
+
805
+ .B Options:
806
+ .TP
807
+ .B \-\-collection <id|name>
808
+ Target collection: name, directory, id, cloud id, or path. Required locally; optional in cloud mode (id only).
809
+ .TP
810
+ .B \-\-folder <id|name|path>
811
+ Parent folder to scope a bare\-name selector, e.g. "Users" (local mode only).
812
+ .TP
813
+ .B \-w, \-\-workspace <id>
814
+ Target a Postman cloud workspace by id (cloud mode).
815
+ .TP
816
+ .B \-\-json
817
+ JSON output.
818
+
819
+ .TP Examples:
820
+
821
+ Prints the folder's own fields in the V3 collection format. Its direct children (requests and sub\-folders) are listed under "items" as references ({ id, $kind } in cloud mode; { name, $kind } plus id when stored, locally) — run `get` on a child to go further. "parent" is added: the containing folder, or the collection for a top\-level folder. Select the folder by the <folder> selector: local — a name or "Parent/Name" path (or \-\-folder to scope a bare name); cloud (\-\-workspace) — a folder id, with \-\-collection (an id) optional and no \-\-folder. Read\-only: locally it reads v3 collections only and rejects a v2.1 .json instead of converting it.
822
+
823
+ Examples:
824
+ postman collection folder get Users \-\-collection "My API"
825
+ postman collection folder get "Users/Admin" \-\-collection "My API" \-\-json
826
+ postman collection folder get <folderId> \-w <workspaceId>
827
+ postman collection folder get <folderId> \-\-collection <collectionId> \-w <workspaceId> \-\-json
828
+
829
+
830
+
715
831
  .SS "collection folder update"
716
832
  Update a folder in a v3 collection (only the fields you pass).
717
833
 
@@ -790,6 +906,209 @@ Examples:
790
906
 
791
907
 
792
908
 
909
+ .SS "collection example"
910
+ Add, update, remove, get, or list examples (saved responses) under a request.
911
+
912
+ .B Usage:
913
+ [options] [command]
914
+
915
+ .B Subcommands:
916
+ .TP
917
+ .B collection example add
918
+ Add an empty example under a request (defaults to 200 OK; set details later with `update`).
919
+ .TP
920
+ .B collection example update
921
+ Update an example (only the fields you pass).
922
+ .TP
923
+ .B collection example rm
924
+ Remove an example from a request.
925
+ .TP
926
+ .B collection example get
927
+ Get a single example.
928
+ .TP
929
+ .B collection example list
930
+ List examples under a request.
931
+
932
+ .SS "collection example add"
933
+ Add an empty example under a request (defaults to 200 OK; set details later with `update`).
934
+
935
+ .B Usage:
936
+ [options] [example\-name]
937
+
938
+ .B Options:
939
+ .TP
940
+ .B \-\-collection <id|name>
941
+ Target collection: name, directory, id, cloud id, or path. Required.
942
+ .TP
943
+ .B \-\-request <id|name|path>
944
+ Parent request (required). Local: name/path/id; cloud: id.
945
+ .TP
946
+ .B \-\-folder <id|name|path>
947
+ Folder to scope the request selector, e.g. "Users/Admin".
948
+ .TP
949
+ .B \-\-type <type>
950
+ Example type: http (default). (default: http)
951
+ .TP
952
+ .B \-w, \-\-workspace <id>
953
+ Target a Postman cloud workspace by id (cloud mode).
954
+ .TP
955
+ .B \-\-json
956
+ JSON output.
957
+
958
+ .TP Examples:
959
+
960
+ Creates a stub example (name + type + default 200/OK/{} response). Configure it with `collection example update`. \-\-request is required.
961
+
962
+ Examples:
963
+ postman collection example add "Success" \-\-collection "My API" \-\-request "Get user"
964
+ postman collection example add \-\-collection "My API" \-\-request Ping
965
+ postman collection example add "Ok" \-\-collection <cid> \-\-request <rid> \-w <workspaceId>
966
+
967
+
968
+
969
+ .SS "collection example update"
970
+ Update an example (only the fields you pass).
971
+
972
+ .B Usage:
973
+ [options] <example>
974
+
975
+ .B Options:
976
+ .TP
977
+ .B \-\-collection <id|name>
978
+ Target collection. Required.
979
+ .TP
980
+ .B \-\-request <id|name|path>
981
+ Parent request (optional; disambiguates local names / \-\-copy\-request).
982
+ .TP
983
+ .B \-\-folder <id|name|path>
984
+ Folder to scope the request selector.
985
+ .TP
986
+ .B \-\-status\-code <code>
987
+ HTTP status code.
988
+ .TP
989
+ .B \-\-status\-text <text>
990
+ HTTP status text.
991
+ .TP
992
+ .B \-d, \-\-body <body>
993
+ Response body as contentType:content.
994
+ .TP
995
+ .B \-\-headers <key:value>
996
+ Replace response headers. Repeatable. (default: )
997
+ .TP
998
+ .B \-\-description <text>
999
+ Example description.
1000
+ .TP
1001
+ .B \-\-rename <name>
1002
+ Rename the example.
1003
+ .TP
1004
+ .B \-\-url <url>
1005
+ Example request snapshot URL.
1006
+ .TP
1007
+ .B \-\-method <method>
1008
+ Example request snapshot method.
1009
+ .TP
1010
+ .B \-\-request\-headers <key:value>
1011
+ Replace request\-snapshot headers. Repeatable. (default: )
1012
+ .TP
1013
+ .B \-\-request\-param <key:value>
1014
+ Replace request\-snapshot query params. Repeatable. (default: )
1015
+ .TP
1016
+ .B \-\-request\-body <body>
1017
+ Example request snapshot body.
1018
+ .TP
1019
+ .B \-\-copy\-request
1020
+ Refresh example.request from the parent request.
1021
+ .TP
1022
+ .B \-\-clear\-request
1023
+ Remove the example.request snapshot.
1024
+ .TP
1025
+ .B \-w, \-\-workspace <id>
1026
+ Target a Postman cloud workspace by id (cloud mode).
1027
+ .TP
1028
+ .B \-\-type <type>
1029
+ Example type for cloud mode: http. (default: http)
1030
+ .TP
1031
+ .B \-\-json
1032
+ JSON output.
1033
+
1034
+ .SS "collection example rm"
1035
+ Remove an example from a request.
1036
+
1037
+ .B Usage:
1038
+ [options] <example>
1039
+
1040
+ .B Options:
1041
+ .TP
1042
+ .B \-\-collection <id|name>
1043
+ Target collection. Required.
1044
+ .TP
1045
+ .B \-\-request <id|name|path>
1046
+ Parent request (optional; disambiguates local names).
1047
+ .TP
1048
+ .B \-\-folder <id|name|path>
1049
+ Folder to scope the request selector.
1050
+ .TP
1051
+ .B \-w, \-\-workspace <id>
1052
+ Target a Postman cloud workspace by id (cloud mode).
1053
+ .TP
1054
+ .B \-\-type <type>
1055
+ Example type for cloud mode: http. (default: http)
1056
+ .TP
1057
+ .B \-\-json
1058
+ JSON output.
1059
+
1060
+ .SS "collection example get"
1061
+ Get a single example.
1062
+
1063
+ .B Usage:
1064
+ [options] <example>
1065
+
1066
+ .B Options:
1067
+ .TP
1068
+ .B \-\-collection <id|name>
1069
+ Target collection. Required.
1070
+ .TP
1071
+ .B \-\-request <id|name|path>
1072
+ Parent request (optional; disambiguates local names).
1073
+ .TP
1074
+ .B \-\-folder <id|name|path>
1075
+ Folder to scope the request selector.
1076
+ .TP
1077
+ .B \-w, \-\-workspace <id>
1078
+ Target a Postman cloud workspace by id (cloud mode).
1079
+ .TP
1080
+ .B \-\-type <type>
1081
+ Example type for cloud mode: http. (default: http)
1082
+ .TP
1083
+ .B \-\-json
1084
+ JSON output.
1085
+
1086
+ .SS "collection example list"
1087
+ List examples under a request.
1088
+
1089
+ .B Usage:
1090
+ [options]
1091
+
1092
+ .B Options:
1093
+ .TP
1094
+ .B \-\-collection <id|name>
1095
+ Target collection. Required.
1096
+ .TP
1097
+ .B \-\-request <id|name|path>
1098
+ Parent request (required).
1099
+ .TP
1100
+ .B \-\-folder <id|name|path>
1101
+ Folder to scope the request selector.
1102
+ .TP
1103
+ .B \-w, \-\-workspace <id>
1104
+ Target a Postman cloud workspace by id (cloud mode).
1105
+ .TP
1106
+ .B \-\-type <type>
1107
+ Example type for cloud mode: http. (default: http)
1108
+ .TP
1109
+ .B \-\-json
1110
+ JSON output.
1111
+
793
1112
  .SS "collection import"
794
1113
  Import a cURL or HAR source into a v3 collection (local, or cloud with \-\-workspace).
795
1114
 
@@ -1030,10 +1349,10 @@ Workspace that owns the \-\-simulate run, for recording its start history.
1030
1349
  Do not record the \-\-simulate run in the simulation's start history.
1031
1350
  .TP
1032
1351
  .B \-\-report\-events
1033
- Upload results for git\-native v3 collection runs. Analytics are sent by default
1352
+ Dispatch run events, including git\-native v3 collection run results, to the API Catalog and Application Inventory ingestion pipelines (on by default)
1034
1353
  .TP
1035
1354
  .B \-\-no\-report\-events
1036
- Do not send analytics to Postman
1355
+ Do not dispatch run events to the API Catalog and Application Inventory ingestion pipelines
1037
1356
 
1038
1357
  .TP Examples:
1039
1358
  Eg. postman collection run 123456\-45159473\-1e45\-1f34\-5678\-1234567890ab
@@ -1143,9 +1462,6 @@ Verbose output
1143
1462
  .TP
1144
1463
  .B \-\-json
1145
1464
  JSON output
1146
- .TP
1147
- .B \-\-show\-secrets
1148
- Show secret variable values in output
1149
1465
 
1150
1466
  .TP Examples:
1151
1467
 
@@ -1153,7 +1469,6 @@ Examples:
1153
1469
  postman environment get 123456\-11111111\-2222\-3333\-4444\-555555555555
1154
1470
  postman environment get ./postman/environments/dev.environment.yaml
1155
1471
  postman environment get ./postman/environments/dev.environment.yaml \-\-json
1156
- postman environment get ./postman/environments/dev.environment.yaml \-\-show\-secrets
1157
1472
 
1158
1473
 
1159
1474
 
@@ -1166,7 +1481,7 @@ Read and update environment variables.
1166
1481
  .B Subcommands:
1167
1482
  .TP
1168
1483
  .B environment var set
1169
- Set one variable in an environment.
1484
+ Set one variable in an environment, or link it to a shared\-vault secret.
1170
1485
  .TP
1171
1486
  .B environment var get
1172
1487
  Read one variable value from an environment.
@@ -1175,16 +1490,25 @@ Read one variable value from an environment.
1175
1490
  Remove one variable from an environment.
1176
1491
 
1177
1492
  .SS "environment var set"
1178
- Set one variable in an environment.
1493
+ Set one variable in an environment, or link it to a shared\-vault secret.
1179
1494
 
1180
1495
  .B Usage:
1181
- [options] <key> <value>
1496
+ [options] <key> [value]
1182
1497
 
1183
1498
  .B Options:
1184
1499
  .TP
1185
1500
  .B \-e, \-\-environment <environment>
1186
1501
  Cloud Environment ID or local environment file path.
1187
1502
  .TP
1503
+ .B \-\-secret\-id <id>
1504
+ Link this variable to a shared\-vault secret instead of an inline value (from `secret create`'s output).
1505
+ .TP
1506
+ .B \-\-vault\-id <id>
1507
+ Vault id for \-\-secret\-id (auto\-resolved from \-\-workspace when omitted).
1508
+ .TP
1509
+ .B \-w, \-\-workspace <workspaceId>
1510
+ Workspace to resolve \-\-vault\-id from when \-\-secret\-id is given without \-\-vault\-id (falls back to .postman/resources.yaml).
1511
+ .TP
1188
1512
  .B \-\-verbose
1189
1513
  Verbose output
1190
1514
  .TP
@@ -1197,6 +1521,8 @@ Examples:
1197
1521
  postman environment var set baseUrl https://api.example.com \e
1198
1522
  \-\-environment ./postman/environments/dev.environment.yaml
1199
1523
  postman environment var set token abc123 \-\-environment 123456\-11111111\-2222\-3333\-4444\-555555555555
1524
+ postman environment var set apiToken \-\-secret\-id b8748ab8\-d1bb\-477f\-95e2\-78625adea75f \e
1525
+ \-\-environment 123456\-11111111\-2222\-3333\-4444\-555555555555 \-\-workspace <workspaceId>
1200
1526
 
1201
1527
 
1202
1528
 
@@ -1216,15 +1542,12 @@ Verbose output
1216
1542
  .TP
1217
1543
  .B \-\-json
1218
1544
  JSON output
1219
- .TP
1220
- .B \-\-show\-secrets
1221
- Show secret variable values in output
1222
1545
 
1223
1546
  .TP Examples:
1224
1547
 
1225
1548
  Examples:
1226
1549
  postman environment var get baseUrl \-\-environment ./postman/environments/dev.environment.yaml
1227
- postman environment var get token \-\-environment 123456\-11111111\-2222\-3333\-4444\-5555555 \-\-show\-secrets
1550
+ postman environment var get token \-\-environment 123456\-11111111\-2222\-3333\-4444\-5555555
1228
1551
 
1229
1552
 
1230
1553
 
@@ -1441,10 +1764,10 @@ Enable the metrics server for health checks
1441
1764
  Port for the metrics server (default: 9090)
1442
1765
  .TP
1443
1766
  .B \-\-report\-events
1444
- Accepted for compatibility; run events are reported by default
1767
+ Dispatch run events to the API Catalog and Application Inventory ingestion pipelines (on by default)
1445
1768
  .TP
1446
1769
  .B \-\-no\-report\-events
1447
- Do not report run events to Postman
1770
+ Do not dispatch run events to the API Catalog and Application Inventory ingestion pipelines
1448
1771
 
1449
1772
  .SS "runner list"
1450
1773
  List the team's registered self\-hosted runners.
@@ -1488,6 +1811,10 @@ Lint and validate Specifications from the command line
1488
1811
  .B spec lint
1489
1812
  Run linting on the given specification by ID or local file path.
1490
1813
 
1814
+ .TP
1815
+ .B spec ai-readiness
1816
+ Score an OpenAPI specification for AI readiness by ID or local file path.
1817
+
1491
1818
  .TP
1492
1819
  .B spec list
1493
1820
  List local spec files under a path, or (no path) a workspace's cloud specs.
@@ -1496,7 +1823,7 @@ List local spec files under a path, or (no path) a workspace's cloud specs.
1496
1823
  Read a spec definition, including every file of a multi\-file spec.
1497
1824
  .TP
1498
1825
  .B spec file
1499
- Add, update, or remove files in a spec (cloud ID or local directory).
1826
+ Get, add, update, or remove files in a spec (cloud ID or local directory).
1500
1827
  .TP
1501
1828
  .B spec create
1502
1829
  Create a new spec in a workspace, or (with path) scaffold a local spec file.
@@ -1529,10 +1856,38 @@ Output format for the results. [choices: "json", "csv"]
1529
1856
  The workspace ID to use for fetching governance rulesets.
1530
1857
  .TP
1531
1858
  .B \-\-report\-events
1532
- Accepted for compatibility; analytics are sent by default
1859
+ Dispatch events to the API Catalog and Application Inventory ingestion pipelines (on by default)
1533
1860
  .TP
1534
1861
  .B \-\-no\-report\-events
1535
- Do not send analytics to Postman
1862
+ Do not dispatch events to the API Catalog and Application Inventory ingestion pipelines
1863
+
1864
+ .SS "spec ai\-readiness"
1865
+ Score an OpenAPI specification for AI readiness by ID or local file path.
1866
+
1867
+
1868
+ .B Usage:
1869
+ <spec> [options]
1870
+
1871
+ .B Options:
1872
+ .TP
1873
+ .B \-o, \-\-output <value>
1874
+ Output format for the results. [choices: "cli", "json", "html"]
1875
+ .TP
1876
+ .B \-\-export <path>
1877
+ Write the report to this file instead of stdout. A directory receives the report under a name derived from the specification. Requires \-\-output html.
1878
+ .TP
1879
+ .B \-\-min\-score <n>
1880
+ Exit with a non\-zero code if the overall score is below this threshold (0\-100).
1881
+
1882
+ .TP Examples:
1883
+
1884
+ Examples:
1885
+ $ postman spec ai\-readiness ./openapi.yaml
1886
+ $ postman spec ai\-readiness 6e2e5b3e\-... \-\-output json
1887
+ $ postman spec ai\-readiness ./openapi.yaml \-\-output html > report.html
1888
+ $ postman spec ai\-readiness ./openapi.yaml \-\-output html \-\-export ./report.html
1889
+ $ postman spec ai\-readiness ./openapi.yaml \-\-min\-score 70
1890
+
1536
1891
 
1537
1892
  .SS "spec list"
1538
1893
  List local spec files under a path, or (no path) a workspace's cloud specs.
@@ -1586,13 +1941,16 @@ Examples:
1586
1941
 
1587
1942
 
1588
1943
  .SS "spec file"
1589
- Add, update, or remove files in a spec (cloud ID or local directory).
1944
+ Get, add, update, or remove files in a spec (cloud ID or local directory).
1590
1945
 
1591
1946
  .B Usage:
1592
1947
  [options] [command]
1593
1948
 
1594
1949
  .B Subcommands:
1595
1950
  .TP
1951
+ .B spec file get
1952
+ Show a file in a spec: its path, size and content.
1953
+ .TP
1596
1954
  .B spec file add
1597
1955
  Add a new file to a spec.
1598
1956
  .TP
@@ -1602,6 +1960,29 @@ Update an existing file in a spec.
1602
1960
  .B spec file rm
1603
1961
  Remove a file from a spec.
1604
1962
 
1963
+ .SS "spec file get"
1964
+ Show a file in a spec: its path, size and content.
1965
+
1966
+ .B Usage:
1967
+ [options] <spec> <filePath>
1968
+
1969
+ .B Options:
1970
+ .TP
1971
+ .B \-\-json
1972
+ Output as JSON
1973
+ .TP
1974
+ .B \-\-api\-key <key>
1975
+ Postman API key
1976
+
1977
+ .TP Examples:
1978
+
1979
+ Examples:
1980
+ postman spec file get 12345678\-abcd\-1234\-abcd\-1234567890ab schemas/user.yaml
1981
+ postman spec file get 12345678\-abcd\-1234\-abcd\-1234567890ab index.yaml \-\-json
1982
+ postman spec file get ./postman/specs/api schemas/user.yaml
1983
+
1984
+
1985
+
1605
1986
  .SS "spec file add"
1606
1987
  Add a new file to a spec.
1607
1988
 
@@ -1781,6 +2162,9 @@ Collection ID to sync (required for cloud mode)
1781
2162
  .TP
1782
2163
  .B \-\-api\-key <key>
1783
2164
  Postman API key
2165
+ .TP
2166
+ .B \-\-force
2167
+ Overwrite hand\-written scripts that the spec would otherwise drop
1784
2168
 
1785
2169
  .TP Examples:
1786
2170
 
@@ -2437,10 +2821,10 @@ Print the outcome as machine\-readable JSON. Implies non\-interactive: use \-\-y
2437
2821
  Show detailed logging
2438
2822
  .TP
2439
2823
  .B \-\-report\-events
2440
- Accepted for compatibility; analytics are sent by default
2824
+ Dispatch events to the API Catalog and Application Inventory ingestion pipelines (on by default)
2441
2825
  .TP
2442
2826
  .B \-\-no\-report\-events
2443
- Do not send analytics to Postman
2827
+ Do not dispatch events to the API Catalog and Application Inventory ingestion pipelines
2444
2828
 
2445
2829
  .SS "workspace lint"
2446
2830
  Lint the current local Postman workspace: its configuration (.postman/resources.yaml) plus every discovered entity. Use \-\-meta to lint only the configuration.
@@ -2792,8 +3176,14 @@ Collection UID to run before the performance test
2792
3176
  .B \-\-teardown\-collection <id>
2793
3177
  Collection UID to run after the performance test
2794
3178
  .TP
3179
+ .B \-\-peak\-vu <count>
3180
+ Peak (maximum) virtual users (default: 20)
3181
+ .TP
2795
3182
  .B \-\-vu\-count <count>
2796
- Number of virtual users (default: 20)
3183
+ Older name for \-\-peak\-vu
3184
+ .TP
3185
+ .B \-\-base\-vu <count>
3186
+ Base (floor) virtual users the run starts from, 1 or more. Not for \-\-load\-profile fixed, which runs flat
2797
3187
  .TP
2798
3188
  .B \-d, \-\-duration <minutes>
2799
3189
  Duration of the performance test in minutes (default: 1)
@@ -2801,6 +3191,9 @@ Duration of the performance test in minutes (default: 1)
2801
3191
  .B \-p, \-\-load\-profile <profile>
2802
3192
  Load profile type: fixed, ramp\-up, spike, peak (default: ramp\-up)
2803
3193
  .TP
3194
+ .B \-s, \-\-load\-segments <durations>
3195
+ Duration of each phase of the profile, comma separated, in order. ramp\-up takes 2, spike 3, peak 4; fixed takes none. See the load\-segment section below for which position is which phase
3196
+ .TP
2804
3197
  .B \-\-data\-file <path>
2805
3198
  Path to a JSON or CSV data file to use with the collection
2806
3199
  .TP
@@ -2840,11 +3233,14 @@ Output format for live results: auto (default, interactive dashboard) or ndjson
2840
3233
  .B \-\-runner <runner>
2841
3234
  Runner to execute the performance test on: local, postman\-cloud, or postman\-cloud\-static\-ip (egress from your account region's static\-IP cluster) (default: )
2842
3235
  .TP
3236
+ .B \-\-disable\-unicode
3237
+ Forces Unicode compliant symbols to be replaced by their plain text equivalents
3238
+ .TP
2843
3239
  .B \-\-pass\-if <condition>
2844
- Pass condition in format: function(metric, value).
3240
+ Pass condition in format: function(metric, value) (repeatable; all conditions must hold).
2845
3241
  Functions: less_than, greater_than, less_than_eq, greater_than_eq.
2846
3242
  Metrics: avg, p90, p95, p99, error_rate, rps.
2847
- Example: less_than(p95, 500) or less_than(error_rate, 5)
3243
+ Example: less_than(p95, 500)
2848
3244
  .TP
2849
3245
  .B \-\-use\-mock <mapping>
2850
3246
  Redirect a variable/host to a local code mock or cloud Mock Server (repeatable).
@@ -2856,12 +3252,78 @@ Pass \-\-dataset multiple times to load several .dataset.yaml files (or director
2856
3252
  .TP Examples:
2857
3253
 
2858
3254
  Examples:
2859
- postman performance run 123456\-45159473\-1e45\-1f34\-5678\-1234567890ab \-\-vu\-count 50 \-\-duration 15
2860
- postman performance run 123456\-45159473\-1e45\-1f34\-5678\-1234567890ab \-\-pass\-if "less_than(p95, 500)"
2861
- postman performance run 123456\-45159473\-1e45\-1f34\-5678\-1234567890ab \-\-runner local \-\-setup\-collection 123456\-11111111\-1111\-4111\-8111\-111111111111 \-\-teardown\-collection 123456\-22222222\-2222\-4222\-8222\-222222222222
2862
- postman performance run 123456\-45159473\-1e45\-1f34\-5678\-1234567890ab \-\-runner postman\-cloud \-\-setup\-collection 123456\-11111111\-1111\-4111\-8111\-111111111111 \-\-teardown\-collection 123456\-22222222\-2222\-4222\-8222\-222222222222
2863
- postman performance run 123456\-45159473\-1e45\-1f34\-5678\-1234567890ab \-\-runner postman\-cloud\-static\-ip
2864
- postman performance run 123456\-45159473\-1e45\-1f34\-5678\-1234567890ab \-\-use\-mock "{{baseUrl}} mock:./postman/mocks/orders" \-\-dataset ./postman/datasets/Orders
3255
+ postman performance run 123456\-45159473\-1e45\-1f34\-5678\-1234567890ab # defaults: 20 VUs, ramp\-up, 1 minute
3256
+ postman performance run <collectionId> \-\-load\-profile fixed \-\-peak\-vu 50 \-\-duration 15 # 50 VUs, flat
3257
+ postman performance run <collectionId> \-\-load\-profile spike \-\-peak\-vu 100 \-\-base\-vu 2 \-\-duration 5 \-\-load\-segments 1m30s,20s,40s
3258
+ postman performance run <collectionId> \-\-pass\-if "less_than(p95, 500)" \-\-pass\-if "less_than(error_rate, 5)" # fail if p95 is over 500ms or error rate is over 5%
3259
+ postman performance run <collectionId> \-\-output ndjson # one JSON object per line, for CI
3260
+ postman performance run <collectionId> \-\-runner local \-\-setup\-collection <id> \-\-teardown\-collection <id> # also works on postman\-cloud
3261
+ postman performance run <collectionId> \-\-runner postman\-cloud # or postman\-cloud\-static\-ip
3262
+ postman performance run <collectionId> \-\-use\-mock "{{baseUrl}} mock:./postman/mocks/orders" \-\-dataset ./postman/datasets/Orders
3263
+
3264
+ Load segments:
3265
+ \-\-load\-segments (\-s) sets how long each phase of the profile lasts, in the
3266
+ order they run. One position per segment. Leave any position empty to keep
3267
+ its default, so you can set only the phases you care about — on peak,
3268
+ \-\-load\-segments ,,5m, sets just the hold; on spike, \-\-load\-segments ,20s,
3269
+ sets just the ramp\-up.
3270
+
3271
+ The segments you set must fit inside \-\-duration, or the run is refused before
3272
+ it starts: only a DEFAULTED segment is ever shrunk, never one you gave a
3273
+ duration to.
3274
+
3275
+ Segment durations: 30s, 10m, 1m40s — a bare number means minutes. \-\-duration
3276
+ is a whole number of minutes: 10.
3277
+
3278
+ ramp\-up — 2 segments
3279
+
3280
+ peak ┤ _________ at peak __________
3281
+ │ ramp\-up _____╱
3282
+ │ ______╱
3283
+ base ┤__ warm\-up ___╱
3284
+ └┬─────────────┬─────────────┬───────────────────────────┤ \-\-duration
3285
+ 1 2 (3)
3286
+
3287
+ \-\-load\-segments: 1 warm\-up 2 ramp\-up
3288
+ (3) holds at peak until \-\-duration ends; no flag sets it
3289
+ default (shrunk to fit): warm\-up 25%, ramp\-up 25%
3290
+
3291
+ postman performance run <collectionId> \-\-load\-profile ramp\-up \-\-peak\-vu 20 \-\-duration 10 \-\-base\-vu 5 \-\-load\-segments 1m40s,2m30s
3292
+
3293
+ spike — 3 segments · no time at the peak; use \-\-load\-profile peak to hold
3294
+
3295
+ peak ┤ ╱╲
3296
+ │ ramp\-up _╱ ╲_ ramp\-down
3297
+ │ _╱ ╲_
3298
+ base ┤______ warm\-up _______╱ ╲______ at base _______
3299
+ └┬─────────────────────┬─────┬─────┬─────────────────────┤ \-\-duration
3300
+ 1 2 3 (4)
3301
+
3302
+ \-\-load\-segments: 1 warm\-up 2 ramp\-up 3 ramp\-down
3303
+ (4) holds at base until \-\-duration ends; no flag sets it
3304
+ default (shrunk to fit): warm\-up 40%, ramp\-up 10%, ramp\-down 10%
3305
+
3306
+ postman performance run <collectionId> \-\-load\-profile spike \-\-peak\-vu 100 \-\-duration 5 \-\-base\-vu 2 \-\-load\-segments 1m30s,20s,40s
3307
+
3308
+ peak — 4 segments
3309
+
3310
+ peak ┤ __ hold ___
3311
+ │ ramp\-up ____╱ ╲____ ramp\-down
3312
+ │ ____╱ ╲____
3313
+ base ┤_ warm\-up _╱ ╲_ at base __
3314
+ └┬──────────┬──────────┬──────────┬──────────┬───────────┤ \-\-duration
3315
+ 1 2 3 4 (5)
3316
+
3317
+ \-\-load\-segments: 1 warm\-up 2 ramp\-up 3 hold 4 ramp\-down
3318
+ (5) holds at base until \-\-duration ends; no flag sets it
3319
+ default (shrunk to fit): warm\-up 20%, ramp\-up 20%, hold 20%, ramp\-down 20%
3320
+
3321
+ postman performance run <collectionId> \-\-load\-profile peak \-\-peak\-vu 20 \-\-duration 15 \-\-base\-vu 4 \-\-load\-segments 3m,1m30s,5m,1m30s
3322
+
3323
+ fixed — no segments; \-\-duration covers the whole run at \-\-peak\-vu.
3324
+
3325
+ postman performance run <collectionId> \-\-load\-profile fixed \-\-peak\-vu 50 \-\-duration 10
3326
+
2865
3327
 
2866
3328
 
2867
3329
  .SS "performance list"
@@ -3114,10 +3576,10 @@ Specify whether or not to override the default exit code for the current run
3114
3576
  Workspace ID required for flows that contain connector blocks. Find it in the Postman app URL: https://postman.com/workspace/<workspaceId>
3115
3577
  .TP
3116
3578
  .B \-\-report\-events
3117
- Accepted for compatibility; analytics are sent by default
3579
+ Dispatch events to the API Catalog and Application Inventory ingestion pipelines (on by default)
3118
3580
  .TP
3119
3581
  .B \-\-no\-report\-events
3120
- Do not send analytics to Postman
3582
+ Do not dispatch events to the API Catalog and Application Inventory ingestion pipelines
3121
3583
  .TP
3122
3584
  .B \-\-verbose
3123
3585
  Verbose output
@@ -3349,10 +3811,10 @@ suppress all output except response body. Useful for piping to other commands.
3349
3811
  Debug mode: show detailed execution information including retry attempts, redirects, and timing breakdowns.
3350
3812
  .TP
3351
3813
  .B \-\-report\-events
3352
- Accepted for compatibility; analytics are sent by default
3814
+ Dispatch events to the API Catalog and Application Inventory ingestion pipelines (on by default)
3353
3815
  .TP
3354
3816
  .B \-\-no\-report\-events
3355
- Do not send analytics to Postman
3817
+ Do not dispatch events to the API Catalog and Application Inventory ingestion pipelines
3356
3818
 
3357
3819
  .TP Examples:
3358
3820
 
@@ -4198,9 +4660,11 @@ Print the list as machine\-readable data instead of a table
4198
4660
 
4199
4661
  .TP Examples:
4200
4662
 
4201
- Eg. postman mock list # your Postman cloud workspace
4202
- postman mock list \-w 12345678\-90ab\-cdef\-1234\-567890abcdef # a specific workspace
4203
- postman mock list ./postman/mocks # a folder in your repository
4663
+ Listing is local\-first: without \-w it reads your repository; pass \-w to list a cloud workspace.
4664
+
4665
+ Eg. postman mock list # your repo (postman/mocks)
4666
+ postman mock list ./postman/mocks # a specific folder
4667
+ postman mock list \-w <workspace\-id> # a Postman cloud workspace
4204
4668
  postman mock list ./postman/mocks \-\-json
4205
4669
 
4206
4670
  The folder path can be relative (e.g. ./postman/mocks) or absolute (e.g. /Users/me/postman/mocks).
@@ -4367,16 +4831,16 @@ Run only the primary command; skip analysis (use \-\-analyse\-only on merged cap
4367
4831
  Output directory for captured collection (default: pm\-results/captured/; used with \-\-capture\-only)
4368
4832
  .TP
4369
4833
  .B \-\-force
4370
- Overwrite the output directory if it exists and is not empty (used with \-\-capture\-only)
4834
+ Deprecated: output directory is always overwritten on re\-run (used with \-\-capture\-only)
4371
4835
  .TP
4372
4836
  .B \-\-save\-events\-local
4373
- Write analytics events to pm\-results/test\-events\-debug.ndjson instead of sending to Postman
4837
+ Write events to pm\-results/test\-events\-debug.ndjson instead of dispatching them to the API Catalog and Application Inventory ingestion pipelines
4374
4838
  .TP
4375
4839
  .B \-\-report\-events [boolean]
4376
- Send application test run results to Postman (default: true)
4840
+ Dispatch application test run results to the API Catalog and Application Inventory ingestion pipelines (on by default) (default: true)
4377
4841
  .TP
4378
4842
  .B \-\-no\-report\-events
4379
- Do not send run results or analytics to Postman
4843
+ Do not dispatch run results to the API Catalog and Application Inventory ingestion pipelines
4380
4844
  .TP
4381
4845
  .B \-\-verbose
4382
4846
  Show detailed per\-request matching, sandbox errors, and debug information
@@ -4392,8 +4856,9 @@ or via \-\-target\-collection/\-\-target\-environment flags. CLI flags override
4392
4856
  Use \-\-capture\-only to skip tests and export captured traffic
4393
4857
  as a V3 Postman collection organised by host.
4394
4858
 
4395
- Run results are sent to Postman automatically after analysis.
4396
- Use \-\-report\-events=false (or \-\-report\-events false) to skip uploading run results.
4859
+ Run results are dispatched to the API Catalog and Application Inventory
4860
+ ingestion pipelines automatically after analysis.
4861
+ Use \-\-report\-events=false (or \-\-report\-events false) to skip dispatching run results.
4397
4862
 
4398
4863
  Examples:
4399
4864
  postman application test \-\-command "npx playwright test"
@@ -4432,43 +4897,256 @@ After setup, run your tests normally:
4432
4897
  postman app test
4433
4898
 
4434
4899
 
4435
- .SS "simulate"
4436
- Start mock servers with simulated failure scenarios.
4900
+ .SS "simulation"
4901
+ Create, run and manage simulations — serve several mocks behind one address.
4437
4902
 
4438
4903
  .B Usage:
4439
4904
  [options] [command]
4440
4905
 
4441
4906
  .B Subcommands:
4442
4907
  .TP
4443
- .B simulate run
4444
- Start mocks with fault\-injection scenarios defined in a .sim.yaml file
4908
+ .B simulation create
4909
+ Create a simulation that serves several mocks behind one address
4910
+ .TP
4911
+ .B simulation list
4912
+ List the simulations in your repository or Postman cloud workspace
4913
+ .TP
4914
+ .B simulation get
4915
+ Show a simulation's details using its .sim.yaml path if it lives in your repository, or its id if it lives in Postman cloud.
4916
+ .TP
4917
+ .B simulation run
4918
+ 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).
4919
+ .TP
4920
+ .B simulation push
4921
+ Upload a simulation from your repository to Postman cloud (creates it the first time, updates it after). Its member mocks are pushed too.
4922
+ .TP
4923
+ .B simulation deploy
4924
+ Turn a simulation in Postman cloud into a live mock server others can call over the internet.
4925
+ .TP
4926
+ .B simulation delete
4927
+ Delete a simulation using its .sim.yaml path if it lives in your repository, or its id if it lives in Postman cloud. Cannot be undone.
4928
+
4929
+ .SS "simulation create"
4930
+ Create a simulation that serves several mocks behind one address
4931
+
4932
+ .B Usage:
4933
+ [options]
4934
+
4935
+ .B Options:
4936
+ .TP
4937
+ .B \-n, \-\-name <name>
4938
+ Name for the simulation
4939
+ .TP
4940
+ .B \-\-mock <mockIdOrPath>
4941
+ A mock to include (repeatable). Use a local mock path to build the simulation in your repository, or a Postman mock id to create it in Postman cloud. Set its address with <mockIdOrPath>=<routeKey>. (default: )
4942
+ .TP
4943
+ .B \-\-routing <header|path>
4944
+ How callers reach each mock: header or path (default path)
4945
+ .TP
4946
+ .B \-o, \-\-output <path>
4947
+ Where to save the simulation file in your repository, a file or folder (defaults to postman/simulations)
4948
+ .TP
4949
+ .B \-\-force
4950
+ Overwrite the simulation file if it already exists
4951
+ .TP
4952
+ .B \-w, \-\-workspace <id>
4953
+ Postman cloud workspace to create the simulation in, by id (defaults to the workspace already linked to this project)
4954
+ .TP
4955
+ .B \-\-api\-key <key>
4956
+ Postman API key (defaults to your `postman login` session)
4957
+
4958
+ .TP Examples:
4959
+
4960
+ Eg. postman simulation create \-n "Checkout" \-\-mock ./postman/mocks/payments \-\-mock ./postman/mocks/orders
4961
+ postman simulation create \-n "Checkout" \-\-mock ./postman/mocks/payments=payments \-\-routing header
4962
+ postman simulation create \-n "Checkout" \-\-mock ./postman/mocks/payments \-o ./postman/simulations/checkout.sim.yaml
4963
+ postman simulation create \-n "Checkout" \-w <workspace\-id> \-\-mock <mock\-id>=payments
4964
+
4965
+ Local mock paths build a simulation file you serve with `postman simulation run`. Postman mock ids create it in your cloud workspace instead. Use one kind or the other, not both.
4966
+
4967
+
4968
+ .SS "simulation list"
4969
+ List the simulations in your repository or Postman cloud workspace
4970
+
4971
+ .B Usage:
4972
+ [pathOrDir] [options]
4973
+
4974
+ .B Options:
4975
+ .TP
4976
+ .B \-w, \-\-workspace <id>
4977
+ Postman cloud workspace whose simulations to list, by id (defaults to the workspace already linked to this project)
4978
+ .TP
4979
+ .B \-\-api\-key <key>
4980
+ Postman API key (defaults to your `postman login` session)
4981
+ .TP
4982
+ .B \-\-json
4983
+ Print the list as machine\-readable data instead of a table
4984
+
4985
+ .TP Examples:
4986
+
4987
+ Listing is local\-first: without \-w it reads your repository; pass \-w to list a cloud workspace.
4988
+
4989
+ Eg. postman simulation list # your repo (postman/simulations)
4990
+ postman simulation list ./postman/simulations # a specific folder
4991
+ postman simulation list \-w <workspace\-id> # a Postman cloud workspace
4992
+ postman simulation list ./postman/simulations \-\-json
4993
+
4994
+ The folder path can be relative (e.g. ./postman/simulations) or absolute.
4995
+
4996
+
4997
+ .SS "simulation get"
4998
+ Show a simulation's details using its .sim.yaml path if it lives in your repository, or its id if it lives in Postman cloud.
4999
+
5000
+ .B Usage:
5001
+ <simIdOrPath> [options]
5002
+
5003
+ .B Options:
5004
+ .TP
5005
+ .B \-\-api\-key <key>
5006
+ Postman API key (defaults to your `postman login` session)
5007
+ .TP
5008
+ .B \-\-json
5009
+ Print the details as machine\-readable data instead of a table
5010
+
5011
+ .TP Examples:
5012
+
5013
+ Eg. postman simulation get 12345678\-90ab\-cdef\-1234\-567890abcdef # by id, from Postman cloud
5014
+ postman simulation get ./postman/simulations/checkout.sim.yaml # by path, from repository
5015
+ postman simulation get ./postman/simulations/checkout.sim.yaml \-\-json
5016
+
5017
+ Paths can be relative (e.g. ./postman/simulations/checkout.sim.yaml) or absolute.
4445
5018
 
4446
- .SS "simulate run"
4447
- Start mocks with fault\-injection scenarios defined in a .sim.yaml file
5019
+
5020
+ .SS "simulation run"
5021
+ 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).
4448
5022
 
4449
5023
  .B Usage:
4450
- [options] <filepath>
5024
+ [options] <simIdOrPath>
4451
5025
 
4452
5026
  .B Options:
4453
5027
  .TP
5028
+ .B \-e, \-\-environment <path>
5029
+ Path to a file of environment variables for the mocks (relative or absolute)
5030
+ .TP
5031
+ .B \-g, \-\-globals <path>
5032
+ Path to a file of global variables for the mocks (relative or absolute)
5033
+ .TP
5034
+ .B \-p, \-\-port <port>
5035
+ Port to serve on (e.g. 4010), or "auto" for a free one (default 3000)
5036
+ .TP
5037
+ .B \-\-dataset <pathOrDir>
5038
+ Dataset file or folder to load for pm.datasets (repeatable) (default: )
5039
+ .TP
4454
5040
  .B \-w, \-\-workspace <id>
4455
- Workspace that owns the run, for recording its simulation start history.
5041
+ Workspace for recording start history. Derived from a simulation id or the linked project; needed only for an unlinked .sim.yaml path.
4456
5042
  .TP
4457
5043
  .B \-\-simulation <id>
4458
- Simulation id to record start history against (a local .sim.yaml has only a name). Required, with \-\-workspace, to record history.
5044
+ Simulation id to record start history against for a .sim.yaml path (a local file has only a name). Not needed when running by simulation id, or when the file is linked to a cloud simulation (via workspace push).
4459
5045
  .TP
4460
5046
  .B \-\-api\-key <key>
4461
- Postman API key for recording start history (defaults to your `postman login` session).
5047
+ Postman API key (defaults to your `postman login` session)
4462
5048
  .TP
4463
5049
  .B \-\-no\-history
4464
- Do not record this run in the simulation's start history.
5050
+ Do not record this run in the simulation's start history
5051
+ .TP
5052
+ .B \-\-output <format>
5053
+ Live output format: auto (default, human\-readable logs) or ndjson (one JSON event per line on stdout, ending with a "summary" event — for CI or other non\-interactive use) (default: auto)
4465
5054
 
4466
5055
  .TP Examples:
4467
5056
 
4468
- Eligible runs are recorded in the simulation's start history (source: cli) so they appear
4469
- under "Previous starts" in Postman. A parent start is recorded with one child start per member
4470
- mock; pass \-\-workspace and \-\-simulation to enable it. In CI the pipeline/branch is captured
4471
- automatically. Best\-effort and never blocks the servers; use \-\-no\-history to opt out.
5057
+ Eg. postman simulation run ./postman/simulations/checkout.sim.yaml
5058
+ postman simulation run 12345678\-90ab\-cdef\-1234\-567890abcdef # fetch a cloud sim, run local
5059
+ postman simulation run ./postman/simulations/checkout.sim.yaml \-\-port 4010
5060
+ postman simulation run ./postman/simulations/checkout.sim.yaml \-\-output ndjson # stream events
5061
+
5062
+ All member mocks share one address. With path routing (default) the first path segment is the routeKey (e.g. /payments/charges reaches the "payments" member as /charges); with header routing a caller picks a member with the `x\-mock\-slug: <routeKey>` header.
5063
+
5064
+ Start history (source: cli): a simulation\-id run records automatically (the id and workspace are known), as does a .sim.yaml linked to a cloud simulation via `workspace push`. An unlinked file has only a name, so pass \-\-workspace and \-\-simulation to record it. Best\-effort and never blocks the servers; use \-\-no\-history to opt out.
5065
+
5066
+
5067
+ .SS "simulation push"
5068
+ Upload a simulation from your repository to Postman cloud (creates it the first time, updates it after). Its member mocks are pushed too.
5069
+
5070
+ .B Usage:
5071
+ <simPath> [options]
5072
+
5073
+ .B Options:
5074
+ .TP
5075
+ .B \-w, \-\-workspace <id>
5076
+ Postman cloud workspace to upload to, by id (defaults to the workspace already linked to this project)
5077
+ .TP
5078
+ .B \-\-api\-key <key>
5079
+ Postman API key (defaults to your `postman login` session)
5080
+
5081
+ .TP Examples:
5082
+
5083
+ Eg. postman simulation push ./postman/simulations/checkout.sim.yaml
5084
+ postman simulation push ./postman/simulations/checkout.sim.yaml \-w 12345678\-90ab\-cdef\-1234\-567890abcdef
5085
+
5086
+ Paths can be relative (e.g. ./postman/simulations/checkout.sim.yaml) or absolute.
5087
+
5088
+ Pushing uploads each member mock first, then the simulation that groups them. After uploading, deploy it as a mock server to get a live URL.
5089
+
5090
+
5091
+ .SS "simulation deploy"
5092
+ Turn a simulation in Postman cloud into a live mock server others can call over the internet.
5093
+
5094
+ .B Usage:
5095
+ <simId> [options]
5096
+
5097
+ .B Options:
5098
+ .TP
5099
+ .B \-w, \-\-workspace <id>
5100
+ Postman cloud workspace that will own the server, by id (defaults to the workspace already linked to this project)
5101
+ .TP
5102
+ .B \-n, \-\-name <name>
5103
+ Name for the mock server (you are asked for one if you skip this)
5104
+ .TP
5105
+ .B \-s, \-\-slug <slug>
5106
+ Short label used in the server's web address, e.g. "my\-sim" (you are asked for one if you skip this)
5107
+ .TP
5108
+ .B \-\-private
5109
+ Require a Postman API key to reach the server. Public by default.
5110
+ .TP
5111
+ .B \-y, \-\-yes
5112
+ Use the defaults and skip all questions (public)
5113
+ .TP
5114
+ .B \-\-api\-key <key>
5115
+ Postman API key (defaults to your `postman login` session)
5116
+
5117
+ .TP Examples:
5118
+
5119
+ simulationId is the id of a simulation in Postman cloud (find it with `postman simulation list`).
5120
+
5121
+ Eg. postman simulation deploy 12345678\-90ab\-cdef\-1234\-567890abcdef # asks a few questions
5122
+ postman simulation deploy 12345678\-90ab\-cdef\-1234\-567890abcdef \-\-slug my\-sim \-\-private
5123
+ postman simulation deploy 12345678\-90ab\-cdef\-1234\-567890abcdef \-s my\-sim \-y # no questions asked
5124
+
5125
+ Don't have the simulation in Postman cloud yet? Upload it first with `postman simulation push`.
5126
+
5127
+
5128
+ .SS "simulation delete"
5129
+ Delete a simulation using its .sim.yaml path if it lives in your repository, or its id if it lives in Postman cloud. Cannot be undone.
5130
+
5131
+ .B Usage:
5132
+ <simIdOrPath> [options]
5133
+
5134
+ .B Options:
5135
+ .TP
5136
+ .B \-y, \-\-yes
5137
+ Delete without asking for confirmation first
5138
+ .TP
5139
+ .B \-\-api\-key <key>
5140
+ Postman API key, used with a Postman cloud id (defaults to your `postman login` session)
5141
+
5142
+ .TP Examples:
5143
+
5144
+ Eg. postman simulation delete 12345678\-90ab\-cdef\-1234\-567890abcdef # by id, from Postman cloud
5145
+ postman simulation delete ./postman/simulations/checkout.sim.yaml # by path, from repository
5146
+ postman simulation delete ./postman/simulations/checkout.sim.yaml \-\-yes
5147
+
5148
+ A deployed cloud simulation is deleted anyway — its live mock server is taken down too.
5149
+ Deleting a local file removes only the .sim.yaml; its member mocks are left untouched.
4472
5150
 
4473
5151
 
4474
5152
  .SS "describe"
@@ -6718,6 +7396,50 @@ Examples:
6718
7396
 
6719
7397
 
6720
7398
 
7399
+ .SS "secret"
7400
+ Create and manage Postman secrets in a team's shared vault.
7401
+
7402
+ .B Usage:
7403
+ [options] [command]
7404
+
7405
+ .B Subcommands:
7406
+ .TP
7407
+ .B secret create
7408
+ Create a secret in a team's shared vault.
7409
+
7410
+ .SS "secret create"
7411
+ Create a secret in a team's shared vault.
7412
+
7413
+ .B Usage:
7414
+ [options] <key>
7415
+
7416
+ .B Options:
7417
+ .TP
7418
+ .B \-\-team\-id <id>
7419
+ Team id (defaults to your authenticated profile's team; must be your own team — the vault rejects any other team id, even one you otherwise have access to)
7420
+ .TP
7421
+ .B \-w, \-\-workspace <workspaceId>
7422
+ Postman workspace ID (falls back to .postman/resources.yaml or .postman/config.json)
7423
+ .TP
7424
+ .B \-\-api\-key <key>
7425
+ Postman API key
7426
+ .TP
7427
+ .B \-\-value\-stdin
7428
+ Read the secret value from stdin instead of prompting
7429
+
7430
+ .TP Examples:
7431
+
7432
+ The secret value is never accepted as a command\-line argument. Provide it via:
7433
+ \- an interactive masked prompt (default, when stdin is a terminal)
7434
+ \- piped stdin: printf '%s' 's3cr3t' | postman secret create MY_SECRET
7435
+ \- \-\-value\-stdin (explicit, same as piping)
7436
+
7437
+ Examples:
7438
+ postman secret create MY_SECRET \-\-team\-id 451 \-\-workspace 00000000\-0000\-0000\-0000\-000000000000
7439
+ printf '%s' 's3cr3t' | postman secret create MY_SECRET \-\-team\-id 451 \-\-value\-stdin
7440
+
7441
+
7442
+
6721
7443
  .SH SEE ALSO
6722
7444
  Full documentation: https://learning.postman.com/docs/postman\-cli/postman\-cli\-overview/
6723
7445
  .SH AUTHOR
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "postman-cli",
3
- "version": "1.68.0",
3
+ "version": "1.70.0",
4
4
  "description": "Official Postman CLI - Command-line companion for API development, testing, and automation",
5
5
  "keywords": [
6
6
  "postman",
@@ -62,10 +62,10 @@
62
62
  "scripts/"
63
63
  ],
64
64
  "optionalDependencies": {
65
- "@postman/pm-bin-macos-arm64": "1.68.0",
66
- "@postman/pm-bin-macos-x64": "1.68.0",
67
- "@postman/pm-bin-linux-x64": "1.68.0",
68
- "@postman/pm-bin-linux-arm64": "1.68.0",
69
- "@postman/pm-bin-windows-x64": "1.68.0"
65
+ "@postman/pm-bin-macos-arm64": "1.70.0",
66
+ "@postman/pm-bin-macos-x64": "1.70.0",
67
+ "@postman/pm-bin-linux-x64": "1.70.0",
68
+ "@postman/pm-bin-linux-arm64": "1.70.0",
69
+ "@postman/pm-bin-windows-x64": "1.70.0"
70
70
  }
71
71
  }