postman-cli 1.70.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 (2) hide show
  1. package/man/postman.1 +343 -12
  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-08" "v1.71.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
 
@@ -1379,6 +1411,9 @@ List environments in a Postman workspace.
1379
1411
  .B environment get
1380
1412
  Read an environment by ID or local environment file path.
1381
1413
  .TP
1414
+ .B environment delete
1415
+ Delete an environment by ID or local environment file path. Prompts unless \-\-yes is passed.
1416
+ .TP
1382
1417
  .B environment var
1383
1418
  Read and update environment variables.
1384
1419
  .TP
@@ -1472,6 +1507,32 @@ Examples:
1472
1507
 
1473
1508
 
1474
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
1533
+
1534
+
1535
+
1475
1536
  .SS "environment var"
1476
1537
  Read and update environment variables.
1477
1538
 
@@ -1601,16 +1662,160 @@ Examples:
1601
1662
 
1602
1663
 
1603
1664
  .SS "globals"
1604
- 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.
1605
1666
 
1606
1667
  .B Usage:
1607
1668
  [options] [command]
1608
1669
 
1609
1670
  .B Subcommands:
1610
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
1611
1678
  .B globals lint
1612
1679
  Run linting on a local Postman globals file at the given file or directory path.
1613
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
+
1614
1819
  .SS "globals lint"
1615
1820
  Run linting on a local Postman globals file at the given file or directory path.
1616
1821
 
@@ -3155,6 +3360,9 @@ Run a performance test on a collection
3155
3360
  .TP
3156
3361
  .B performance list
3157
3362
  List past performance runs for a collection, newest first.
3363
+ .TP
3364
+ .B performance get
3365
+ Get one performance run by ID.
3158
3366
 
3159
3367
  .SS "performance run"
3160
3368
  Run a performance test on a collection
@@ -3340,8 +3548,11 @@ Collection ID whose performance runs to list
3340
3548
  .B \-\-cursor <token>
3341
3549
  Pagination cursor from a previous page's response
3342
3550
  .TP
3551
+ .B \-\-output <format>
3552
+ Output format: table (default) or json (default: table)
3553
+ .TP
3343
3554
  .B \-\-json
3344
- Output as JSON instead of a table
3555
+ Alias for \-\-output json
3345
3556
  .TP
3346
3557
  .B \-\-timeout <ms>
3347
3558
  Milliseconds to wait for the service before failing (default: 30000)
@@ -3350,7 +3561,7 @@ Milliseconds to wait for the service before failing (default: 30000)
3350
3561
 
3351
3562
  Examples:
3352
3563
  postman performance list \-\-collection\-id 1402295\-45159473\-1e45\-1f34\-5678\-1234567890ab
3353
- postman performance list \-c 1402295\-45159473\-1e45\-1f34\-5678\-1234567890ab \-\-json
3564
+ postman performance list \-c 1402295\-45159473\-1e45\-1f34\-5678\-1234567890ab \-\-output json
3354
3565
  postman performance list \-c 1402295\-45159473\-1e45\-1f34\-5678\-1234567890ab \-\-cursor eyJpZCI6...
3355
3566
 
3356
3567
  The newest 25 runs are returned. A `\-` in Duration means the run has not finished yet.
@@ -3360,6 +3571,32 @@ while one is offered.
3360
3571
  Authentication uses POSTMAN_API_KEY, or the `postman login` session.
3361
3572
 
3362
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
+
3363
3600
  .SS "flows"
3364
3601
  Manage and interact with flows.
3365
3602
 
@@ -5051,6 +5288,27 @@ Do not record this run in the simulation's start history
5051
5288
  .TP
5052
5289
  .B \-\-output <format>
5053
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.
5054
5312
 
5055
5313
  .TP Examples:
5056
5314
 
@@ -5063,6 +5321,11 @@ All member mocks share one address. With path routing (default) the first path s
5063
5321
 
5064
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.
5065
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
+
5066
5329
 
5067
5330
  .SS "simulation push"
5068
5331
  Upload a simulation from your repository to Postman cloud (creates it the first time, updates it after). Its member mocks are pushed too.
@@ -6555,7 +6818,7 @@ Add a datasource to a dataset.
6555
6818
  Dataset to add the source to; positional target is also accepted for v1.45 compatibility
6556
6819
  .TP
6557
6820
  .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>
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>
6559
6822
  .TP
6560
6823
  .B \-\-source\-id <uuid>
6561
6824
  Override the generated source id (local dataset only)
@@ -6633,7 +6896,7 @@ DB password. WARNING: a literal value is visible in `ps` output and shell histor
6633
6896
  DB database name
6634
6897
  .TP
6635
6898
  .B \-\-table <table>
6636
- 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>`
6637
6900
  .TP
6638
6901
  .B \-\-ssh\-host <host>
6639
6902
  SSH bastion host
@@ -6859,7 +7122,7 @@ Update DB password. WARNING: a literal value is visible in `ps` output and shell
6859
7122
  Update DB database name
6860
7123
  .TP
6861
7124
  .B \-\-table <table>
6862
- 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>`
6863
7126
  .TP
6864
7127
  .B \-\-ssh\-host <host>
6865
7128
  Update SSH bastion host
@@ -7251,6 +7514,9 @@ Manage workspace dependencies (Postman entities reused from other workspaces).
7251
7514
  .B dependency add
7252
7515
  Add a Postman collection, environment, or mock as a workspace dependency.
7253
7516
  .TP
7517
+ .B dependency get
7518
+ Show a declared workspace dependency from .postman/resources.yaml.
7519
+ .TP
7254
7520
  .B dependency list
7255
7521
  List the workspace dependencies declared in .postman/resources.yaml.
7256
7522
  .TP
@@ -7289,6 +7555,29 @@ Examples:
7289
7555
 
7290
7556
 
7291
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
+
7292
7581
  .SS "dependency list"
7293
7582
  List the workspace dependencies declared in .postman/resources.yaml.
7294
7583
 
@@ -7406,12 +7695,15 @@ Create and manage Postman secrets in a team's shared vault.
7406
7695
  .TP
7407
7696
  .B secret create
7408
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.
7409
7701
 
7410
7702
  .SS "secret create"
7411
7703
  Create a secret in a team's shared vault.
7412
7704
 
7413
7705
  .B Usage:
7414
- [options] <key>
7706
+ [options] <keys...>
7415
7707
 
7416
7708
  .B Options:
7417
7709
  .TP
@@ -7424,15 +7716,24 @@ Postman workspace ID (falls back to .postman/resources.yaml or .postman/config.j
7424
7716
  .B \-\-api\-key <key>
7425
7717
  Postman API key
7426
7718
  .TP
7719
+ .B \-\-terminal
7720
+ Enter one secret value through the terminal instead of the default browser form
7721
+ .TP
7427
7722
  .B \-\-value\-stdin
7428
- 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)
7429
7727
 
7430
7728
  .TP Examples:
7431
7729
 
7730
+ By default, values are entered in a one\-time browser form;
7731
+ the CLI prints only names and ids.
7732
+
7432
7733
  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)
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)
7436
7737
 
7437
7738
  Examples:
7438
7739
  postman secret create MY_SECRET \-\-team\-id 451 \-\-workspace 00000000\-0000\-0000\-0000\-000000000000
@@ -7440,6 +7741,36 @@ Examples:
7440
7741
 
7441
7742
 
7442
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
+
7443
7774
  .SH SEE ALSO
7444
7775
  Full documentation: https://learning.postman.com/docs/postman\-cli/postman\-cli\-overview/
7445
7776
  .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.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.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.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
  }