postman-cli 1.69.0 → 1.71.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 +768 -75
  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-08" "v1.71.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,9 +298,15 @@ 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
307
+ .B collection delete
308
+ Delete a cloud collection by id or a local collection directory by path. Prompts unless \-\-yes is passed.
309
+ .TP
293
310
  .B collection publish
294
311
  Publish a cloud collection's documentation (or request Community Manager approval).
295
312
  .TP
@@ -377,6 +394,35 @@ Exit with failure if diagnostics at this level or above are present. [choices: "
377
394
  .B \-r, \-\-reporter <value>
378
395
  Output format: cli (human\-readable) or json. (default: cli)
379
396
 
397
+ .SS "collection ai\-readiness"
398
+ Score a Postman collection for AI readiness by ID, local file path, or local\-mode directory.
399
+
400
+ .B Usage:
401
+ <collectionId/Path> [options]
402
+
403
+ .B Options:
404
+ .TP
405
+ .B \-o, \-\-output <value>
406
+ Output format for the results. [choices: "cli", "json", "html"]
407
+ .TP
408
+ .B \-\-export <path>
409
+ Write the report to this file instead of stdout. A directory receives the report under a name derived from the collection. Requires \-\-output html.
410
+ .TP
411
+ .B \-\-min\-score <n>
412
+ Exit with a non\-zero code if the overall score is below this threshold (0\-100).
413
+
414
+ .TP Examples:
415
+
416
+ Examples:
417
+ $ postman collection ai\-readiness ./postman/collections/My\e API
418
+ $ postman collection ai\-readiness ./my\-collection.json
419
+ $ postman collection ai\-readiness 631643\-f695cab7\-... \-\-output json
420
+ $ postman collection ai\-readiness ./my\-collection.json \-\-output html > report.html
421
+ $ postman collection ai\-readiness ./my\-collection.json \-\-min\-score 70
422
+
423
+ Resolving a collection by ID requires authentication. Use `postman login` before running this command with a UID.
424
+
425
+
380
426
  .SS "collection get"
381
427
  Fetch a Postman collection in the V3 format and print it.
382
428
 
@@ -397,6 +443,35 @@ Eg. postman collection get 12345\-33823532ab9e41c9b6fd12d0fd459b8b
397
443
  postman collection get 0123456789abcdef01234567 \-\-json
398
444
 
399
445
 
446
+ .SS "collection delete"
447
+ Delete a cloud collection by id or a local collection directory by path. Prompts unless \-\-yes is passed.
448
+
449
+ .B Usage:
450
+ [options] <idOrPath>
451
+
452
+ .B Options:
453
+ .TP
454
+ .B \-y, \-\-yes
455
+ Delete without asking for confirmation first
456
+ .TP
457
+ .B \-\-api\-key <key>
458
+ Postman API key, used when deleting a cloud collection
459
+ .TP
460
+ .B \-\-verbose
461
+ Verbose output
462
+ .TP
463
+ .B \-\-json
464
+ Output the result as JSON
465
+
466
+ .TP Examples:
467
+
468
+ Examples:
469
+ postman collection delete postman/collections/Orders
470
+ postman collection delete postman/collections/Orders \-\-yes
471
+ postman collection delete 12345\-33823532ab9e41c9b6fd12d0fd459b8b \-\-yes
472
+
473
+
474
+
400
475
  .SS "collection publish"
401
476
  Publish a cloud collection's documentation (or request Community Manager approval).
402
477
 
@@ -1306,10 +1381,10 @@ Workspace that owns the \-\-simulate run, for recording its start history.
1306
1381
  Do not record the \-\-simulate run in the simulation's start history.
1307
1382
  .TP
1308
1383
  .B \-\-report\-events
1309
- Upload results for git\-native v3 collection runs. Analytics are sent by default
1384
+ Dispatch run events, including git\-native v3 collection run results, to the API Catalog and Application Inventory ingestion pipelines (on by default)
1310
1385
  .TP
1311
1386
  .B \-\-no\-report\-events
1312
- Do not send analytics to Postman
1387
+ Do not dispatch run events to the API Catalog and Application Inventory ingestion pipelines
1313
1388
 
1314
1389
  .TP Examples:
1315
1390
  Eg. postman collection run 123456\-45159473\-1e45\-1f34\-5678\-1234567890ab
@@ -1336,6 +1411,9 @@ List environments in a Postman workspace.
1336
1411
  .B environment get
1337
1412
  Read an environment by ID or local environment file path.
1338
1413
  .TP
1414
+ .B environment delete
1415
+ Delete an environment by ID or local environment file path. Prompts unless \-\-yes is passed.
1416
+ .TP
1339
1417
  .B environment var
1340
1418
  Read and update environment variables.
1341
1419
  .TP
@@ -1419,9 +1497,6 @@ Verbose output
1419
1497
  .TP
1420
1498
  .B \-\-json
1421
1499
  JSON output
1422
- .TP
1423
- .B \-\-show\-secrets
1424
- Show secret variable values in output
1425
1500
 
1426
1501
  .TP Examples:
1427
1502
 
@@ -1429,7 +1504,32 @@ Examples:
1429
1504
  postman environment get 123456\-11111111\-2222\-3333\-4444\-555555555555
1430
1505
  postman environment get ./postman/environments/dev.environment.yaml
1431
1506
  postman environment get ./postman/environments/dev.environment.yaml \-\-json
1432
- postman environment get ./postman/environments/dev.environment.yaml \-\-show\-secrets
1507
+
1508
+
1509
+
1510
+ .SS "environment delete"
1511
+ Delete an environment by ID or local environment file path. Prompts unless \-\-yes is passed.
1512
+
1513
+ .B Usage:
1514
+ <environment> [options]
1515
+
1516
+ .B Options:
1517
+ .TP
1518
+ .B \-y, \-\-yes
1519
+ Delete without asking for confirmation first
1520
+ .TP
1521
+ .B \-\-verbose
1522
+ Verbose output
1523
+ .TP
1524
+ .B \-\-json
1525
+ JSON output
1526
+
1527
+ .TP Examples:
1528
+
1529
+ Examples:
1530
+ postman environment delete ./postman/environments/dev.environment.yaml
1531
+ postman environment delete ./postman/environments/dev.environment.yaml \-\-yes
1532
+ postman environment delete 123456\-11111111\-2222\-3333\-4444\-555555555555 \-\-yes
1433
1533
 
1434
1534
 
1435
1535
 
@@ -1503,15 +1603,12 @@ Verbose output
1503
1603
  .TP
1504
1604
  .B \-\-json
1505
1605
  JSON output
1506
- .TP
1507
- .B \-\-show\-secrets
1508
- Show secret variable values in output
1509
1606
 
1510
1607
  .TP Examples:
1511
1608
 
1512
1609
  Examples:
1513
1610
  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
1611
+ postman environment var get token \-\-environment 123456\-11111111\-2222\-3333\-4444\-5555555
1515
1612
 
1516
1613
 
1517
1614
 
@@ -1565,16 +1662,160 @@ Examples:
1565
1662
 
1566
1663
 
1567
1664
  .SS "globals"
1568
- Work with local Postman globals from the command line.
1665
+ Work with local Postman globals from the command line. Also read cloud globals by workspace.
1569
1666
 
1570
1667
  .B Usage:
1571
1668
  [options] [command]
1572
1669
 
1573
1670
  .B Subcommands:
1574
1671
  .TP
1672
+ .B globals get
1673
+ Read local workspace globals from the default file, or cloud globals with \-\-workspace.
1674
+ .TP
1675
+ .B globals var
1676
+ Read and update variables in the workspace globals singleton.
1677
+ .TP
1575
1678
  .B globals lint
1576
1679
  Run linting on a local Postman globals file at the given file or directory path.
1577
1680
 
1681
+ .SS "globals get"
1682
+ Read local workspace globals from the default file, or cloud globals with \-\-workspace.
1683
+
1684
+ .B Usage:
1685
+ [options]
1686
+
1687
+ .B Options:
1688
+ .TP
1689
+ .B \-w, \-\-workspace <workspaceId>
1690
+ Workspace ID to read globals from.
1691
+ .TP
1692
+ .B \-\-workspace\-path <path>
1693
+ Local Postman workspace path. Defaults to the current directory.
1694
+ .TP
1695
+ .B \-\-verbose
1696
+ Verbose output
1697
+ .TP
1698
+ .B \-\-json
1699
+ JSON output
1700
+
1701
+ .TP Examples:
1702
+
1703
+ Examples:
1704
+ postman globals get
1705
+ postman globals get \-\-workspace 12345678\-90ab\-cdef\-1234\-567890abcdef \-\-json
1706
+
1707
+
1708
+
1709
+ .SS "globals var"
1710
+ Read and update variables in the workspace globals singleton.
1711
+
1712
+ .B Usage:
1713
+ [options] [command]
1714
+
1715
+ .B Subcommands:
1716
+ .TP
1717
+ .B globals var set
1718
+ Set one variable in local workspace globals, or link it to a shared\-vault secret.
1719
+ .TP
1720
+ .B globals var get
1721
+ Read one variable from local workspace globals, or cloud globals with \-\-workspace.
1722
+ .TP
1723
+ .B globals var unset
1724
+ Remove one variable from local workspace globals, or cloud globals with \-\-workspace.
1725
+
1726
+ .SS "globals var set"
1727
+ Set one variable in local workspace globals, or link it to a shared\-vault secret.
1728
+
1729
+ .B Usage:
1730
+ [options] <key> [value]
1731
+
1732
+ .B Options:
1733
+ .TP
1734
+ .B \-w, \-\-workspace <workspaceId>
1735
+ Workspace ID whose cloud globals should be updated.
1736
+ .TP
1737
+ .B \-\-secret\-id <id>
1738
+ Link this variable to a shared\-vault secret instead of an inline value (from `secret create`'s output).
1739
+ .TP
1740
+ .B \-\-vault\-id <id>
1741
+ Vault id for \-\-secret\-id (auto\-resolved from \-\-workspace when omitted).
1742
+ .TP
1743
+ .B \-\-workspace\-path <path>
1744
+ Local Postman workspace path. Defaults to the current directory.
1745
+ .TP
1746
+ .B \-\-verbose
1747
+ Verbose output
1748
+ .TP
1749
+ .B \-\-json
1750
+ JSON output
1751
+
1752
+ .TP Examples:
1753
+
1754
+ Examples:
1755
+ postman globals var set baseUrl https://api.example.com
1756
+ postman globals var set apiToken \-\-secret\-id b8748ab8\-d1bb\-477f\-95e2\-78625adea75f \e
1757
+ \-\-vault\-id <vaultId>
1758
+ postman globals var set baseUrl https://api.example.com \e
1759
+ \-\-workspace 12345678\-90ab\-cdef\-1234\-567890abcdef
1760
+
1761
+
1762
+
1763
+ .SS "globals var get"
1764
+ Read one variable from local workspace globals, or cloud globals with \-\-workspace.
1765
+
1766
+ .B Usage:
1767
+ [options] <key>
1768
+
1769
+ .B Options:
1770
+ .TP
1771
+ .B \-w, \-\-workspace <workspaceId>
1772
+ Workspace ID whose cloud globals should be read.
1773
+ .TP
1774
+ .B \-\-workspace\-path <path>
1775
+ Local Postman workspace path. Defaults to the current directory.
1776
+ .TP
1777
+ .B \-\-verbose
1778
+ Verbose output
1779
+ .TP
1780
+ .B \-\-json
1781
+ JSON output
1782
+
1783
+ .TP Examples:
1784
+
1785
+ Examples:
1786
+ postman globals var get baseUrl
1787
+ postman globals var get token \-\-workspace 12345678\-90ab\-cdef\-1234\-567890abcdef
1788
+
1789
+
1790
+
1791
+ .SS "globals var unset"
1792
+ Remove one variable from local workspace globals, or cloud globals with \-\-workspace.
1793
+
1794
+ .B Usage:
1795
+ [options] <key>
1796
+
1797
+ .B Options:
1798
+ .TP
1799
+ .B \-w, \-\-workspace <workspaceId>
1800
+ Workspace ID whose cloud globals should be updated.
1801
+ .TP
1802
+ .B \-\-workspace\-path <path>
1803
+ Local Postman workspace path. Defaults to the current directory.
1804
+ .TP
1805
+ .B \-\-verbose
1806
+ Verbose output
1807
+ .TP
1808
+ .B \-\-json
1809
+ JSON output
1810
+
1811
+ .TP Examples:
1812
+
1813
+ Examples:
1814
+ postman globals var unset token
1815
+ postman globals var unset token \-\-workspace 12345678\-90ab\-cdef\-1234\-567890abcdef
1816
+
1817
+
1818
+
1578
1819
  .SS "globals lint"
1579
1820
  Run linting on a local Postman globals file at the given file or directory path.
1580
1821
 
@@ -1728,10 +1969,10 @@ Enable the metrics server for health checks
1728
1969
  Port for the metrics server (default: 9090)
1729
1970
  .TP
1730
1971
  .B \-\-report\-events
1731
- Accepted for compatibility; run events are reported by default
1972
+ Dispatch run events to the API Catalog and Application Inventory ingestion pipelines (on by default)
1732
1973
  .TP
1733
1974
  .B \-\-no\-report\-events
1734
- Do not report run events to Postman
1975
+ Do not dispatch run events to the API Catalog and Application Inventory ingestion pipelines
1735
1976
 
1736
1977
  .SS "runner list"
1737
1978
  List the team's registered self\-hosted runners.
@@ -1775,6 +2016,10 @@ Lint and validate Specifications from the command line
1775
2016
  .B spec lint
1776
2017
  Run linting on the given specification by ID or local file path.
1777
2018
 
2019
+ .TP
2020
+ .B spec ai-readiness
2021
+ Score an OpenAPI specification for AI readiness by ID or local file path.
2022
+
1778
2023
  .TP
1779
2024
  .B spec list
1780
2025
  List local spec files under a path, or (no path) a workspace's cloud specs.
@@ -1816,10 +2061,38 @@ Output format for the results. [choices: "json", "csv"]
1816
2061
  The workspace ID to use for fetching governance rulesets.
1817
2062
  .TP
1818
2063
  .B \-\-report\-events
1819
- Accepted for compatibility; analytics are sent by default
2064
+ Dispatch events to the API Catalog and Application Inventory ingestion pipelines (on by default)
1820
2065
  .TP
1821
2066
  .B \-\-no\-report\-events
1822
- Do not send analytics to Postman
2067
+ Do not dispatch events to the API Catalog and Application Inventory ingestion pipelines
2068
+
2069
+ .SS "spec ai\-readiness"
2070
+ Score an OpenAPI specification for AI readiness by ID or local file path.
2071
+
2072
+
2073
+ .B Usage:
2074
+ <spec> [options]
2075
+
2076
+ .B Options:
2077
+ .TP
2078
+ .B \-o, \-\-output <value>
2079
+ Output format for the results. [choices: "cli", "json", "html"]
2080
+ .TP
2081
+ .B \-\-export <path>
2082
+ Write the report to this file instead of stdout. A directory receives the report under a name derived from the specification. Requires \-\-output html.
2083
+ .TP
2084
+ .B \-\-min\-score <n>
2085
+ Exit with a non\-zero code if the overall score is below this threshold (0\-100).
2086
+
2087
+ .TP Examples:
2088
+
2089
+ Examples:
2090
+ $ postman spec ai\-readiness ./openapi.yaml
2091
+ $ postman spec ai\-readiness 6e2e5b3e\-... \-\-output json
2092
+ $ postman spec ai\-readiness ./openapi.yaml \-\-output html > report.html
2093
+ $ postman spec ai\-readiness ./openapi.yaml \-\-output html \-\-export ./report.html
2094
+ $ postman spec ai\-readiness ./openapi.yaml \-\-min\-score 70
2095
+
1823
2096
 
1824
2097
  .SS "spec list"
1825
2098
  List local spec files under a path, or (no path) a workspace's cloud specs.
@@ -2753,10 +3026,10 @@ Print the outcome as machine\-readable JSON. Implies non\-interactive: use \-\-y
2753
3026
  Show detailed logging
2754
3027
  .TP
2755
3028
  .B \-\-report\-events
2756
- Accepted for compatibility; analytics are sent by default
3029
+ Dispatch events to the API Catalog and Application Inventory ingestion pipelines (on by default)
2757
3030
  .TP
2758
3031
  .B \-\-no\-report\-events
2759
- Do not send analytics to Postman
3032
+ Do not dispatch events to the API Catalog and Application Inventory ingestion pipelines
2760
3033
 
2761
3034
  .SS "workspace lint"
2762
3035
  Lint the current local Postman workspace: its configuration (.postman/resources.yaml) plus every discovered entity. Use \-\-meta to lint only the configuration.
@@ -3087,6 +3360,9 @@ Run a performance test on a collection
3087
3360
  .TP
3088
3361
  .B performance list
3089
3362
  List past performance runs for a collection, newest first.
3363
+ .TP
3364
+ .B performance get
3365
+ Get one performance run by ID.
3090
3366
 
3091
3367
  .SS "performance run"
3092
3368
  Run a performance test on a collection
@@ -3108,8 +3384,14 @@ Collection UID to run before the performance test
3108
3384
  .B \-\-teardown\-collection <id>
3109
3385
  Collection UID to run after the performance test
3110
3386
  .TP
3387
+ .B \-\-peak\-vu <count>
3388
+ Peak (maximum) virtual users (default: 20)
3389
+ .TP
3111
3390
  .B \-\-vu\-count <count>
3112
- Number of virtual users (default: 20)
3391
+ Older name for \-\-peak\-vu
3392
+ .TP
3393
+ .B \-\-base\-vu <count>
3394
+ Base (floor) virtual users the run starts from, 1 or more. Not for \-\-load\-profile fixed, which runs flat
3113
3395
  .TP
3114
3396
  .B \-d, \-\-duration <minutes>
3115
3397
  Duration of the performance test in minutes (default: 1)
@@ -3117,6 +3399,9 @@ Duration of the performance test in minutes (default: 1)
3117
3399
  .B \-p, \-\-load\-profile <profile>
3118
3400
  Load profile type: fixed, ramp\-up, spike, peak (default: ramp\-up)
3119
3401
  .TP
3402
+ .B \-s, \-\-load\-segments <durations>
3403
+ 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
3404
+ .TP
3120
3405
  .B \-\-data\-file <path>
3121
3406
  Path to a JSON or CSV data file to use with the collection
3122
3407
  .TP
@@ -3156,11 +3441,14 @@ Output format for live results: auto (default, interactive dashboard) or ndjson
3156
3441
  .B \-\-runner <runner>
3157
3442
  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
3443
  .TP
3444
+ .B \-\-disable\-unicode
3445
+ Forces Unicode compliant symbols to be replaced by their plain text equivalents
3446
+ .TP
3159
3447
  .B \-\-pass\-if <condition>
3160
- Pass condition in format: function(metric, value).
3448
+ Pass condition in format: function(metric, value) (repeatable; all conditions must hold).
3161
3449
  Functions: less_than, greater_than, less_than_eq, greater_than_eq.
3162
3450
  Metrics: avg, p90, p95, p99, error_rate, rps.
3163
- Example: less_than(p95, 500) or less_than(error_rate, 5)
3451
+ Example: less_than(p95, 500)
3164
3452
  .TP
3165
3453
  .B \-\-use\-mock <mapping>
3166
3454
  Redirect a variable/host to a local code mock or cloud Mock Server (repeatable).
@@ -3172,12 +3460,78 @@ Pass \-\-dataset multiple times to load several .dataset.yaml files (or director
3172
3460
  .TP Examples:
3173
3461
 
3174
3462
  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
3463
+ postman performance run 123456\-45159473\-1e45\-1f34\-5678\-1234567890ab # defaults: 20 VUs, ramp\-up, 1 minute
3464
+ postman performance run <collectionId> \-\-load\-profile fixed \-\-peak\-vu 50 \-\-duration 15 # 50 VUs, flat
3465
+ postman performance run <collectionId> \-\-load\-profile spike \-\-peak\-vu 100 \-\-base\-vu 2 \-\-duration 5 \-\-load\-segments 1m30s,20s,40s
3466
+ 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%
3467
+ postman performance run <collectionId> \-\-output ndjson # one JSON object per line, for CI
3468
+ postman performance run <collectionId> \-\-runner local \-\-setup\-collection <id> \-\-teardown\-collection <id> # also works on postman\-cloud
3469
+ postman performance run <collectionId> \-\-runner postman\-cloud # or postman\-cloud\-static\-ip
3470
+ postman performance run <collectionId> \-\-use\-mock "{{baseUrl}} mock:./postman/mocks/orders" \-\-dataset ./postman/datasets/Orders
3471
+
3472
+ Load segments:
3473
+ \-\-load\-segments (\-s) sets how long each phase of the profile lasts, in the
3474
+ order they run. One position per segment. Leave any position empty to keep
3475
+ its default, so you can set only the phases you care about — on peak,
3476
+ \-\-load\-segments ,,5m, sets just the hold; on spike, \-\-load\-segments ,20s,
3477
+ sets just the ramp\-up.
3478
+
3479
+ The segments you set must fit inside \-\-duration, or the run is refused before
3480
+ it starts: only a DEFAULTED segment is ever shrunk, never one you gave a
3481
+ duration to.
3482
+
3483
+ Segment durations: 30s, 10m, 1m40s — a bare number means minutes. \-\-duration
3484
+ is a whole number of minutes: 10.
3485
+
3486
+ ramp\-up — 2 segments
3487
+
3488
+ peak ┤ _________ at peak __________
3489
+ │ ramp\-up _____╱
3490
+ │ ______╱
3491
+ base ┤__ warm\-up ___╱
3492
+ └┬─────────────┬─────────────┬───────────────────────────┤ \-\-duration
3493
+ 1 2 (3)
3494
+
3495
+ \-\-load\-segments: 1 warm\-up 2 ramp\-up
3496
+ (3) holds at peak until \-\-duration ends; no flag sets it
3497
+ default (shrunk to fit): warm\-up 25%, ramp\-up 25%
3498
+
3499
+ postman performance run <collectionId> \-\-load\-profile ramp\-up \-\-peak\-vu 20 \-\-duration 10 \-\-base\-vu 5 \-\-load\-segments 1m40s,2m30s
3500
+
3501
+ spike — 3 segments · no time at the peak; use \-\-load\-profile peak to hold
3502
+
3503
+ peak ┤ ╱╲
3504
+ │ ramp\-up _╱ ╲_ ramp\-down
3505
+ │ _╱ ╲_
3506
+ base ┤______ warm\-up _______╱ ╲______ at base _______
3507
+ └┬─────────────────────┬─────┬─────┬─────────────────────┤ \-\-duration
3508
+ 1 2 3 (4)
3509
+
3510
+ \-\-load\-segments: 1 warm\-up 2 ramp\-up 3 ramp\-down
3511
+ (4) holds at base until \-\-duration ends; no flag sets it
3512
+ default (shrunk to fit): warm\-up 40%, ramp\-up 10%, ramp\-down 10%
3513
+
3514
+ postman performance run <collectionId> \-\-load\-profile spike \-\-peak\-vu 100 \-\-duration 5 \-\-base\-vu 2 \-\-load\-segments 1m30s,20s,40s
3515
+
3516
+ peak — 4 segments
3517
+
3518
+ peak ┤ __ hold ___
3519
+ │ ramp\-up ____╱ ╲____ ramp\-down
3520
+ │ ____╱ ╲____
3521
+ base ┤_ warm\-up _╱ ╲_ at base __
3522
+ └┬──────────┬──────────┬──────────┬──────────┬───────────┤ \-\-duration
3523
+ 1 2 3 4 (5)
3524
+
3525
+ \-\-load\-segments: 1 warm\-up 2 ramp\-up 3 hold 4 ramp\-down
3526
+ (5) holds at base until \-\-duration ends; no flag sets it
3527
+ default (shrunk to fit): warm\-up 20%, ramp\-up 20%, hold 20%, ramp\-down 20%
3528
+
3529
+ postman performance run <collectionId> \-\-load\-profile peak \-\-peak\-vu 20 \-\-duration 15 \-\-base\-vu 4 \-\-load\-segments 3m,1m30s,5m,1m30s
3530
+
3531
+ fixed — no segments; \-\-duration covers the whole run at \-\-peak\-vu.
3532
+
3533
+ postman performance run <collectionId> \-\-load\-profile fixed \-\-peak\-vu 50 \-\-duration 10
3534
+
3181
3535
 
3182
3536
 
3183
3537
  .SS "performance list"
@@ -3194,8 +3548,11 @@ Collection ID whose performance runs to list
3194
3548
  .B \-\-cursor <token>
3195
3549
  Pagination cursor from a previous page's response
3196
3550
  .TP
3551
+ .B \-\-output <format>
3552
+ Output format: table (default) or json (default: table)
3553
+ .TP
3197
3554
  .B \-\-json
3198
- Output as JSON instead of a table
3555
+ Alias for \-\-output json
3199
3556
  .TP
3200
3557
  .B \-\-timeout <ms>
3201
3558
  Milliseconds to wait for the service before failing (default: 30000)
@@ -3204,7 +3561,7 @@ Milliseconds to wait for the service before failing (default: 30000)
3204
3561
 
3205
3562
  Examples:
3206
3563
  postman performance list \-\-collection\-id 1402295\-45159473\-1e45\-1f34\-5678\-1234567890ab
3207
- postman performance list \-c 1402295\-45159473\-1e45\-1f34\-5678\-1234567890ab \-\-json
3564
+ postman performance list \-c 1402295\-45159473\-1e45\-1f34\-5678\-1234567890ab \-\-output json
3208
3565
  postman performance list \-c 1402295\-45159473\-1e45\-1f34\-5678\-1234567890ab \-\-cursor eyJpZCI6...
3209
3566
 
3210
3567
  The newest 25 runs are returned. A `\-` in Duration means the run has not finished yet.
@@ -3214,6 +3571,32 @@ while one is offered.
3214
3571
  Authentication uses POSTMAN_API_KEY, or the `postman login` session.
3215
3572
 
3216
3573
 
3574
+ .SS "performance get"
3575
+ Get one performance run by ID.
3576
+
3577
+ .B Usage:
3578
+ <runId> [options]
3579
+
3580
+ .B Options:
3581
+ .TP
3582
+ .B \-\-output <format>
3583
+ Output format: table (default) or json (default: table)
3584
+ .TP
3585
+ .B \-\-json
3586
+ Alias for \-\-output json
3587
+ .TP
3588
+ .B \-\-timeout <ms>
3589
+ Milliseconds to wait for the service before failing (default: 30000)
3590
+
3591
+ .TP Examples:
3592
+
3593
+ Examples:
3594
+ postman performance get 0199a1b2\-c3d4\-7e5f\-8a9b\-0c1d2e3f4a5b
3595
+ postman performance get 0199a1b2\-c3d4\-7e5f\-8a9b\-0c1d2e3f4a5b \-\-output json
3596
+
3597
+ Authentication uses POSTMAN_API_KEY, or the `postman login` session.
3598
+
3599
+
3217
3600
  .SS "flows"
3218
3601
  Manage and interact with flows.
3219
3602
 
@@ -3430,10 +3813,10 @@ Specify whether or not to override the default exit code for the current run
3430
3813
  Workspace ID required for flows that contain connector blocks. Find it in the Postman app URL: https://postman.com/workspace/<workspaceId>
3431
3814
  .TP
3432
3815
  .B \-\-report\-events
3433
- Accepted for compatibility; analytics are sent by default
3816
+ Dispatch events to the API Catalog and Application Inventory ingestion pipelines (on by default)
3434
3817
  .TP
3435
3818
  .B \-\-no\-report\-events
3436
- Do not send analytics to Postman
3819
+ Do not dispatch events to the API Catalog and Application Inventory ingestion pipelines
3437
3820
  .TP
3438
3821
  .B \-\-verbose
3439
3822
  Verbose output
@@ -3665,10 +4048,10 @@ suppress all output except response body. Useful for piping to other commands.
3665
4048
  Debug mode: show detailed execution information including retry attempts, redirects, and timing breakdowns.
3666
4049
  .TP
3667
4050
  .B \-\-report\-events
3668
- Accepted for compatibility; analytics are sent by default
4051
+ Dispatch events to the API Catalog and Application Inventory ingestion pipelines (on by default)
3669
4052
  .TP
3670
4053
  .B \-\-no\-report\-events
3671
- Do not send analytics to Postman
4054
+ Do not dispatch events to the API Catalog and Application Inventory ingestion pipelines
3672
4055
 
3673
4056
  .TP Examples:
3674
4057
 
@@ -4514,9 +4897,11 @@ Print the list as machine\-readable data instead of a table
4514
4897
 
4515
4898
  .TP Examples:
4516
4899
 
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
4900
+ Listing is local\-first: without \-w it reads your repository; pass \-w to list a cloud workspace.
4901
+
4902
+ Eg. postman mock list # your repo (postman/mocks)
4903
+ postman mock list ./postman/mocks # a specific folder
4904
+ postman mock list \-w <workspace\-id> # a Postman cloud workspace
4520
4905
  postman mock list ./postman/mocks \-\-json
4521
4906
 
4522
4907
  The folder path can be relative (e.g. ./postman/mocks) or absolute (e.g. /Users/me/postman/mocks).
@@ -4683,16 +5068,16 @@ Run only the primary command; skip analysis (use \-\-analyse\-only on merged cap
4683
5068
  Output directory for captured collection (default: pm\-results/captured/; used with \-\-capture\-only)
4684
5069
  .TP
4685
5070
  .B \-\-force
4686
- Overwrite the output directory if it exists and is not empty (used with \-\-capture\-only)
5071
+ Deprecated: output directory is always overwritten on re\-run (used with \-\-capture\-only)
4687
5072
  .TP
4688
5073
  .B \-\-save\-events\-local
4689
- Write analytics events to pm\-results/test\-events\-debug.ndjson instead of sending to Postman
5074
+ Write events to pm\-results/test\-events\-debug.ndjson instead of dispatching them to the API Catalog and Application Inventory ingestion pipelines
4690
5075
  .TP
4691
5076
  .B \-\-report\-events [boolean]
4692
- Send application test run results to Postman (default: true)
5077
+ Dispatch application test run results to the API Catalog and Application Inventory ingestion pipelines (on by default) (default: true)
4693
5078
  .TP
4694
5079
  .B \-\-no\-report\-events
4695
- Do not send run results or analytics to Postman
5080
+ Do not dispatch run results to the API Catalog and Application Inventory ingestion pipelines
4696
5081
  .TP
4697
5082
  .B \-\-verbose
4698
5083
  Show detailed per\-request matching, sandbox errors, and debug information
@@ -4708,8 +5093,9 @@ or via \-\-target\-collection/\-\-target\-environment flags. CLI flags override
4708
5093
  Use \-\-capture\-only to skip tests and export captured traffic
4709
5094
  as a V3 Postman collection organised by host.
4710
5095
 
4711
- Run results are sent to Postman automatically after analysis.
4712
- Use \-\-report\-events=false (or \-\-report\-events false) to skip uploading run results.
5096
+ Run results are dispatched to the API Catalog and Application Inventory
5097
+ ingestion pipelines automatically after analysis.
5098
+ Use \-\-report\-events=false (or \-\-report\-events false) to skip dispatching run results.
4713
5099
 
4714
5100
  Examples:
4715
5101
  postman application test \-\-command "npx playwright test"
@@ -4748,43 +5134,282 @@ After setup, run your tests normally:
4748
5134
  postman app test
4749
5135
 
4750
5136
 
4751
- .SS "simulate"
4752
- Start mock servers with simulated failure scenarios.
5137
+ .SS "simulation"
5138
+ Create, run and manage simulations — serve several mocks behind one address.
4753
5139
 
4754
5140
  .B Usage:
4755
5141
  [options] [command]
4756
5142
 
4757
5143
  .B Subcommands:
4758
5144
  .TP
4759
- .B simulate run
4760
- Start mocks with fault\-injection scenarios defined in a .sim.yaml file
5145
+ .B simulation create
5146
+ Create a simulation that serves several mocks behind one address
5147
+ .TP
5148
+ .B simulation list
5149
+ List the simulations in your repository or Postman cloud workspace
5150
+ .TP
5151
+ .B simulation get
5152
+ 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.
5153
+ .TP
5154
+ .B simulation run
5155
+ 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).
5156
+ .TP
5157
+ .B simulation push
5158
+ Upload a simulation from your repository to Postman cloud (creates it the first time, updates it after). Its member mocks are pushed too.
5159
+ .TP
5160
+ .B simulation deploy
5161
+ Turn a simulation in Postman cloud into a live mock server others can call over the internet.
5162
+ .TP
5163
+ .B simulation delete
5164
+ 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.
5165
+
5166
+ .SS "simulation create"
5167
+ Create a simulation that serves several mocks behind one address
5168
+
5169
+ .B Usage:
5170
+ [options]
5171
+
5172
+ .B Options:
5173
+ .TP
5174
+ .B \-n, \-\-name <name>
5175
+ Name for the simulation
5176
+ .TP
5177
+ .B \-\-mock <mockIdOrPath>
5178
+ 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: )
5179
+ .TP
5180
+ .B \-\-routing <header|path>
5181
+ How callers reach each mock: header or path (default path)
5182
+ .TP
5183
+ .B \-o, \-\-output <path>
5184
+ Where to save the simulation file in your repository, a file or folder (defaults to postman/simulations)
5185
+ .TP
5186
+ .B \-\-force
5187
+ Overwrite the simulation file if it already exists
5188
+ .TP
5189
+ .B \-w, \-\-workspace <id>
5190
+ Postman cloud workspace to create the simulation in, by id (defaults to the workspace already linked to this project)
5191
+ .TP
5192
+ .B \-\-api\-key <key>
5193
+ Postman API key (defaults to your `postman login` session)
5194
+
5195
+ .TP Examples:
5196
+
5197
+ Eg. postman simulation create \-n "Checkout" \-\-mock ./postman/mocks/payments \-\-mock ./postman/mocks/orders
5198
+ postman simulation create \-n "Checkout" \-\-mock ./postman/mocks/payments=payments \-\-routing header
5199
+ postman simulation create \-n "Checkout" \-\-mock ./postman/mocks/payments \-o ./postman/simulations/checkout.sim.yaml
5200
+ postman simulation create \-n "Checkout" \-w <workspace\-id> \-\-mock <mock\-id>=payments
4761
5201
 
4762
- .SS "simulate run"
4763
- Start mocks with fault\-injection scenarios defined in a .sim.yaml file
5202
+ 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.
5203
+
5204
+
5205
+ .SS "simulation list"
5206
+ List the simulations in your repository or Postman cloud workspace
4764
5207
 
4765
5208
  .B Usage:
4766
- [options] <filepath>
5209
+ [pathOrDir] [options]
4767
5210
 
4768
5211
  .B Options:
4769
5212
  .TP
4770
5213
  .B \-w, \-\-workspace <id>
4771
- Workspace that owns the run, for recording its simulation start history.
5214
+ Postman cloud workspace whose simulations to list, by id (defaults to the workspace already linked to this project)
5215
+ .TP
5216
+ .B \-\-api\-key <key>
5217
+ Postman API key (defaults to your `postman login` session)
5218
+ .TP
5219
+ .B \-\-json
5220
+ Print the list as machine\-readable data instead of a table
5221
+
5222
+ .TP Examples:
5223
+
5224
+ Listing is local\-first: without \-w it reads your repository; pass \-w to list a cloud workspace.
5225
+
5226
+ Eg. postman simulation list # your repo (postman/simulations)
5227
+ postman simulation list ./postman/simulations # a specific folder
5228
+ postman simulation list \-w <workspace\-id> # a Postman cloud workspace
5229
+ postman simulation list ./postman/simulations \-\-json
5230
+
5231
+ The folder path can be relative (e.g. ./postman/simulations) or absolute.
5232
+
5233
+
5234
+ .SS "simulation get"
5235
+ 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.
5236
+
5237
+ .B Usage:
5238
+ <simIdOrPath> [options]
5239
+
5240
+ .B Options:
5241
+ .TP
5242
+ .B \-\-api\-key <key>
5243
+ Postman API key (defaults to your `postman login` session)
5244
+ .TP
5245
+ .B \-\-json
5246
+ Print the details as machine\-readable data instead of a table
5247
+
5248
+ .TP Examples:
5249
+
5250
+ Eg. postman simulation get 12345678\-90ab\-cdef\-1234\-567890abcdef # by id, from Postman cloud
5251
+ postman simulation get ./postman/simulations/checkout.sim.yaml # by path, from repository
5252
+ postman simulation get ./postman/simulations/checkout.sim.yaml \-\-json
5253
+
5254
+ Paths can be relative (e.g. ./postman/simulations/checkout.sim.yaml) or absolute.
5255
+
5256
+
5257
+ .SS "simulation run"
5258
+ 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).
5259
+
5260
+ .B Usage:
5261
+ [options] <simIdOrPath>
5262
+
5263
+ .B Options:
5264
+ .TP
5265
+ .B \-e, \-\-environment <path>
5266
+ Path to a file of environment variables for the mocks (relative or absolute)
5267
+ .TP
5268
+ .B \-g, \-\-globals <path>
5269
+ Path to a file of global variables for the mocks (relative or absolute)
5270
+ .TP
5271
+ .B \-p, \-\-port <port>
5272
+ Port to serve on (e.g. 4010), or "auto" for a free one (default 3000)
5273
+ .TP
5274
+ .B \-\-dataset <pathOrDir>
5275
+ Dataset file or folder to load for pm.datasets (repeatable) (default: )
5276
+ .TP
5277
+ .B \-w, \-\-workspace <id>
5278
+ Workspace for recording start history. Derived from a simulation id or the linked project; needed only for an unlinked .sim.yaml path.
4772
5279
  .TP
4773
5280
  .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.
5281
+ 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
5282
  .TP
4776
5283
  .B \-\-api\-key <key>
4777
- Postman API key for recording start history (defaults to your `postman login` session).
5284
+ Postman API key (defaults to your `postman login` session)
4778
5285
  .TP
4779
5286
  .B \-\-no\-history
4780
- Do not record this run in the simulation's start history.
5287
+ Do not record this run in the simulation's start history
5288
+ .TP
5289
+ .B \-\-output <format>
5290
+ 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)
5291
+ .TP
5292
+ .B \-\-proxy
5293
+ Serve the mocks behind a local HTTP(S) forward proxy instead of one routed port, so a repo under test can point HTTP_PROXY/HTTPS_PROXY at it and reach each mock by hostname without code changes. Requires a simulation.yaml (routing config), not a .sim.yaml.
5294
+ .TP
5295
+ .B \-\-proxy\-port <n>
5296
+ Port for the proxy server. Distinct from \-\-port, which is the one\-port run's own port. (default: 7001)
5297
+ .TP
5298
+ .B \-\-scenario <name>
5299
+ Scenario each mock serves, sent as both pm\-mock\-scenario and x\-mock\-scenario. (default: default)
5300
+ .TP
5301
+ .B \-\-session <id>
5302
+ Session id to select via the x\-mock\-session header (default: a generated id).
5303
+ .TP
5304
+ .B \-\-log\-format <format>
5305
+ Proxy request log format: text or json. (default: text)
5306
+ .TP
5307
+ .B \-\-log\-body
5308
+ Also log each response body (truncated). Buffers full responses in memory; meant for temporary debugging, not left on by default.
5309
+ .TP
5310
+ .B \-\-doctor
5311
+ Start the proxy, probe each available HTTP client (fetch/undici/axios/node\-fetch) to confirm it honors HTTP_PROXY/HTTPS_PROXY, then exit.
5312
+
5313
+ .TP Examples:
5314
+
5315
+ Eg. postman simulation run ./postman/simulations/checkout.sim.yaml
5316
+ postman simulation run 12345678\-90ab\-cdef\-1234\-567890abcdef # fetch a cloud sim, run local
5317
+ postman simulation run ./postman/simulations/checkout.sim.yaml \-\-port 4010
5318
+ postman simulation run ./postman/simulations/checkout.sim.yaml \-\-output ndjson # stream events
5319
+
5320
+ 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.
5321
+
5322
+ 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.
5323
+
5324
+ Eg. postman simulation run ./simulation.yaml \-\-proxy # mocks + intercepting proxy
5325
+ postman simulation run ./simulation.yaml \-\-proxy \-\-doctor # check your client honors it
5326
+
5327
+ \-\-proxy starts the mocks on throwaway ports behind the proxy and records no start history.
5328
+
5329
+
5330
+ .SS "simulation push"
5331
+ Upload a simulation from your repository to Postman cloud (creates it the first time, updates it after). Its member mocks are pushed too.
5332
+
5333
+ .B Usage:
5334
+ <simPath> [options]
5335
+
5336
+ .B Options:
5337
+ .TP
5338
+ .B \-w, \-\-workspace <id>
5339
+ Postman cloud workspace to upload to, by id (defaults to the workspace already linked to this project)
5340
+ .TP
5341
+ .B \-\-api\-key <key>
5342
+ Postman API key (defaults to your `postman login` session)
5343
+
5344
+ .TP Examples:
5345
+
5346
+ Eg. postman simulation push ./postman/simulations/checkout.sim.yaml
5347
+ postman simulation push ./postman/simulations/checkout.sim.yaml \-w 12345678\-90ab\-cdef\-1234\-567890abcdef
5348
+
5349
+ Paths can be relative (e.g. ./postman/simulations/checkout.sim.yaml) or absolute.
5350
+
5351
+ 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.
5352
+
5353
+
5354
+ .SS "simulation deploy"
5355
+ Turn a simulation in Postman cloud into a live mock server others can call over the internet.
5356
+
5357
+ .B Usage:
5358
+ <simId> [options]
5359
+
5360
+ .B Options:
5361
+ .TP
5362
+ .B \-w, \-\-workspace <id>
5363
+ Postman cloud workspace that will own the server, by id (defaults to the workspace already linked to this project)
5364
+ .TP
5365
+ .B \-n, \-\-name <name>
5366
+ Name for the mock server (you are asked for one if you skip this)
5367
+ .TP
5368
+ .B \-s, \-\-slug <slug>
5369
+ Short label used in the server's web address, e.g. "my\-sim" (you are asked for one if you skip this)
5370
+ .TP
5371
+ .B \-\-private
5372
+ Require a Postman API key to reach the server. Public by default.
5373
+ .TP
5374
+ .B \-y, \-\-yes
5375
+ Use the defaults and skip all questions (public)
5376
+ .TP
5377
+ .B \-\-api\-key <key>
5378
+ Postman API key (defaults to your `postman login` session)
4781
5379
 
