postman-cli 1.69.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 +426 -64
  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.69.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
@@ -377,6 +391,35 @@ Exit with failure if diagnostics at this level or above are present. [choices: "
377
391
  .B \-r, \-\-reporter <value>
378
392
  Output format: cli (human\-readable) or json. (default: cli)
379
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
+
380
423
  .SS "collection get"
381
424
  Fetch a Postman collection in the V3 format and print it.
382
425
 
@@ -1306,10 +1349,10 @@ Workspace that owns the \-\-simulate run, for recording its start history.
1306
1349
  Do not record the \-\-simulate run in the simulation's start history.
1307
1350
  .TP
1308
1351
  .B \-\-report\-events
1309
- 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)
1310
1353
  .TP
1311
1354
  .B \-\-no\-report\-events
1312
- Do not send analytics to Postman
1355
+ Do not dispatch run events to the API Catalog and Application Inventory ingestion pipelines
1313
1356
 
1314
1357
  .TP Examples:
1315
1358
  Eg. postman collection run 123456\-45159473\-1e45\-1f34\-5678\-1234567890ab
@@ -1419,9 +1462,6 @@ Verbose output
1419
1462
  .TP
1420
1463
  .B \-\-json
1421
1464
  JSON output
1422
- .TP
1423
- .B \-\-show\-secrets
1424
- Show secret variable values in output
1425
1465
 
1426
1466
  .TP Examples:
1427
1467
 
@@ -1429,7 +1469,6 @@ Examples:
1429
1469
  postman environment get 123456\-11111111\-2222\-3333\-4444\-555555555555
1430
1470
  postman environment get ./postman/environments/dev.environment.yaml
1431
1471
  postman environment get ./postman/environments/dev.environment.yaml \-\-json
1432
- postman environment get ./postman/environments/dev.environment.yaml \-\-show\-secrets
1433
1472
 
1434
1473
 
1435
1474
 
@@ -1503,15 +1542,12 @@ Verbose output
1503
1542
  .TP
1504
1543
  .B \-\-json
1505
1544
  JSON output
1506
- .TP
1507
- .B \-\-show\-secrets
1508
- Show secret variable values in output
1509
1545
 
1510
1546
  .TP Examples:
1511
1547
 
1512
1548
  Examples:
1513
1549
  postman environment var get baseUrl \-\-environment ./postman/environments/dev.environment.yaml
1514
- 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
1515
1551
 
1516
1552
 
1517
1553
 
@@ -1728,10 +1764,10 @@ Enable the metrics server for health checks
1728
1764
  Port for the metrics server (default: 9090)
1729
1765
  .TP
1730
1766
  .B \-\-report\-events
1731
- 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)
1732
1768
  .TP
1733
1769
  .B \-\-no\-report\-events
1734
- Do not report run events to Postman
1770
+ Do not dispatch run events to the API Catalog and Application Inventory ingestion pipelines
1735
1771
 
1736
1772
  .SS "runner list"
1737
1773
  List the team's registered self\-hosted runners.
@@ -1775,6 +1811,10 @@ Lint and validate Specifications from the command line
1775
1811
  .B spec lint
1776
1812
  Run linting on the given specification by ID or local file path.
1777
1813
 
1814
+ .TP
1815
+ .B spec ai-readiness
1816
+ Score an OpenAPI specification for AI readiness by ID or local file path.
1817
+
1778
1818
  .TP
1779
1819
  .B spec list
1780
1820
  List local spec files under a path, or (no path) a workspace's cloud specs.
@@ -1816,10 +1856,38 @@ Output format for the results. [choices: "json", "csv"]
1816
1856
  The workspace ID to use for fetching governance rulesets.
1817
1857
  .TP
1818
1858
  .B \-\-report\-events
1819
- Accepted for compatibility; analytics are sent by default
1859
+ Dispatch events to the API Catalog and Application Inventory ingestion pipelines (on by default)
1820
1860
  .TP
1821
1861
  .B \-\-no\-report\-events
1822
- 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
+
1823
1891
 
1824
1892
  .SS "spec list"
1825
1893
  List local spec files under a path, or (no path) a workspace's cloud specs.
@@ -2753,10 +2821,10 @@ Print the outcome as machine\-readable JSON. Implies non\-interactive: use \-\-y
2753
2821
  Show detailed logging
2754
2822
  .TP
2755
2823
  .B \-\-report\-events
2756
- Accepted for compatibility; analytics are sent by default
2824
+ Dispatch events to the API Catalog and Application Inventory ingestion pipelines (on by default)
2757
2825
  .TP
2758
2826
  .B \-\-no\-report\-events
