postman-cli 1.70.0 → 1.73.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 +598 -25
  2. package/package.json +6 -6
package/man/postman.1 CHANGED
@@ -1,4 +1,4 @@
1
- .TH POSTMAN 1 "2026-10-07" "v1.70.0" "Postman CLI Manual"
1
+ .TH POSTMAN 1 "2026-10-09" "v1.73.0" "Postman CLI Manual"
2
2
  .SH NAME
3
3
  postman \- Command\-line companion utility for Postman
4
4
  .SH SYNOPSIS
@@ -304,6 +304,9 @@ Score a Postman collection for AI readiness by ID, local file path, or local\-mo
304
304
  .B collection get
305
305
  Fetch a Postman collection in the V3 format and print it.
306
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
307
310
  .B collection publish
308
311
  Publish a cloud collection's documentation (or request Community Manager approval).
309
312
  .TP
@@ -440,6 +443,35 @@ Eg. postman collection get 12345\-33823532ab9e41c9b6fd12d0fd459b8b
440
443
  postman collection get 0123456789abcdef01234567 \-\-json
441
444
 
442
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
+
443
475
  .SS "collection publish"
444
476
  Publish a cloud collection's documentation (or request Community Manager approval).
445
477
 
@@ -1331,28 +1363,22 @@ Show detailed information of collection run and each request sent
1331
1363
  Start a mock server for the run, its path if it lives in your repository (relative or absolute, e.g. ./postman/mocks/orders) or its id if it lives in Postman cloud (fetched then run locally). An id needs `postman login` (or \-\-postman\-api\-key).
1332
1364
  .TP
1333
1365
  .B \-\-port <port>
1334
- Port for the \-\-mock server (e.g. 4010), or "auto" for a free one. Defaults to the mock's configured port. Only valid with \-\-mock.
1366
+ Port for the \-\-mock server or \-\-simulation (e.g. 4010), or "auto" for a free one. Defaults to the configured port. Only valid with \-\-mock or \-\-simulation.
1335
1367
  .TP
1336
1368
  .B \-\-use\-mock <mapping>
1337
1369
  Redirect requests for a URL or {{variable}} to a mock during the run. Format: "<url> mock|mock\-server:<path|id> [scenario]". Repeat the flag to redirect several URLs (one \-\-use\-mock each). Use "mock:<path>" for a mock in your repository (path relative or absolute, e.g. ./postman/mocks/orders), "mock:<id>" for a mock in Postman cloud (fetched then run locally), or "mock\-server:<id>" to send requests to a deployed mock server. An id needs `postman login` (or \-\-postman\-api\-key). The optional third field picks a scenario (defaults to "default"). (default: )
1338
1370
  .TP