4782
5380
  .TP Examples:
4783
5381
 
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.
5382
+ simulationId is the id of a simulation in Postman cloud (find it with `postman simulation list`).
5383
+
5384
+ Eg. postman simulation deploy 12345678\-90ab\-cdef\-1234\-567890abcdef # asks a few questions
5385
+ postman simulation deploy 12345678\-90ab\-cdef\-1234\-567890abcdef \-\-slug my\-sim \-\-private
5386
+ postman simulation deploy 12345678\-90ab\-cdef\-1234\-567890abcdef \-s my\-sim \-y # no questions asked
5387
+
5388
+ Don't have the simulation in Postman cloud yet? Upload it first with `postman simulation push`.
5389
+
5390
+
5391
+ .SS "simulation delete"
5392
+ 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.
5393
+
5394
+ .B Usage:
5395
+ <simIdOrPath> [options]
5396
+
5397
+ .B Options:
5398
+ .TP
5399
+ .B \-y, \-\-yes
5400
+ Delete without asking for confirmation first
5401
+ .TP
5402
+ .B \-\-api\-key <key>
5403
+ Postman API key, used with a Postman cloud id (defaults to your `postman login` session)
5404
+
5405
+ .TP Examples:
5406
+
5407
+ Eg. postman simulation delete 12345678\-90ab\-cdef\-1234\-567890abcdef # by id, from Postman cloud
5408
+ postman simulation delete ./postman/simulations/checkout.sim.yaml # by path, from repository
5409
+ postman simulation delete ./postman/simulations/checkout.sim.yaml \-\-yes
5410
+
5411
+ A deployed cloud simulation is deleted anyway — its live mock server is taken down too.
5412
+ Deleting a local file removes only the .sim.yaml; its member mocks are left untouched.
4788
5413
 
