postman-cli 1.58.0 → 1.59.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/man/postman.1 +314 -5
  2. package/package.json +6 -6
package/man/postman.1 CHANGED
@@ -1,4 +1,4 @@
1
- .TH POSTMAN 1 "2026-09-17" "v1.58.0" "Postman CLI Manual"
1
+ .TH POSTMAN 1 "2026-09-18" "v1.59.0" "Postman CLI Manual"
2
2
  .SH NAME
3
3
  postman \- Command\-line companion utility for Postman
4
4
  .SH SYNOPSIS
@@ -41,7 +41,7 @@ Specify the region for authentication. Use "eu" for EU region.
41
41
  Show detailed error information
42
42
 
43
43
  .SS "signup"
44
- Sign up to keep the work you created as a guest (claims your guest workspace). By default prints a single\-use sign\-up URL to open in a browser; \-\-browser signs up in a browser and signs this CLI in.
44
+ Sign up to keep the work you created as a guest (claims your guest workspace). Waits and signs this CLI in once the sign\-up is completed in a browser — opening that browser here on a terminal, or printing the URL to hand over when output is piped.
45
45
 
46
46
  .B Usage:
47
47
  [options]
@@ -49,7 +49,13 @@ Sign up to keep the work you created as a guest (claims your guest workspace). B
49
49
  .B Options:
50
50
  .TP
51
51
  .B \-\-browser
52
- Open a browser to sign up and sign this CLI in, instead of printing a URL.
52
+ Always open the sign\-up URL in a browser here, rather than printing it.
53
+ .TP
54
+ .B \-\-wait
55
+ Wait for the sign\-up to complete even if no local browser is detected.
56
+ .TP
57
+ .B \-\-no\-wait
58
+ Print the sign\-up URL and exit without waiting. Leaves this CLI a guest.
53
59
  .TP
54
60
  .B \-\-json
55
61
  Print the sign\-up details as machine\-readable JSON.
@@ -138,6 +144,12 @@ Show the Postman account or guest session this CLI session is using.
138
144
  .B \-\-json
139
145
  Print current identity as machine\-readable JSON.
140
146
 
147
+ .SS "update"
148
+ Update Postman CLI using the original installation method.
149
+
150
+ .B Usage:
151
+ [options]
152
+
141
153
  .SS "skills"
142
154
  Check and update the agent skills in this repository.
143
155
 
@@ -233,6 +245,9 @@ Run and test your Postman collections directly from the command line.
233
245
 
234
246
  .B Subcommands:
235
247
  .TP
248
+ .B collection new
249
+ Scaffold a v3 collection on disk, or create one in a cloud Postman workspace with \-\-workspace.
250
+ .TP
236
251
  .B collection migrate
237
252
  Migrate a v2.1 collection to the v3 format
238
253
  .TP
@@ -242,9 +257,50 @@ Run linting on a local v3 collection at the given file or directory path.
242
257
  .B collection ai-readiness
243
258
  Score a Postman collection for AI readiness by ID, local file path, or local\-mode directory.
244
259
  .TP
260
+ .B collection get
261
+ Fetch a Postman collection in the V3 format and print it.
262
+ .TP
263
+ .B collection list
264
+ List collections: your local project's collections by default, or a Postman cloud workspace's collections with \-\-workspace.
265
+ .TP
245
266
  .B collection run
246
267
  Initiate a Postman collection run from a given ID or path.
247
268
 
269
+ .SS "collection new"
270
+ Scaffold a v3 collection on disk, or create one in a cloud Postman workspace with \-\-workspace.
271
+
272
+ .B Usage:
273
+ <name> [options]
274
+
275
+ .B Options:
276
+ .TP
277
+ .B \-w, \-\-workspace <workspaceId>
278
+ Create the collection in a cloud Postman workspace instead of scaffolding it locally. Required when the current directory is not a local Postman workspace.
279
+ .TP
280
+ .B \-\-force
281
+ Rewrite the definition of an existing local collection. Existing request files are left alone.
282
+ .TP
283
+ .B \-\-verbose
284
+ Verbose output
285
+ .TP
286
+ .B \-\-json
287
+ JSON output
288
+
289
+ .TP Examples:
290
+
291
+ Examples:
292
+ postman collection new "Orders API"
293
+ postman collection new "Orders API" \-\-json
294
+ postman collection new "Orders API" \-\-workspace 12345678\-90ab\-cdef\-1234\-567890abcdef
295
+
296
+ Without \-\-workspace this writes postman/collections/<name>/.resources/definition.yaml
297
+ in the current directory, which must be a local Postman workspace (a directory holding
298
+ \&.postman/ or postman/). Add requests as <request\-name>.request.yaml files beside it, then
299
+ publish with `postman workspace push`. Creating a collection in a workspace requires
300
+ authentication.
301
+
302
+
303
+
248
304
  .SS "collection migrate"