1339
- .B \-\-simulate <path>
1340
- Start mock servers with fault\-injection scenarios from a .sim.yaml file
1341
- .TP
1342
- .B \-\-simulation <id>
1343
- Simulation id to record start history against when using \-\-simulate.
1344
- .TP
1345
- .B \-\-simulate\-workspace <id>
1346
- Workspace that owns the \-\-simulate run, for recording its start history.
1371
+ .B \-\-simulation <pathOrId>
1372
+ Run the mocks in a simulation for the run, its .sim.yaml path if it lives in your repository (relative or absolute, e.g. ./postman/simulations/checkout.sim.yaml) or its id if it lives in Postman cloud (fetched then run locally). Members share one port and are addressed by routeKey (e.g. http://localhost:3000/<routeKey>/path). An id needs `postman login` (or \-\-postman\-api\-key).
1347
1373
  .TP
1348
- .B \-\-no\-simulate\-history
1349
- Do not record the \-\-simulate run in the simulation's start history.
1374
+ .B \-w, \-\-workspace <workspaceId>
1375
+ Workspace to record the \-\-simulation run's start history against. Defaults to the simulation's own workspace (when run by id) or the linked project's workspace.
1350
1376
  .TP
1351
1377
  .B \-\-report\-events
1352
- Dispatch run events, including git\-native v3 collection run results, to the API Catalog and Application Inventory ingestion pipelines (on by default)
1378
+ Dispatch run events, including git\-native v3 collection run results and any \-\-simulation start history, to the API Catalog and Application Inventory ingestion pipelines (on by default)
1353
1379
  .TP
1354
1380
  .B \-\-no\-report\-events
1355
- Do not dispatch run events to the API Catalog and Application Inventory ingestion pipelines
1381
+ Do not dispatch run events (results, \-\-simulation start history, and analytics) to the API Catalog and Application Inventory ingestion pipelines
1356
1382
 
1357
1383
  .TP Examples:
1358
1384
  Eg. postman collection run 123456\-45159473\-1e45\-1f34\-5678\-1234567890ab
@@ -1379,6 +1405,9 @@ List environments in a Postman workspace.
1379
1405
  .B environment get
1380
1406
  Read an environment by ID or local environment file path.
1381
1407
  .TP
1408
+ .B environment delete
1409
+ Delete an environment by ID or local environment file path. Prompts unless \-\-yes is passed.
1410
+ .TP
1382
1411
  .B environment var
1383
1412
  Read and update environment variables.
1384
1413
  .TP
@@ -1472,6 +1501,32 @@ Examples:
1472
1501
 
1473
1502
 
1474
1503
 
1504
+ .SS "environment delete"
1505
+ Delete an environment by ID or local environment file path. Prompts unless \-\-yes is passed.
1506
+
1507
+ .B Usage:
1508
+ <environment> [options]
1509
+
1510
+ .B Options:
1511
+ .TP
1512
+ .B \-y, \-\-yes
1513
+ Delete without asking for confirmation first
1514
+ .TP
1515
+ .B \-\-verbose
1516
+ Verbose output
1517
+ .TP
1518
+ .B \-\-json
1519
+ JSON output
1520
+
1521
+ .TP Examples:
1522
+
1523
+ Examples:
1524
+ postman environment delete ./postman/environments/dev.environment.yaml
1525
+ postman environment delete ./postman/environments/dev.environment.yaml \-\-yes
1526
+ postman environment delete 123456\-11111111\-2222\-3333\-4444\-555555555555 \-\-yes
1527
+
1528
+
1529
+
1475
1530
  .SS "environment var"
1476
1531
  Read and update environment variables.
1477
1532
 
@@ -1601,16 +1656,160 @@ Examples:
1601
1656
 
1602
1657
 
1603
1658
  .SS "globals"
1604
- Work with local Postman globals from the command line.
1659
+ Work with local Postman globals from the command line. Also read cloud globals by workspace.
1605
1660
 
1606
1661
  .B Usage:
1607
1662
  [options] [command]
1608
1663
 
1609
1664
  .B Subcommands:
1610
1665
  .TP
1666
+ .B globals get
1667
+ Read local workspace globals from the default file, or cloud globals with \-\-workspace.
1668
+ .TP
1669
+ .B globals var
1670
+ Read and update variables in the workspace globals singleton.
1671
+ .TP
1611
1672
  .B globals lint
1612
1673
  Run linting on a local Postman globals file at the given file or directory path.
1613
1674
 
1675
+ .SS "globals get"
1676
+ Read local workspace globals from the default file, or cloud globals with \-\-workspace.
1677
+
1678
+ .B Usage:
1679
+ [options]
1680
+
1681
+ .B Options:
1682
+ .TP
1683
+ .B \-w, \-\-workspace <workspaceId>
1684
+ Workspace ID to read globals from.
1685
+ .TP
1686
+ .B \-\-workspace\-path <path>
1687
+ Local Postman workspace path. Defaults to the current directory.
1688
+ .TP
1689
+ .B \-\-verbose
1690
+ Verbose output
1691
+ .TP
1692
+ .B \-\-json
1693
+ JSON output
1694
+
1695
+ .TP Examples:
1696
+
1697
+ Examples:
1698
+ postman globals get
1699
+ postman globals get \-\-workspace 12345678\-90ab\-cdef\-1234\-567890abcdef \-\-json
1700
+
1701
+
1702
+
1703
+ .SS "globals var"
1704
+ Read and update variables in the workspace globals singleton.
1705
+
1706
+ .B Usage:
1707
+ [options] [command]
1708
+
1709
+ .B Subcommands:
1710
+ .TP
1711
+ .B globals var set
1712
+ Set one variable in local workspace globals, or link it to a shared\-vault secret.
1713
+ .TP
1714
+ .B globals var get
1715
+ Read one variable from local workspace globals, or cloud globals with \-\-workspace.
1716
+ .TP
1717
+ .B globals var unset
1718
+ Remove one variable from local workspace globals, or cloud globals with \-\-workspace.
1719
+
1720
+ .SS "globals var set"
1721
+ Set one variable in local workspace globals, or link it to a shared\-vault secret.
1722
+
1723
+ .B Usage:
1724
+ [options] <key> [value]
1725
+
1726
+ .B Options:
1727
+ .TP
1728
+ .B \-w, \-\-workspace <workspaceId>
1729
+ Workspace ID whose cloud globals should be updated.
1730
+ .TP
1731
+ .B \-\-secret\-id <id>
1732
+ Link this variable to a shared\-vault secret instead of an inline value (from `secret create`'s output).
1733
+ .TP
1734
+ .B \-\-vault\-id <id>
1735
+ Vault id for \-\-secret\-id (auto\-resolved from \-\-workspace when omitted).
1736
+ .TP
1737
+ .B \-\-workspace\-path <path>
1738
+ Local Postman workspace path. Defaults to the current directory.
1739
+ .TP
1740
+ .B \-\-verbose
1741
+ Verbose output
1742
+ .TP
1743
+ .B \-\-json
1744
+ JSON output
1745
+
1746
+ .TP Examples:
1747
+
1748
+ Examples:
1749
+ postman globals var set baseUrl https://api.example.com
1750
+ postman globals var set apiToken \-\-secret\-id b8748ab8\-d1bb\-477f\-95e2\-78625adea75f \e
1751
+ \-\-vault\-id <vaultId>
1752
+ postman globals var set baseUrl https://api.example.com \e
1753
+ \-\-workspace 12345678\-90ab\-cdef\-1234\-567890abcdef
1754
+
1755
+
1756
+
1757
+ .SS "globals var get"
1758
+ Read one variable from local workspace globals, or cloud globals with \-\-workspace.
1759
+
1760
+ .B Usage:
1761
+ [options] <key>
1762
+
1763
+ .B Options:
1764
+ .TP
1765
+ .B \-w, \-\-workspace <workspaceId>
1766
+ Workspace ID whose cloud globals should be read.
1767
+ .TP
1768
+ .B \-\-workspace\-path <path>
1769
+ Local Postman workspace path. Defaults to the current directory.
1770
+ .TP
1771
+ .B \-\-verbose
1772
+ Verbose output
1773
+ .TP
1774
+ .B \-\-json
1775
+ JSON output
1776
+
1777
+ .TP Examples:
1778
+
1779
+ Examples:
1780
+ postman globals var get baseUrl
1781
+ postman globals var get token \-\-workspace 12345678\-90ab\-cdef\-1234\-567890abcdef
1782
+
1783
+
1784
+
1785
+ .SS "globals var unset"
1786
+ Remove one variable from local workspace globals, or cloud globals with \-\-workspace.
1787
+
1788
+ .B Usage:
1789
+ [options] <key>
1790
+
1791
+ .B Options:
1792
+ .TP
1793
+ .B \-w, \-\-workspace <workspaceId>
1794
+ Workspace ID whose cloud globals should be updated.
1795
+ .TP
1796
+ .B \-\-workspace\-path <path>
1797
+ Local Postman workspace path. Defaults to the current directory.
1798
+ .TP
1799
+ .B \-\-verbose
1800
+ Verbose output
1801
+ .TP
1802
+ .B \-\-json
1803
+ JSON output
1804
+
1805
+ .TP Examples:
1806
+
1807
+ Examples:
1808
+ postman globals var unset token
1809
+ postman globals var unset token \-\-workspace 12345678\-90ab\-cdef\-1234\-567890abcdef
1810
+
1811
+
1812
+
1614
1813
  .SS "globals lint"
1615
1814
  Run linting on a local Postman globals file at the given file or directory path.
1616
1815
 
@@ -1849,6 +2048,9 @@ Run linting on the given specification by ID or local file path.
1849
2048
  .B \-f, \-\-fail\-severity <value>
1850
2049
  Results of this level or above will trigger a failure exit code. [choices: "error", "warning", "info", "hint"] (default: ERROR)
1851
2050
  .TP
2051
+ .B \-\-issueType <value>
2052
+ Limit linting to a specific issue type. [choices: "syntax"]
2053
+ .TP
1852
2054
  .B \-o, \-\-output <value>
1853
2055
  Output format for the results. [choices: "json", "csv"]
1854
2056
  .TP
@@ -3155,6 +3357,9 @@ Run a performance test on a collection
3155
3357
  .TP
3156
3358
  .B performance list
3157
3359
  List past performance runs for a collection, newest first.
3360
+ .TP
3361
+ .B performance get
3362
+ Get one performance run by ID.
3158
3363
 
3159
3364
  .SS "performance run"
3160
3365
  Run a performance test on a collection
@@ -3340,8 +3545,11 @@ Collection ID whose performance runs to list
3340
3545
  .B \-\-cursor <token>
3341
3546
  Pagination cursor from a previous page's response
3342
3547
  .TP
3548
+ .B \-\-output <format>
3549
+ Output format: table (default) or json (default: table)
3550
+ .TP
3343
3551
  .B \-\-json
3344
- Output as JSON instead of a table
3552
+ Alias for \-\-output json
3345
3553
  .TP
3346
3554
  .B \-\-timeout <ms>
3347
3555
  Milliseconds to wait for the service before failing (default: 30000)
@@ -3350,7 +3558,7 @@ Milliseconds to wait for the service before failing (default: 30000)
3350
3558
 
3351
3559
  Examples:
3352
3560
  postman performance list \-\-collection\-id 1402295\-45159473\-1e45\-1f34\-5678\-1234567890ab
3353
- postman performance list \-c 1402295\-45159473\-1e45\-1f34\-5678\-1234567890ab \-\-json
3561
+ postman performance list \-c 1402295\-45159473\-1e45\-1f34\-5678\-1234567890ab \-\-output json
3354
3562
  postman performance list \-c 1402295\-45159473\-1e45\-1f34\-5678\-1234567890ab \-\-cursor eyJpZCI6...
3355
3563
 
3356
3564
  The newest 25 runs are returned. A `\-` in Duration means the run has not finished yet.
@@ -3360,6 +3568,32 @@ while one is offered.
3360
3568
  Authentication uses POSTMAN_API_KEY, or the `postman login` session.
3361
3569
 
3362
3570
 
3571
+ .SS "performance get"
3572
+ Get one performance run by ID.
3573
+
3574
+ .B Usage:
3575
+ <runId> [options]
3576
+
3577
+ .B Options:
3578
+ .TP
3579
+ .B \-\-output <format>
3580
+ Output format: table (default) or json (default: table)
3581
+ .TP
3582
+ .B \-\-json
3583
+ Alias for \-\-output json
3584
+ .TP
3585
+ .B \-\-timeout <ms>
3586
+ Milliseconds to wait for the service before failing (default: 30000)
3587
+
3588
+ .TP Examples:
3589
+
3590
+ Examples:
3591
+ postman performance get 0199a1b2\-c3d4\-7e5f\-8a9b\-0c1d2e3f4a5b
3592
+ postman performance get 0199a1b2\-c3d4\-7e5f\-8a9b\-0c1d2e3f4a5b \-\-output json
3593
+
3594
+ Authentication uses POSTMAN_API_KEY, or the `postman login` session.
3595
+
3596
+
3363
3597
  .SS "flows"
3364
3598
  Manage and interact with flows.
3365
3599
 
@@ -4923,6 +5157,12 @@ Upload a simulation from your repository to Postman cloud (creates it the first
4923
5157
  .B simulation deploy
4924
5158
  Turn a simulation in Postman cloud into a live mock server others can call over the internet.
4925
5159
  .TP
5160
+ .B simulation update
5161
+ Change a simulation in place — rename it, switch routing, add mocks, or change a member's address. Pass a .sim.yaml path (repository) or a Postman simulation id (cloud).
5162
+ .TP
5163
+ .B simulation log
5164
+ Show the requests a deployed simulation has received and the responses it sent, using its mock server id.
5165
+ .TP
4926
5166
  .B simulation delete
4927
5167
  Delete a simulation using its .sim.yaml path if it lives in your repository, or its id if it lives in Postman cloud. Cannot be undone.
4928
5168
 
@@ -5051,6 +5291,27 @@ Do not record this run in the simulation's start history
5051
5291
  .TP
5052
5292
  .B \-\-output <format>
5053
5293
  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)
5294
+ .TP
5295
+ .B \-\-proxy
5296
+ 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.
5297
+ .TP
5298
+ .B \-\-proxy\-port <n>
5299
+ Port for the proxy server. Distinct from \-\-port, which is the one\-port run's own port. (default: 7001)
5300
+ .TP
5301
+ .B \-\-scenario <name>
5302
+ Scenario each mock serves, sent as both pm\-mock\-scenario and x\-mock\-scenario. (default: default)
5303
+ .TP
5304
+ .B \-\-session <id>
5305
+ Session id to select via the x\-mock\-session header (default: a generated id).
5306
+ .TP
5307
+ .B \-\-log\-format <format>
5308
+ Proxy request log format: text or json. (default: text)
5309
+ .TP
5310
+ .B \-\-log\-body
5311
+ Also log each response body (truncated). Buffers full responses in memory; meant for temporary debugging, not left on by default.
5312
+ .TP
5313
+ .B \-\-doctor
5314
+ Start the proxy, probe each available HTTP client (fetch/undici/axios/node\-fetch) to confirm it honors HTTP_PROXY/HTTPS_PROXY, then exit.
5054
5315
 
5055
5316
  .TP Examples:
5056
5317
 
@@ -5063,6 +5324,11 @@ All member mocks share one address. With path routing (default) the first path s
5063
5324
 
5064
5325
  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
5326
 
5327
+ Eg. postman simulation run ./simulation.yaml \-\-proxy # mocks + intercepting proxy
5328
+ postman simulation run ./simulation.yaml \-\-proxy \-\-doctor # check your client honors it
5329
+
5330
+ \-\-proxy starts the mocks on throwaway ports behind the proxy and records no start history.
5331
+
5066
5332
 
5067
5333
  .SS "simulation push"
5068
5334
  Upload a simulation from your repository to Postman cloud (creates it the first time, updates it after). Its member mocks are pushed too.
@@ -5125,6 +5391,91 @@ Eg. postman simulation deploy 12345678\-90ab\-cdef\-1234\-567890abcdef # asks
5125
5391
  Don't have the simulation in Postman cloud yet? Upload it first with `postman simulation push`.
5126
5392
 
5127
5393
 
5394
+ .SS "simulation update"
5395
+ Change a simulation in place — rename it, switch routing, add mocks, or change a member's address. Pass a .sim.yaml path (repository) or a Postman simulation id (cloud).
5396
+
5397
+ .B Usage:
5398
+ <simIdOrPath> [options]
5399
+
5400
+ .B Options:
5401
+ .TP
5402
+ .B \-n, \-\-name <name>
5403
+ Rename the simulation
5404
+ .TP
5405
+ .B \-\-routing <header|path>
5406
+ Switch routing: header or path
5407
+ .TP
5408
+ .B \-\-add\-mock <mockIdOrPath>
5409
+ Attach a mock (repeatable). A local mock path for a repository simulation, a Postman mock id for a cloud one. Set its address with <mockIdOrPath>=<routeKey>. (default: )
5410
+ .TP
5411
+ .B \-\-route\-key <mockIdOrPath=routeKey>
5412
+ Change a member mock's address (repeatable), e.g. ./postman/mocks/payments=payments (default: )
5413
+ .TP
5414
+ .B \-\-api\-key <key>
5415
+ Postman API key (defaults to your `postman login` session)
5416
+ .TP
5417
+ .B \-\-json
5418
+ Print the update as machine\-readable data instead of a table
5419
+
5420
+ .TP Examples:
5421
+
5422
+ Eg. postman simulation update ./postman/simulations/checkout.sim.yaml \-n "Checkout v2"
5423
+ postman simulation update ./postman/simulations/checkout.sim.yaml \-\-add\-mock ./postman/mocks/refunds
5424
+ postman simulation update ./postman/simulations/checkout.sim.yaml \-\-route\-key ./postman/mocks/payments=pay
5425
+ postman simulation update 12345678\-90ab\-cdef\-1234\-567890abcdef \-\-routing header \-\-json
5426
+
5427
+ The target picks the mode: a .sim.yaml path updates the file in your repository, a Postman id updates it in Postman cloud. \-\-add\-mock takes a local path for a local simulation and a mock id for a cloud one — never mixed.
5428
+
5429
+ Renaming a repository simulation (\-n) also renames its .sim.yaml file to match.
5430
+
5431
+
5432
+ .SS "simulation log"
5433
+ Show the requests a deployed simulation has received and the responses it sent, using its mock server id.
5434
+
5435
+ .B Usage:
5436
+ <mockServerId> [options]
5437
+
5438
+ .B Options:
5439
+ .TP
5440
+ .B \-\-mock <routeKey>
5441
+ Show only requests served by this member (by routeKey). Repeat the flag for several members (default: )
5442
+ .TP
5443
+ .B \-\-limit <n>
5444
+ Most entries to show (defaults to 50 when printing machine\-readable output)
5445
+ .TP
5446
+ .B \-\-method <method>
5447
+ Show only requests of this type (e.g. GET, POST)
5448
+ .TP
5449
+ .B \-\-status <code|range>
5450
+ Show only these response codes (e.g. 404, or 5xx for any 500\-series)
5451
+ .TP
5452
+ .B \-\-path <pattern>
5453
+ Show only requests to matching addresses (use * and ? as wildcards, e.g. /users/*)
5454
+ .TP
5455
+ .B \-\-since <duration>
5456
+ Show entries from this long ago until now (e.g. 2h = the last 2 hours)
5457
+ .TP
5458
+ .B \-\-until <duration>
5459
+ Hide entries newer than this (e.g. 30m = skip the most recent 30 minutes)
5460
+ .TP
5461
+ .B \-\-api\-key <key>
5462
+ Postman API key (defaults to your `postman login` session)
5463
+ .TP
5464
+ .B \-\-json
5465
+ Print entries as machine\-readable data instead of the scrollable view
5466
+
5467
+ .TP Examples:
5468
+
5469
+ mockServerId is the id of the deployed simulation (get it from `postman simulation deploy` or `postman simulation get`).
5470
+ A member's routeKey is shown under "Mocks:" in `postman simulation get`.
5471
+
5472
+ Eg. postman simulation log 12345678\-90ab\-cdef\-1234\-567890abcdef # scroll through entries
5473
+ postman simulation log <mockServerId> \-\-mock checkout # one member
5474
+ postman simulation log <mockServerId> \-\-mock checkout \-\-mock payments # several members
5475
+ postman simulation log <mockServerId> \-\-mock checkout \-\-status 5xx \-\-json
5476
+ postman simulation log <mockServerId> \-\-since 7h \-\-until 2h # between 7h and 2h ago
5477
+
5478
+
5128
5479
  .SS "simulation delete"
5129
5480
  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
5481
 
@@ -5394,6 +5745,8 @@ The team a query runs against is derived from your API key.
5394
5745
  answer arrives. Without \-\-wait, `ask` returns an id immediately and
5395
5746
  `status <askId>` checks on it later.
5396
5747
 
5748
+ `ingest` onboards repos and workspaces into the graph.
5749
+
5397
5750
 
5398
5751
 
5399
5752
  .B Subcommands:
@@ -5403,6 +5756,9 @@ Ask a natural\-language question about your team's Context Graph.
5403
5756
  .TP
5404
5757
  .B context-graph status
5405
5758
  Check an ask submitted by `ask`, without blocking. Prints the answer when ready.
5759
+ .TP
5760
+ .B context-graph ingest
5761
+ Onboard repos and workspaces into your team's Context Graph, and check ingestion progress.
5406
5762
 
5407
5763
  .SS "context\-graph ask"
5408
5764
  Ask a natural\-language question about your team's Context Graph.
@@ -5488,6 +5844,155 @@ Examples:
5488
5844
 
5489
5845
 
5490
5846
 
5847
+ .SS "context\-graph ingest"
5848
+ Onboard repos and workspaces into your team's Context Graph, and check ingestion progress.
5849
+
5850
+ .B Usage:
5851
+ [options] [command]
5852
+
5853
+ .TP Examples:
5854
+
5855
+ `ingest git` indexes a repo's code; `ingest workspaces` indexes a workspace's
5856
+ specs, collections and environments. Covering both for a git\-linked workspace
5857
+ means running both: `ingest git \-\-all\-git\-linked\-workspaces` only discovers the
5858
+ linked repos, and never ingests the workspace itself.
5859
+
5860
+
5861
+
5862
+ .B Subcommands:
5863
+ .TP
5864
+ .B context-graph ingest git
5865
+ Onboard GitHub repos into your team's Context Graph.
5866
+ .TP
5867
+ .B context-graph ingest workspaces
5868
+ Onboard Postman workspaces into your team's Context Graph.
5869
+ .TP
5870
+ .B context-graph ingest status
5871
+ Check ingestion progress for the team, or for one source.
5872
+
5873
+ .SS "context\-graph ingest git"
5874
+ Onboard GitHub repos into your team's Context Graph.
5875
+
5876
+ .B Usage:
5877
+ [options] [repoUrls...]
5878
+
5879
+ .B Options:
5880
+ .TP
5881
+ .B \-\-all\-git\-linked\-workspaces
5882
+ Also onboard the repo linked to every git\-linked workspace in the team
5883
+ .TP
5884
+ .B \-\-tag <tag>
5885
+ With \-\-all\-git\-linked\-workspaces, only workspaces with this tag. Repeatable, up to 5; all must match
5886
+ .TP
5887
+ .B \-\-ttl <seconds>
5888
+ Override the service's default TTL, in seconds
5889
+ .TP
5890
+ .B \-\-api\-key <key>
5891
+ Postman API key (falls back to POSTMAN_API_KEY, then a `postman login` session)
5892
+ .TP
5893
+ .B \-\-json
5894
+ Output the onboarding response as JSON
5895
+
5896
+ .TP Examples:
5897
+
5898
+ Repo URLs may be in https or git@ SSH form, up to 500 per call. The team is
5899
+ derived from the API key.
5900
+
5901
+ This indexes a repo's code. It never ingests a workspace itself, even with
5902
+ \-\-all\-git\-linked\-workspaces; use `ingest workspaces` for that. Re\-running for
5903
+ a repo reuses its source and starts a fresh ingestion.
5904
+
5905
+ Returns once each ingestion has started; check on it with `ingest status`.
5906
+
5907
+ Exit codes:
5908
+ 0 every ingestion started
5909
+ 1 the request failed (auth, network, malformed input)
5910
+ 4 partial success: some repos were skipped or failed to start
5911
+
5912
+ Examples:
5913
+ postman context\-graph ingest git https://github.com/acme/billing\-api
5914
+ postman context\-graph ingest git git@github.com:acme/billing\-api.git \-\-json
5915
+ postman context\-graph ingest git \-\-all\-git\-linked\-workspaces
5916
+ postman context\-graph ingest git \-\-all\-git\-linked\-workspaces \-\-tag payments \-\-tag prod
5917
+
5918
+
5919
+
5920
+ .SS "context\-graph ingest workspaces"
5921
+ Onboard Postman workspaces into your team's Context Graph.
5922
+
5923
+ .B Usage:
5924
+ [options]
5925
+
5926
+ .B Options:
5927
+ .TP
5928
+ .B \-w, \-\-workspace <id>
5929
+ Workspace to onboard. Repeatable. Omit to onboard the team's git\-linked workspaces
5930
+ .TP
5931
+ .B \-\-top <n>
5932
+ Cap how many workspaces this call onboards
5933
+ .TP
5934
+ .B \-\-ttl <seconds>
5935
+ Override the service's default TTL, in seconds
5936
+ .TP
5937
+ .B \-\-api\-key <key>
5938
+ Postman API key (falls back to POSTMAN_API_KEY, then a `postman login` session)
5939
+ .TP
5940
+ .B \-\-json
5941
+ Output the onboarding response as JSON
5942
+
5943
+ .TP Examples:
5944
+
5945
+ This indexes each workspace's specs, collections and environments, not its
5946
+ linked repo's code; use `ingest git` for that. Without \-\-workspace, the
5947
+ service onboards the team's git\-linked workspaces. Re\-running for a
5948
+ workspace reuses its source and starts a fresh ingestion.
5949
+
5950
+ Returns once each ingestion has started; check on it with `ingest status`.
5951
+
5952
+ Exit codes:
5953
+ 0 every ingestion started
5954
+ 1 the request failed (auth, network, malformed input)
5955
+ 4 partial success: some workspaces failed to start
5956
+
5957
+ Examples:
5958
+ postman context\-graph ingest workspaces
5959
+ postman context\-graph ingest workspaces \-\-top 10
5960
+ postman context\-graph ingest workspaces \-w 1f0df51a\-8658\-4ee8\-a2a1\-d2567dfa09a9 \-\-json
5961
+
5962
+
5963
+
5964
+ .SS "context\-graph ingest status"
5965
+ Check ingestion progress for the team, or for one source.
5966
+
5967
+ .B Usage:
5968
+ [options]
5969
+
5970
+ .B Options:
5971
+ .TP
5972
+ .B \-\-source <sourceId>
5973
+ Show one source's jobs, by the source id `ingest git` or `ingest workspaces` printed
5974
+ .TP
5975
+ .B \-\-api\-key <key>
5976
+ Postman API key (falls back to POSTMAN_API_KEY, then a `postman login` session)
5977
+ .TP
5978
+ .B \-\-json
5979
+ Output the service response as JSON
5980
+
5981
+ .TP Examples:
5982
+
5983
+ Without \-\-source, prints the team\-wide rollup by each source's latest job
5984
+ status. Returns immediately; it does not wait for ingestion to finish.
5985
+
5986
+ Exit codes:
5987
+ 0 the status was fetched
5988
+ 1 the request failed (auth, network, malformed input)
5989
+
5990
+ Examples:
5991
+ postman context\-graph ingest status
5992
+ postman context\-graph ingest status \-\-source <sourceId> \-\-json
5993
+
5994
+
5995
+
5491
5996
  .SS "search"
5492
5997
  Search for Postman element types (requests, collections, workspaces, and more).
5493
5998
 
@@ -6555,7 +7060,7 @@ Add a datasource to a dataset.
6555
7060
  Dataset to add the source to; positional target is also accepted for v1.45 compatibility
6556
7061
  .TP
6557
7062
  .B \-n, \-\-name <name>
6558
- Logical name for the source (becomes the SQL table name). Required for every source except a spreadsheet, whose worksheets are each named source_<worksheet>
7063
+ 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>
6559
7064
  .TP
6560
7065
  .B \-\-source\-id <uuid>
6561
7066
  Override the generated source id (local dataset only)
@@ -6633,7 +7138,7 @@ DB password. WARNING: a literal value is visible in `ps` output and shell histor
6633
7138
  DB database name
6634
7139
  .TP
6635
7140
  .B \-\-table <table>
6636
- DB table name (required for sqlserver)
7141
+ 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>`
6637
7142
  .TP
6638
7143
  .B \-\-ssh\-host <host>
6639
7144
  SSH bastion host
@@ -6859,7 +7364,7 @@ Update DB password. WARNING: a literal value is visible in `ps` output and shell
6859
7364
  Update DB database name
6860
7365
  .TP
6861
7366
  .B \-\-table <table>
6862
- Update DB table name
7367
+ 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>`
6863
7368
  .TP
6864
7369
  .B \-\-ssh\-host <host>
6865
7370
  Update SSH bastion host
@@ -7251,6 +7756,9 @@ Manage workspace dependencies (Postman entities reused from other workspaces).
7251
7756
  .B dependency add
7252
7757
  Add a Postman collection, environment, or mock as a workspace dependency.
7253
7758
  .TP
7759
+ .B dependency get
7760
+ Show a declared workspace dependency from .postman/resources.yaml.
7761
+ .TP
7254
7762
  .B dependency list
7255
7763
  List the workspace dependencies declared in .postman/resources.yaml.
7256
7764
  .TP
@@ -7289,6 +7797,29 @@ Examples:
7289
7797
 
7290
7798
 
7291
7799
 
7800
+ .SS "dependency get"
7801
+ Show a declared workspace dependency from .postman/resources.yaml.
7802
+
7803
+ .B Usage:
7804
+ [options] <nameOrId>
7805
+
7806
+ .B Options:
7807
+ .TP
7808
+ .B \-\-type <type>
7809
+ Only match dependencies of this type (collection, environment, or mock).
7810
+ .TP
7811
+ .B \-\-json
7812
+ Output the result as JSON.
7813
+
7814
+ .TP Examples:
7815
+
7816
+ Examples:
7817
+ postman dependency get Payments
7818
+ postman dependency get 844951\-51ea04bb\-8d1a\-439e\-aa70\-fe91852efcda
7819
+ postman dependency get Prod \-\-type environment \-\-json
7820
+
7821
+
7822
+
7292
7823
  .SS "dependency list"
7293
7824
  List the workspace dependencies declared in .postman/resources.yaml.
7294
7825
 
@@ -7406,12 +7937,15 @@ Create and manage Postman secrets in a team's shared vault.
7406
7937
  .TP
7407
7938
  .B secret create
7408
7939
  Create a secret in a team's shared vault.
7940
+ .TP
7941
+ .B secret list
7942
+ List the secrets in a workspace's shared vault: key, secret id, vault id, and allowed domains.
7409
7943
 
7410
7944
  .SS "secret create"
7411
7945
  Create a secret in a team's shared vault.
7412
7946
 
7413
7947
  .B Usage:
7414
- [options] <key>
7948
+ [options] <keys...>
7415
7949
 
7416
7950
  .B Options:
7417
7951
  .TP
@@ -7424,15 +7958,24 @@ Postman workspace ID (falls back to .postman/resources.yaml or .postman/config.j
7424
7958
  .B \-\-api\-key <key>
7425
7959
  Postman API key
7426
7960
  .TP
7961
+ .B \-\-terminal
7962
+ Enter one secret value through the terminal instead of the default browser form
7963
+ .TP
7427
7964
  .B \-\-value\-stdin
7428
- Read the secret value from stdin instead of prompting
7965
+ Read the secret value from stdin instead of prompting; implies \-\-terminal
7966
+ .TP
7967
+ .B \-\-timeout <seconds>
7968
+ Seconds to wait for the browser form (default 300)
7429
7969
 
7430
7970
  .TP Examples:
7431
7971
 
7972
+ By default, values are entered in a one\-time browser form;
7973
+ the CLI prints only names and ids.
7974
+
7432
7975
  The secret value is never accepted as a command\-line argument. Provide it via:
7433
- \- an interactive masked prompt (default, when stdin is a terminal)
7434
- \- piped stdin: printf '%s' 's3cr3t' | postman secret create MY_SECRET
7435
- \- \-\-value\-stdin (explicit, same as piping)
7976
+ \- the browser form (default; accepts one or more names)
7977
+ \- \-\-terminal for an interactive masked prompt (one name only)
7978
+ \- \-\-value\-stdin to read stdin exactly (one name only)
7436
7979
 
7437
7980
  Examples:
7438
7981
  postman secret create MY_SECRET \-\-team\-id 451 \-\-workspace 00000000\-0000\-0000\-0000\-000000000000
@@ -7440,6 +7983,36 @@ Examples:
7440
7983
 
7441
7984
 
7442
7985
 
7986
+ .SS "secret list"
7987
+ List the secrets in a workspace's shared vault: key, secret id, vault id, and allowed domains.
7988
+
7989
+ .B Usage:
7990
+ [options]
7991
+
7992
+ .B Options:
7993
+ .TP
7994
+ .B \-w, \-\-workspace <workspaceId>
7995
+ Postman workspace ID (falls back to .postman/resources.yaml or .postman/config.json)
7996
+ .TP
7997
+ .B \-\-api\-key <key>
7998
+ Postman API key
7999
+ .TP
8000
+ .B \-\-json
8001
+ Print the list as machine\-readable JSON.
8002
+
8003
+ .TP Examples:
8004
+
8005
+ Only each secret's key, secret id, vault id, and allowed domains are returned — never its value.
8006
+ Pass the secret id and vault id to `postman environment var set \-\-secret\-id \-\-vault\-id`
8007
+ to link an environment variable to one.
8008
+ An empty allowed domains list means the secret may be used with all domains.
8009
+
8010
+ Examples:
8011
+ postman secret list \-\-workspace 00000000\-0000\-0000\-0000\-000000000000
8012
+ postman secret list \-\-json
8013
+
8014
+
8015
+
7443
8016
  .SH SEE ALSO
7444
8017
  Full documentation: https://learning.postman.com/docs/postman\-cli/postman\-cli\-overview/
7445
8018
  .SH AUTHOR
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "postman-cli",
3
- "version": "1.70.0",
3
+ "version": "1.73.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.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"
65
+ "@postman/pm-bin-macos-arm64": "1.73.0",
66
+ "@postman/pm-bin-macos-x64": "1.73.0",
67
+ "@postman/pm-bin-linux-x64": "1.73.0",
68
+ "@postman/pm-bin-linux-arm64": "1.73.0",
69
+ "@postman/pm-bin-windows-x64": "1.73.0"
70
70
  }
71
71
  }