4789
5414
 
4790
5415
  .SS "describe"
@@ -6193,7 +6818,7 @@ Add a datasource to a dataset.
6193
6818
  Dataset to add the source to; positional target is also accepted for v1.45 compatibility
6194
6819
  .TP
6195
6820
  .B \-n, \-\-name <name>
6196
- Logical name for the source (becomes the SQL table name). Required for every source except a spreadsheet, whose worksheets are each named source_<worksheet>
6821
+ Logical name for the source (becomes the SQL table name when it loads a file or a database \-\-table). Required for every source except a spreadsheet, whose worksheets are each named source_<worksheet>
6197
6822
  .TP
6198
6823
  .B \-\-source\-id <uuid>
6199
6824
  Override the generated source id (local dataset only)
@@ -6271,7 +6896,7 @@ DB password. WARNING: a literal value is visible in `ps` output and shell histor
6271
6896
  DB database name
6272
6897
  .TP
6273
6898
  .B \-\-table <table>
6274
- DB table name (required for sqlserver)
6899
+ DB table to load (required for sqlserver). Leave it out to connect to the whole database; query it with `dataset query \-s <source>` or `dataset view create \-s <source>`
6275
6900
  .TP
6276
6901
  .B \-\-ssh\-host <host>
6277
6902
  SSH bastion host