2759
- Do not send analytics to Postman
2827
+ Do not dispatch events to the API Catalog and Application Inventory ingestion pipelines
2760
2828
 
2761
2829
  .SS "workspace lint"
2762
2830
  Lint the current local Postman workspace: its configuration (.postman/resources.yaml) plus every discovered entity. Use \-\-meta to lint only the configuration.
@@ -3108,8 +3176,14 @@ Collection UID to run before the performance test
3108
3176
  .B \-\-teardown\-collection <id>
3109
3177
  Collection UID to run after the performance test
3110
3178
  .TP
3179
+ .B \-\-peak\-vu <count>
3180
+ Peak (maximum) virtual users (default: 20)
3181
+ .TP
3111
3182
  .B \-\-vu\-count <count>
3112
- 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
3113
3187
  .TP
3114
3188
  .B \-d, \-\-duration <minutes>
3115
3189
  Duration of the performance test in minutes (default: 1)
@@ -3117,6 +3191,9 @@ Duration of the performance test in minutes (default: 1)
3117
3191
  .B \-p, \-\-load\-profile <profile>
3118
3192
  Load profile type: fixed, ramp\-up, spike, peak (default: ramp\-up)
3119
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
3120
3197
  .B \-\-data\-file <path>
3121
3198
  Path to a JSON or CSV data file to use with the collection
3122
3199
  .TP
@@ -3156,11 +3233,14 @@ Output format for live results: auto (default, interactive dashboard) or ndjson
3156
3233
  .B \-\-runner <runner>
3157
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: )
3158
3235
  .TP
3236
+ .B \-\-disable\-unicode
3237
+ Forces Unicode compliant symbols to be replaced by their plain text equivalents
3238
+ .TP
3159
3239
  .B \-\-pass\-if <condition>
3160
- Pass condition in format: function(metric, value).
3240
+ Pass condition in format: function(metric, value) (repeatable; all conditions must hold).
3161
3241
  Functions: less_than, greater_than, less_than_eq, greater_than_eq.
3162
3242
  Metrics: avg, p90, p95, p99, error_rate, rps.
3163
- Example: less_than(p95, 500) or less_than(error_rate, 5)
3243
+ Example: less_than(p95, 500)
3164
3244
  .TP
3165
3245
  .B \-\-use\-mock <mapping>
3166
3246
  Redirect a variable/host to a local code mock or cloud Mock Server (repeatable).
@@ -3172,12 +3252,78 @@ Pass \-\-dataset multiple times to load several .dataset.yaml files (or director
3172
3252
  .TP Examples:
3173
3253
 
3174
3254
  Examples:
3175
- postman performance run 123456\-45159473\-1e45\-1f34\-5678\-1234567890ab \-\-vu\-count 50 \-\-duration 15
3176
- postman performance run 123456\-45159473\-1e45\-1f34\-5678\-1234567890ab \-\-pass\-if "less_than(p95, 500)"
3177
- 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
3178
- 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
3179
- postman performance run 123456\-45159473\-1e45\-1f34\-5678\-1234567890ab \-\-runner postman\-cloud\-static\-ip
3180
- 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
+
3181
3327
 
3182
3328
 
3183
3329
  .SS "performance list"
@@ -3430,10 +3576,10 @@ Specify whether or not to override the default exit code for the current run
3430
3576
  Workspace ID required for flows that contain connector blocks. Find it in the Postman app URL: https://postman.com/workspace/<workspaceId>
3431
3577
  .TP
3432
3578
  .B \-\-report\-events
3433
- Accepted for compatibility; analytics are sent by default
3579
+ Dispatch events to the API Catalog and Application Inventory ingestion pipelines (on by default)
3434
3580
  .TP
3435
3581
  .B \-\-no\-report\-events
3436
- Do not send analytics to Postman
3582
+ Do not dispatch events to the API Catalog and Application Inventory ingestion pipelines
3437
3583
  .TP
3438
3584
  .B \-\-verbose
3439
3585
  Verbose output
@@ -3665,10 +3811,10 @@ suppress all output except response body. Useful for piping to other commands.
3665
3811
  Debug mode: show detailed execution information including retry attempts, redirects, and timing breakdowns.
3666
3812
  .TP
3667
3813
  .B \-\-report\-events
3668
- Accepted for compatibility; analytics are sent by default
3814
+ Dispatch events to the API Catalog and Application Inventory ingestion pipelines (on by default)
3669
3815
  .TP
3670
3816
  .B \-\-no\-report\-events
3671
- Do not send analytics to Postman
3817
+ Do not dispatch events to the API Catalog and Application Inventory ingestion pipelines
3672
3818
 
3673
3819
  .TP Examples:
3674
3820
 
@@ -4514,9 +4660,11 @@ Print the list as machine\-readable data instead of a table
4514
4660
 
4515
4661
  .TP Examples:
4516
4662
 
4517
- Eg. postman mock list # your Postman cloud workspace
4518
- postman mock list \-w 12345678\-90ab\-cdef\-1234\-567890abcdef # a specific workspace
4519
- 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
4520
4668
  postman mock list ./postman/mocks \-\-json
4521
4669
 
4522
4670
  The folder path can be relative (e.g. ./postman/mocks) or absolute (e.g. /Users/me/postman/mocks).
@@ -4683,16 +4831,16 @@ Run only the primary command; skip analysis (use \-\-analyse\-only on merged cap
4683
4831
  Output directory for captured collection (default: pm\-results/captured/; used with \-\-capture\-only)
4684
4832
  .TP
4685
4833
  .B \-\-force
4686
- 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)
4687
4835
  .TP
4688
4836
  .B \-\-save\-events\-local
4689
- 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
4690
4838
  .TP
4691
4839
  .B \-\-report\-events [boolean]
4692
- 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)
4693
4841
  .TP
