postman-cli 1.71.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.
- package/man/postman.1 +256 -14
- package/package.json +6 -6
package/man/postman.1
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.TH POSTMAN 1 "2026-10-
|
|
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
|
|
@@ -1363,28 +1363,22 @@ Show detailed information of collection run and each request sent
|
|
|
1363
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).
|
|
1364
1364
|
.TP
|
|
1365
1365
|
.B \-\-port <port>
|
|
1366
|
-
Port for the \-\-mock server (e.g. 4010), or "auto" for a free one. Defaults to the
|
|
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.
|
|
1367
1367
|
.TP
|
|
1368
1368
|
.B \-\-use\-mock <mapping>
|
|
1369
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: )
|
|
1370
1370
|
.TP
|
|
1371
|
-
.B \-\-
|
|
1372
|
-
|
|
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).
|
|
1373
1373
|
.TP
|
|
1374
|
-
.B \-\-
|
|
1375
|
-
|
|
1376
|
-
.TP
|
|
1377
|
-
.B \-\-simulate\-workspace <id>
|
|
1378
|
-
Workspace that owns the \-\-simulate run, for recording its start history.
|
|
1379
|
-
.TP
|
|
1380
|
-
.B \-\-no\-simulate\-history
|
|
1381
|
-
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.
|
|
1382
1376
|
.TP
|
|
1383
1377
|
.B \-\-report\-events
|
|
1384
|
-
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)
|
|
1385
1379
|
.TP
|
|
1386
1380
|
.B \-\-no\-report\-events
|
|
1387
|
-
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
|
|
1388
1382
|
|
|
1389
1383
|
.TP Examples:
|
|
1390
1384
|
Eg. postman collection run 123456\-45159473\-1e45\-1f34\-5678\-1234567890ab
|
|
@@ -2054,6 +2048,9 @@ Run linting on the given specification by ID or local file path.
|
|
|
2054
2048
|
.B \-f, \-\-fail\-severity <value>
|
|
2055
2049
|
Results of this level or above will trigger a failure exit code. [choices: "error", "warning", "info", "hint"] (default: ERROR)
|
|
2056
2050
|
.TP
|
|
2051
|
+
.B \-\-issueType <value>
|
|
2052
|
+
Limit linting to a specific issue type. [choices: "syntax"]
|
|
2053
|
+
.TP
|
|
2057
2054
|
.B \-o, \-\-output <value>
|
|
2058
2055
|
Output format for the results. [choices: "json", "csv"]
|
|
2059
2056
|
.TP
|
|
@@ -5160,6 +5157,12 @@ Upload a simulation from your repository to Postman cloud (creates it the first
|
|
|
5160
5157
|
.B simulation deploy
|
|
5161
5158
|
Turn a simulation in Postman cloud into a live mock server others can call over the internet.
|
|
5162
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
|
|
5163
5166
|
.B simulation delete
|
|
5164
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.
|
|
5165
5168
|
|
|
@@ -5388,6 +5391,91 @@ Eg. postman simulation deploy 12345678\-90ab\-cdef\-1234\-567890abcdef # asks
|
|
|
5388
5391
|
Don't have the simulation in Postman cloud yet? Upload it first with `postman simulation push`.
|
|
5389
5392
|
|
|
5390
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
|
+
|
|
5391
5479
|
.SS "simulation delete"
|
|
5392
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.
|
|
5393
5481
|
|
|
@@ -5657,6 +5745,8 @@ The team a query runs against is derived from your API key.
|
|
|
5657
5745
|
answer arrives. Without \-\-wait, `ask` returns an id immediately and
|
|
5658
5746
|
`status <askId>` checks on it later.
|
|
5659
5747
|
|
|
5748
|
+
`ingest` onboards repos and workspaces into the graph.
|
|
5749
|
+
|
|
5660
5750
|
|
|
5661
5751
|
|
|
5662
5752
|
.B Subcommands:
|
|
@@ -5666,6 +5756,9 @@ Ask a natural\-language question about your team's Context Graph.
|
|
|
5666
5756
|
.TP
|
|
5667
5757
|
.B context-graph status
|
|
5668
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.
|
|
5669
5762
|
|
|
5670
5763
|
.SS "context\-graph ask"
|
|
5671
5764
|
Ask a natural\-language question about your team's Context Graph.
|
|
@@ -5751,6 +5844,155 @@ Examples:
|
|
|
5751
5844
|
|
|
5752
5845
|
|
|
5753
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
|
+
|
|
5754
5996
|
.SS "search"
|
|
5755
5997
|
Search for Postman element types (requests, collections, workspaces, and more).
|
|
5756
5998
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "postman-cli",
|
|
3
|
-
"version": "1.
|
|
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.
|
|
66
|
-
"@postman/pm-bin-macos-x64": "1.
|
|
67
|
-
"@postman/pm-bin-linux-x64": "1.
|
|
68
|
-
"@postman/pm-bin-linux-arm64": "1.
|
|
69
|
-
"@postman/pm-bin-windows-x64": "1.
|
|
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
|
}
|