249
305
  Migrate a v2.1 collection to the v3 format
250
306
 
@@ -295,6 +351,59 @@ Examples:
295
351
  Resolving a collection by ID requires authentication. Use `postman login` before running this command with a UID.
296
352
 
297
353
 
354
+ .SS "collection get"
355
+ Fetch a Postman collection in the V3 format and print it.
356
+
357
+ .B Usage:
358
+ [options] <id>
359
+
360
+ .B Options:
361
+ .TP
362
+ .B \-\-api\-key <key>
363
+ Postman API key (defaults to your `postman login` session)
364
+ .TP
365
+ .B \-\-json
366
+ Print the collection as machine\-readable V3 JSON instead of a table
367
+
368
+ .TP Examples:
369
+
370
+ Eg. postman collection get 12345\-33823532ab9e41c9b6fd12d0fd459b8b
371
+ postman collection get 0123456789abcdef01234567 \-\-json
372
+
373
+
374
+ .SS "collection list"
375
+ List collections: your local project's collections by default, or a Postman cloud workspace's collections with \-\-workspace.
376
+
377
+ .B Usage:
378
+ [options]
379
+
380
+ .B Options:
381
+ .TP
382
+ .B \-w, \-\-workspace <workspaceId>
383
+ List a Postman cloud workspace's collections by id. Omit to list the local project's collections.
384
+ .TP
385
+ .B \-f, \-\-filter <name>
386
+ Filter collections by name.
387
+ .TP
388
+ .B \-\-verbose
389
+ Verbose output
390
+ .TP
391
+ .B \-\-debug
392
+ Debug output
393
+ .TP
394
+ .B \-\-json
395
+ JSON output
396
+
397
+ .TP Examples:
398
+
399
+ Examples:
400
+ postman collection list # local project collections
401
+ postman collection list \-\-json # local, as JSON
402
+ postman collection list \-\-workspace 12345678\-90ab\-cdef\-1234\-567890abcdef # a cloud workspace
403
+ postman collection list \-\-workspace 12345678\-90ab\-cdef\-1234\-567890abcdef \-\-filter "payments"
404
+
405
+
406
+
298
407
  .SS "collection run"
299
408
  Initiate a Postman collection run from a given ID or path.
300
409
 
@@ -470,6 +579,9 @@ Work with local Postman environments from the command line. Also read cloud envi
470
579
 
471
580
  .B Subcommands:
472
581
  .TP
582
+ .B environment new
583
+ Scaffold a local environment file, or create one in a Postman workspace with \-\-workspace.
584
+ .TP
473
585
  .B environment list
474
586
  List environments in a Postman workspace.
475
587
  .TP
@@ -482,6 +594,40 @@ Read and update environment variables.
482
594
  .B environment lint
483
595
  Run linting on a local Postman environment at the given file or directory path.
484
596
 
597
+ .SS "environment new"
598
+ Scaffold a local environment file, or create one in a Postman workspace with \-\-workspace.
599
+
600
+ .B Usage:
601
+ <name> [options]
602
+
603
+ .B Options:
604
+ .TP
605
+ .B \-w, \-\-workspace <workspaceId>
606
+ Create the environment in a cloud Postman workspace instead of scaffolding it locally. Required when the current directory is not a local Postman workspace.
607
+ .TP
608
+ .B \-\-force
609
+ Overwrite an existing local environment file.
610
+ .TP
611
+ .B \-\-verbose
612
+ Verbose output
613
+ .TP
614
+ .B \-\-json
615
+ JSON output
616
+
617
+ .TP Examples:
618
+
619
+ Examples:
620
+ postman environment new Dev
621
+ postman environment new "Staging EU" \-\-json
622
+ postman environment new Dev \-\-force
623
+ postman environment new Dev \-\-workspace 12345678\-90ab\-cdef\-1234\-567890abcdef
624
+
625
+ Without \-\-workspace this writes postman/environments/<name>.environment.yaml in the
626
+ current directory, which must be a local Postman workspace (a directory holding
627
+ \&.postman/ or postman/). Creating an environment in a workspace requires authentication.
628
+
629
+
630
+
485
631
  .SS "environment list"