@@ -6497,7 +7122,7 @@ Update DB password. WARNING: a literal value is visible in `ps` output and shell
6497
7122
  Update DB database name
6498
7123
  .TP
6499
7124
  .B \-\-table <table>
6500
- Update DB table name
7125
+ Update the DB table to load. A source without a table connects to the whole database; query it with `dataset query \-s <source>` or `dataset view create \-s <source>`
6501
7126
  .TP
6502
7127
  .B \-\-ssh\-host <host>
6503
7128
  Update SSH bastion host
@@ -6889,6 +7514,9 @@ Manage workspace dependencies (Postman entities reused from other workspaces).
6889
7514
  .B dependency add
6890
7515
  Add a Postman collection, environment, or mock as a workspace dependency.
6891
7516
  .TP
7517
+ .B dependency get
7518
+ Show a declared workspace dependency from .postman/resources.yaml.
7519
+ .TP
6892
7520
  .B dependency list
6893
7521
  List the workspace dependencies declared in .postman/resources.yaml.
6894
7522
  .TP
@@ -6927,6 +7555,29 @@ Examples:
6927
7555
 
6928
7556
 
6929
7557
 
7558
+ .SS "dependency get"
7559
+ Show a declared workspace dependency from .postman/resources.yaml.
7560
+
7561
+ .B Usage:
7562
+ [options] <nameOrId>
7563
+
7564
+ .B Options:
7565
+ .TP
7566
+ .B \-\-type <type>
7567
+ Only match dependencies of this type (collection, environment, or mock).
7568
+ .TP
7569
+ .B \-\-json
7570
+ Output the result as JSON.
7571
+
7572
+ .TP Examples:
7573
+
7574
+ Examples:
7575
+ postman dependency get Payments
7576
+ postman dependency get 844951\-51ea04bb\-8d1a\-439e\-aa70\-fe91852efcda
7577
+ postman dependency get Prod \-\-type environment \-\-json
7578
+
7579
+
7580
+
6930
7581
  .SS "dependency list"