4694
4842
  .B \-\-no\-report\-events
4695
- Do not send run results or analytics to Postman
4843
+ Do not dispatch run results to the API Catalog and Application Inventory ingestion pipelines
4696
4844
  .TP
4697
4845
  .B \-\-verbose
4698
4846
  Show detailed per\-request matching, sandbox errors, and debug information
@@ -4708,8 +4856,9 @@ or via \-\-target\-collection/\-\-target\-environment flags. CLI flags override
4708
4856
  Use \-\-capture\-only to skip tests and export captured traffic
4709
4857
  as a V3 Postman collection organised by host.
4710
4858
 
4711
- Run results are sent to Postman automatically after analysis.
4712
- 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.
4713
4862
 
4714
4863
  Examples:
4715
4864
  postman application test \-\-command "npx playwright test"
@@ -4748,43 +4897,256 @@ After setup, run your tests normally:
4748
4897
  postman app test
4749
4898
 
4750
4899
 
4751
- .SS "simulate"
4752
- Start mock servers with simulated failure scenarios.
4900
+ .SS "simulation"
4901
+ Create, run and manage simulations — serve several mocks behind one address.
4753
4902
 
4754
4903
  .B Usage:
4755
4904
  [options] [command]
4756
4905
 
4757
4906
  .B Subcommands:
4758
4907
  .TP
4759
- .B simulate run
4760
- 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.
4761
4928
 
4762
- .SS "simulate run"
4763
- Start mocks with fault\-injection scenarios defined in a .sim.yaml file
4929
+ .SS "simulation create"
4930
+ Create a simulation that serves several mocks behind one address
4764
4931
 
4765
4932
  .B Usage:
4766
- [options] <filepath>
4933
+ [options]
4767
4934
 
4768
4935
  .B Options:
4769
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
4770
4952
  .B \-w, \-\-workspace <id>
4771
- Workspace that owns the run, for recording its simulation start history.
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.
5018
+
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).
5022
+
5023
+ .B Usage:
5024
+ [options] <simIdOrPath>
5025
+
5026
+ .B Options:
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
5040
+ .B \-w, \-\-workspace <id>
5041
+ Workspace for recording start history. Derived from a simulation id or the linked project; needed only for an unlinked .sim.yaml path.
4772
5042
  .TP
4773
5043
  .B \-\-simulation <id>
4774
- 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).
4775
5045
  .TP
4776
5046
  .B \-\-api\-key <key>
4777
- Postman API key for recording start history (defaults to your `postman login` session).
5047
+ Postman API key (defaults to your `postman login` session)
4778
5048
  .TP
4779
5049
  .B \-\-no\-history
4780
- 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)
5054
+
5055
+ .TP Examples:
5056
+
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)
4781
5080
 
4782
5081
  .TP Examples:
4783
5082
 
4784
- Eligible runs are recorded in the simulation's start history (source: cli) so they appear
4785
- under "Previous starts" in Postman. A parent start is recorded with one child start per member
4786
- mock; pass \-\-workspace and \-\-simulation to enable it. In CI the pipeline/branch is captured
4787
- automatically. Best\-effort and never blocks the servers; use \-\-no\-history to opt out.
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.
4788
5150
 
4789
5151
 
4790
5152
  .SS "describe"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "postman-cli",
3
- "version": "1.69.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.69.0",
66
- "@postman/pm-bin-macos-x64": "1.69.0",
67
- "@postman/pm-bin-linux-x64": "1.69.0",
68
- "@postman/pm-bin-linux-arm64": "1.69.0",
69
- "@postman/pm-bin-windows-x64": "1.69.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
  }