486
632
  List environments in a Postman workspace.
487
633
 
@@ -836,6 +982,9 @@ List the team's registered self\-hosted runners
836
982
  .B \-\-api\-key <key>
837
983
  Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session)
838
984
  .TP
985
+ .B \-w, \-\-workspace <id>
986
+ Filter to runners in this workspace
987
+ .TP
839
988
  .B \-\-json
840
989
  Output the runner list as JSON instead of a table
841
990
 
@@ -880,6 +1029,9 @@ Add, update, or remove files in a spec (cloud ID or local directory).
880
1029
  .TP
881
1030
  .B spec create
882
1031
  Create a new spec in a workspace, or (with path) scaffold a local spec file.
1032
+ .TP
1033
+ .B spec generate
1034
+ Generate artifacts from a specification.
883
1035
 
884
1036
  .SS "spec lint"
885
1037
  Run linting on the given specification by ID or local file path.
@@ -1107,6 +1259,46 @@ Examples:
1107
1259
 
1108
1260
 
1109
1261
 
1262
+ .SS "spec generate"
1263
+ Generate artifacts from a specification.
1264
+
1265
+ .B Usage:
1266
+ [options] [command]
1267
+
1268
+ .B Subcommands:
1269
+ .TP
1270
+ .B spec generate collection
1271
+ Generate a Postman collection from a specification.
1272
+
1273
+ .SS "spec generate collection"
1274
+ Generate a Postman collection from a specification.
1275
+
1276
+ .B Usage:
1277
+ [options] <spec>
1278
+
1279
+ .B Options:
1280
+ .TP
1281
+ .B \-n, \-\-name <name>
1282
+ Collection name
1283
+ .TP
1284
+ .B \-\-folder\-strategy <strategy>
1285
+ Folder strategy: Paths or Tags (default: Paths) (default: Paths)
1286
+ .TP
1287
+ .B \-w, \-\-workspace <id>
1288
+ Workspace ID (cloud mode)
1289
+ .TP
1290
+ .B \-\-api\-key <key>
1291
+ Postman API key
1292
+
1293
+ .TP Examples:
1294
+
1295
+ Examples:
1296
+ postman spec generate collection ./openapi.yaml \-n "My API"
1297
+ postman spec generate collection ./openapi.yaml \-n "My API" \-\-folder\-strategy Tags
1298
+ postman spec generate collection 12345678\-abcd\-1234\-abcd\-1234567890ab \-n "My API"
1299
+
1300
+
1301
+
1110
1302
  .SS "monitor"
1111
1303
  Run and manage Postman monitors.
1112
1304
 
@@ -1139,6 +1331,9 @@ List the monitors visible to you.
1139
1331
  .B monitor get
1140
1332
  Show a monitor's configuration.
1141
1333
  .TP
1334
+ .B monitor metrics
1335
+ Show per\-request latency and outcome history for a monitor.
1336
+ .TP
1142
1337
  .B monitor pause
1143
1338
  Pause a monitor, so it stops firing on schedule.
1144
1339
  .TP
@@ -1534,6 +1729,40 @@ Eg. postman monitor get 12345678\-90ab\-cdef\-1234\-567890abcdef
1534
1729
  postman monitor get 12345678\-90ab\-cdef\-1234\-567890abcdef \-\-json
1535
1730
 
1536
1731
 