6931
7582
  List the workspace dependencies declared in .postman/resources.yaml.
6932
7583
 
@@ -7044,12 +7695,15 @@ Create and manage Postman secrets in a team's shared vault.
7044
7695
  .TP
7045
7696
  .B secret create
7046
7697
  Create a secret in a team's shared vault.
7698
+ .TP
7699
+ .B secret list
7700
+ List the secrets in a workspace's shared vault: key, secret id, vault id, and allowed domains.
7047
7701
 
7048
7702
  .SS "secret create"
7049
7703
  Create a secret in a team's shared vault.
7050
7704
 
7051
7705
  .B Usage:
7052
- [options] <key>
7706
+ [options] <keys...>
7053
7707
 
7054
7708
  .B Options:
7055
7709
  .TP
@@ -7062,15 +7716,24 @@ Postman workspace ID (falls back to .postman/resources.yaml or .postman/config.j
7062
7716
  .B \-\-api\-key <key>
7063
7717
  Postman API key
7064
7718
  .TP
7719
+ .B \-\-terminal
7720
+ Enter one secret value through the terminal instead of the default browser form
7721
+ .TP
7065
7722
  .B \-\-value\-stdin
7066
- Read the secret value from stdin instead of prompting
7723
+ Read the secret value from stdin instead of prompting; implies \-\-terminal
7724
+ .TP
7725
+ .B \-\-timeout <seconds>
7726
+ Seconds to wait for the browser form (default 300)
7067
7727
 
7068
7728
  .TP Examples:
7069
7729
 
7730
+ By default, values are entered in a one\-time browser form;
7731
+ the CLI prints only names and ids.
7732
+
7070
7733
  The secret value is never accepted as a command\-line argument. Provide it via:
7071
- \- an interactive masked prompt (default, when stdin is a terminal)
7072
- \- piped stdin: printf '%s' 's3cr3t' | postman secret create MY_SECRET
7073
- \- \-\-value\-stdin (explicit, same as piping)
7734
+ \- the browser form (default; accepts one or more names)
7735
+ \- \-\-terminal for an interactive masked prompt (one name only)
7736
+ \- \-\-value\-stdin to read stdin exactly (one name only)
7074
7737
 
7075
7738
  Examples:
7076
7739
  postman secret create MY_SECRET \-\-team\-id 451 \-\-workspace 00000000\-0000\-0000\-0000\-000000000000
@@ -7078,6 +7741,36 @@ Examples:
7078
7741
 
7079
7742
 
7080
7743
 
7744
+ .SS "secret list"
7745
+ List the secrets in a workspace's shared vault: key, secret id, vault id, and allowed domains.
7746
+
7747
+ .B Usage:
7748
+ [options]
7749
+
7750
+ .B Options:
7751
+ .TP
7752
+ .B \-w, \-\-workspace <workspaceId>
7753
+ Postman workspace ID (falls back to .postman/resources.yaml or .postman/config.json)
7754
+ .TP
7755
+ .B \-\-api\-key <key>
7756
+ Postman API key
7757
+ .TP
7758
+ .B \-\-json
7759
+ Print the list as machine\-readable JSON.
7760
+
7761
+ .TP Examples:
7762
+
7763
+ Only each secret's key, secret id, vault id, and allowed domains are returned — never its value.
7764
+ Pass the secret id and vault id to `postman environment var set \-\-secret\-id \-\-vault\-id`
7765
+ to link an environment variable to one.
7766
+ An empty allowed domains list means the secret may be used with all domains.
7767
+
7768
+ Examples:
7769
+ postman secret list \-\-workspace 00000000\-0000\-0000\-0000\-000000000000
7770
+ postman secret list \-\-json
7771
+
7772
+
7773
+
7081
7774
  .SH SEE ALSO
7082
7775
  Full documentation: https://learning.postman.com/docs/postman\-cli/postman\-cli\-overview/
7083
7776
  .SH AUTHOR
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "postman-cli",
3
- "version": "1.69.0",
3
+ "version": "1.71.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.71.0",
66
+ "@postman/pm-bin-macos-x64": "1.71.0",
67
+ "@postman/pm-bin-linux-x64": "1.71.0",
68
+ "@postman/pm-bin-linux-arm64": "1.71.0",
69
+ "@postman/pm-bin-windows-x64": "1.71.0"
70
70
  }
71
71
  }