1732
+ .SS "monitor metrics"
1733
+ Show per\-request latency and outcome history for a monitor.
1734
+
1735
+ .B Usage:
1736
+ [options] <monitorId>
1737
+
1738
+ .B Options:
1739
+ .TP
1740
+ .B \-\-api\-key <key>
1741
+ Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session)
1742
+ .TP
1743
+ .B \-\-since <dateTime>
1744
+ Only executions at or after this ISO 8601 date\-time. Defaults to 7 days ago.
1745
+ .TP
1746
+ .B \-\-until <dateTime>
1747
+ Only executions at or before this ISO 8601 date\-time. Defaults to now.
1748
+ .TP
1749
+ .B \-f, \-\-filter <text>
1750
+ Show only requests whose name contains this text (case\-insensitive)
1751
+ .TP
1752
+ .B \-\-limit <n>
1753
+ Cap the number of rows shown: executions (newest first) under \-\-json, or table rows (worst\-behaving request first) otherwise. Not honoured by the service \-\- there is no server\-side pagination on this route.
1754
+ .TP
1755
+ .B \-\-json
1756
+ Output as JSON instead of a table
1757
+
1758
+ .TP Examples:
1759
+
1760
+ Eg. postman monitor metrics 12345678\-90ab\-cdef\-1234\-567890abcdef
1761
+ postman monitor metrics 12345678\-90ab\-cdef\-1234\-567890abcdef \-\-since 2026\-09\-01T00:00:00Z
1762
+ postman monitor metrics 12345678\-90ab\-cdef\-1234\-567890abcdef \-\-filter "GET /health"
1763
+ postman monitor metrics 12345678\-90ab\-cdef\-1234\-567890abcdef \-\-json
1764
+
1765
+
1537
1766
  .SS "monitor pause"
1538
1767
  Pause a monitor, so it stops firing on schedule.
1539
1768
 
@@ -1590,6 +1819,9 @@ Pull workspace entities from a Postman workspace into the local git\-native fold
1590
1819
  .TP
1591
1820
  .B workspace connect-git
1592
1821
  Connect a Postman workspace to a local git repository.
1822
+ .TP
1823
+ .B workspace diff
1824
+ Preview local\-vs\-cloud drift before pushing. Read\-only: nothing is created, updated or deleted.
1593
1825
 
1594
1826
  .SS "workspace list"
1595
1827
  List all available Postman Workspaces
@@ -1774,6 +2006,46 @@ Examples:
1774
2006
 
1775
2007
 
1776
2008
 
2009
+ .SS "workspace diff"
2010
+ Preview local\-vs\-cloud drift before pushing. Read\-only: nothing is created, updated or deleted.
2011
+
2012
+ .B Usage:
2013
+ [options] [workspaceId]
2014
+
2015
+ .B Options:
2016
+ .TP
2017
+ .B \-\-push\-strategy <strategy>
2018
+ Strategy to preview. "force\-sync" also shows cloud entities that would be DELETED. Defaults to "force\-sync".
2019
+ .TP
2020
+ .B \-\-summary
2021
+ Skip content comparison. Faster, but updates are listed without checking whether they changed.
2022
+ .TP
2023
+ .B \-\-json
2024
+ Print the diff as machine\-readable JSON.
2025
+ .TP
2026
+ .B \-\-exit\-code
2027
+ Exit with code 1 when drift is found (for CI gates).
2028
+ .TP
2029
+ .B \-\-verbose
2030
+ Show detailed logging
2031
+ .TP
2032
+ .B \-\-timeout <ms>
2033
+ Abort the run after this many milliseconds. Defaults to 120000.
2034
+
2035
+ .TP Examples:
2036
+
2037
+ Examples:
2038
+ postman workspace diff
2039
+ Preview what `push \-\-push\-strategy force\-sync` would do
2040
+ postman workspace diff \-\-summary
2041
+ Fast deletion preview, no content comparison
2042
+ postman workspace diff \-\-json \-\-exit\-code
2043
+ Machine\-readable output, exit 1 when there is drift (CI gate)
2044
+ postman workspace diff \-\-push\-strategy default
2045
+ Preview a create/update\-only push, hiding deletions
2046
+
2047
+
2048
+
1777
2049
  .SS "performance"
1778
2050
  Manage performance tests on your collections.
1779
2051
 
@@ -1784,6 +2056,9 @@ Manage performance tests on your collections.
1784
2056
  .TP
1785
2057
  .B performance run
1786
2058
  Run a performance test on a collection
2059
+ .TP
2060
+ .B performance runs
2061
+ List past performance runs for a collection, newest first.
1787
2062
 
1788
2063
  .SS "performance run"
1789
2064
  Run a performance test on a collection
@@ -1851,6 +2126,40 @@ Examples:
1851
2126
  postman performance run 123456\-45159473\-1e45\-1f34\-5678\-1234567890ab \-\-runner postman\-cloud\-static\-ip
1852
2127
 
1853
2128
 
2129
+ .SS "performance runs"
2130
+ List past performance runs for a collection, newest first.
2131
+
2132
+ .B Usage:
2133
+ \-\-collection\-id <id> [options]
2134
+
2135
+ .B Options:
2136
+ .TP
2137
+ .B \-c, \-\-collection\-id <id>
2138
+ Collection ID whose performance runs to list
2139
+ .TP
2140
+ .B \-\-cursor <token>
2141
+ Pagination cursor from a previous page's response
2142
+ .TP
2143
+ .B \-\-json
2144
+ Output as JSON instead of a table
2145
+ .TP
2146
+ .B \-\-timeout <ms>
2147
+ Milliseconds to wait for the service before failing (default: 30000)
2148
+
2149
+ .TP Examples:
2150
+
2151
+ Examples:
2152
+ postman performance runs \-\-collection\-id 1402295\-45159473\-1e45\-1f34\-5678\-1234567890ab
2153
+ postman performance runs \-c 1402295\-45159473\-1e45\-1f34\-5678\-1234567890ab \-\-json
2154
+ postman performance runs \-c 1402295\-45159473\-1e45\-1f34\-5678\-1234567890ab \-\-cursor eyJpZCI6...
2155
+
2156
+ The newest 25 runs are returned. A `\-` in Duration means the run has not finished yet.
2157
+ A page shorter than 25 does not mean the end of the list: use the printed \-\-cursor
2158
+ while one is offered.
2159
+
2160
+ Authentication uses POSTMAN_API_KEY, or the `postman login` session.
2161
+
2162
+
1854
2163
  .SS "flows"
1855
2164
  Manage and interact with flows.
1856
2165
 
@@ -2916,7 +3225,7 @@ Turn a mock in Postman cloud into a live mock server others can call over the in
2916
3225
  Show a mock's details using its path if it lives in your repository, or its id if it lives in Postman cloud.
2917
3226
  .TP
2918
3227
  .B mock list
2919
- List the mocks in your Postman cloud workspace, or — with a folder path — the mocks in that folder in your repository.
3228
+ List the mocks in your repository or Postman cloud workspace
2920
3229
  .TP
2921
3230
  .B mock log
2922
3231
  Show the requests a live mock server has received and the responses it sent, using its id.
@@ -3088,7 +3397,7 @@ Paths can be relative (e.g. ./postman/mocks/orders) or absolute (e.g. /Users/me/
3088
3397
 
3089
3398
 
3090
3399
  .SS "mock list"
3091
- List the mocks in your Postman cloud workspace, or — with a folder path — the mocks in that folder in your repository.
3400
+ List the mocks in your repository or Postman cloud workspace
3092
3401
 
3093
3402
  .B Usage:
3094
3403
  [pathOrDir] [options]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "postman-cli",
3
- "version": "1.58.0",
3
+ "version": "1.59.0",
4
4
  "description": "Official Postman CLI - Command-line companion for API development, testing, and automation",
5
5
  "keywords": [
6
6
  "postman",
@@ -58,10 +58,10 @@
58
58
  "man/"
59
59
  ],
60
60
  "optionalDependencies": {
61
- "@postman/pm-bin-macos-arm64": "1.58.0",
62
- "@postman/pm-bin-macos-x64": "1.58.0",
63
- "@postman/pm-bin-linux-x64": "1.58.0",
64
- "@postman/pm-bin-linux-arm64": "1.58.0",
65
- "@postman/pm-bin-windows-x64": "1.58.0"
61
+ "@postman/pm-bin-macos-arm64": "1.59.0",
62
+ "@postman/pm-bin-macos-x64": "1.59.0",
63
+ "@postman/pm-bin-linux-x64": "1.59.0",
64
+ "@postman/pm-bin-linux-arm64": "1.59.0",
65
+ "@postman/pm-bin-windows-x64": "1.59.0"
66
66
  }
67
67
  }