postman-cli 1.71.0 → 1.74.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 +307 -17
- 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-13" "v1.74.0" "Postman CLI Manual"
|
|
2
2
|
.SH NAME
|
|
3
3
|
postman \- Command\-line companion utility for Postman
|
|
4
4
|
.SH SYNOPSIS
|
|
@@ -63,6 +63,9 @@ Sign up to keep the work you created as a guest (claims your guest workspace). W
|
|
|
63
63
|
.B \-\-guest
|
|
64
64
|
Start working as an anonymous guest instead of signing up — no account or browser needed, so it works anywhere. Your work is saved to a temporary workspace you can keep later by running `postman signup`.
|
|
65
65
|
.TP
|
|
66
|
+
.B \-\-no\-push
|
|
67
|
+
Do not push local work to your guest workspace before signing up. By default, work saved under postman/ is pushed first, so the workspace you keep is not empty.
|
|
68
|
+
.TP
|
|
66
69
|
.B \-\-json
|
|
67
70
|
Print the sign\-up details as machine\-readable JSON.
|
|
68
71
|
|
|
@@ -1363,28 +1366,22 @@ Show detailed information of collection run and each request sent
|
|
|
1363
1366
|
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
1367
|
.TP
|
|
1365
1368
|
.B \-\-port <port>
|
|
1366
|
-
Port for the \-\-mock server (e.g. 4010), or "auto" for a free one. Defaults to the
|
|
1369
|
+
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
1370
|
.TP
|
|
1368
1371
|
.B \-\-use\-mock <mapping>
|
|
1369
1372
|
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
1373
|
.TP
|
|
1371
|
-
.B \-\-
|
|
1372
|
-
|
|
1373
|
-
.TP
|
|
1374
|
-
.B \-\-simulation <id>
|
|
1375
|
-
Simulation id to record start history against when using \-\-simulate.
|
|
1376
|
-
.TP
|
|
1377
|
-
.B \-\-simulate\-workspace <id>
|
|
1378
|
-
Workspace that owns the \-\-simulate run, for recording its start history.
|
|
1374
|
+
.B \-\-simulation <pathOrId>
|
|
1375
|
+
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).
|
|
1379
1376
|
.TP
|
|
1380
|
-
.B \-\-
|
|
1381
|
-
|
|
1377
|
+
.B \-w, \-\-workspace <workspaceId>
|
|
1378
|
+
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
1379
|
.TP
|
|
1383
1380
|
.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)
|
|
1381
|
+
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
1382
|
.TP
|
|
1386
1383
|
.B \-\-no\-report\-events
|
|
1387
|
-
Do not dispatch run events to the API Catalog and Application Inventory ingestion pipelines
|
|
1384
|
+
Do not dispatch run events (results, \-\-simulation start history, and analytics) to the API Catalog and Application Inventory ingestion pipelines
|
|
1388
1385
|
|
|
1389
1386
|
.TP Examples:
|
|
1390
1387
|
Eg. postman collection run 123456\-45159473\-1e45\-1f34\-5678\-1234567890ab
|
|
@@ -2054,12 +2051,18 @@ Run linting on the given specification by ID or local file path.
|
|
|
2054
2051
|
.B \-f, \-\-fail\-severity <value>
|
|
2055
2052
|
Results of this level or above will trigger a failure exit code. [choices: "error", "warning", "info", "hint"] (default: ERROR)
|
|
2056
2053
|
.TP
|
|
2054
|
+
.B \-\-issueType <value>
|
|
2055
|
+
Limit linting to a specific issue type. [choices: "syntax"]
|
|
2056
|
+
.TP
|
|
2057
2057
|
.B \-o, \-\-output <value>
|
|
2058
2058
|
Output format for the results. [choices: "json", "csv"]
|
|
2059
2059
|
.TP
|
|
2060
2060
|
.B \-\-workspace\-id <value>
|
|
2061
2061
|
The workspace ID to use for fetching governance rulesets.
|
|
2062
2062
|
.TP
|
|
2063
|
+
.B \-\-ruleset <path>
|
|
2064
|
+
Lint against a local Spectral ruleset.
|
|
2065
|
+
.TP
|
|
2063
2066
|
.B \-\-report\-events
|
|
2064
2067
|
Dispatch events to the API Catalog and Application Inventory ingestion pipelines (on by default)
|
|
2065
2068
|
.TP
|
|
@@ -2369,12 +2372,16 @@ Collection ID to sync (required for cloud mode)
|
|
|
2369
2372
|
Postman API key
|
|
2370
2373
|
.TP
|
|
2371
2374
|
.B \-\-force
|
|
2372
|
-
Overwrite hand\-written scripts that the spec would otherwise drop
|
|
2375
|
+
Overwrite hand\-written scripts, headers and descriptions that the spec would otherwise drop
|
|
2376
|
+
.TP
|
|
2377
|
+
.B \-\-dry\-run
|
|
2378
|
+
Report what sync would change and remove without writing anything
|
|
2373
2379
|
|
|
2374
2380
|
.TP Examples:
|
|
2375
2381
|
|
|
2376
2382
|
Examples:
|
|
2377
2383
|
postman spec sync collection ./postman/specs/My\e API/index.yaml
|
|
2384
|
+
postman spec sync collection ./postman/specs/My\e API/index.yaml \-\-dry\-run
|
|
2378
2385
|
postman spec sync collection 12345\-spec\-id \-\-collection\-id 67890\-col\-id
|
|
2379
2386
|
|
|
2380
2387
|
|
|
@@ -3356,7 +3363,7 @@ Manage performance tests on your collections.
|
|
|
3356
3363
|
.B Subcommands:
|
|
3357
3364
|
.TP
|
|
3358
3365
|
.B performance run
|
|
3359
|
-
Run a performance test on a collection
|
|
3366
|
+
Run a performance test on a collection (cloud collection UID or local collection path)
|
|
3360
3367
|
.TP
|
|
3361
3368
|
.B performance list
|
|
3362
3369
|
List past performance runs for a collection, newest first.
|
|
@@ -3365,7 +3372,7 @@ List past performance runs for a collection, newest first.
|
|
|
3365
3372
|
Get one performance run by ID.
|
|
3366
3373
|
|
|
3367
3374
|
.SS "performance run"
|
|
3368
|
-
Run a performance test on a collection
|
|
3375
|
+
Run a performance test on a collection (cloud collection UID or local collection path)
|
|
3369
3376
|
|
|
3370
3377
|
.B Usage:
|
|
3371
3378
|
<collectionId> [options]
|
|
@@ -3461,6 +3468,7 @@ Pass \-\-dataset multiple times to load several .dataset.yaml files (or director
|
|
|
3461
3468
|
|
|
3462
3469
|
Examples:
|
|
3463
3470
|
postman performance run 123456\-45159473\-1e45\-1f34\-5678\-1234567890ab # defaults: 20 VUs, ramp\-up, 1 minute
|
|
3471
|
+
postman performance run "postman/collections/My Collection" \-\-peak\-vu 10 \-\-duration 2 # a local collection, recorded only when git\-linked
|
|
3464
3472
|
postman performance run <collectionId> \-\-load\-profile fixed \-\-peak\-vu 50 \-\-duration 15 # 50 VUs, flat
|
|
3465
3473
|
postman performance run <collectionId> \-\-load\-profile spike \-\-peak\-vu 100 \-\-base\-vu 2 \-\-duration 5 \-\-load\-segments 1m30s,20s,40s
|
|
3466
3474
|
postman performance run <collectionId> \-\-pass\-if "less_than(p95, 500)" \-\-pass\-if "less_than(error_rate, 5)" # fail if p95 is over 500ms or error rate is over 5%
|
|
@@ -3620,6 +3628,9 @@ Run a single flow from a file (e.g. ./path/to/flow.json)
|
|
|
3620
3628
|
.B flows update
|
|
3621
3629
|
Update settings for a deployed flow
|
|
3622
3630
|
.TP
|
|
3631
|
+
.B flows delete
|
|
3632
|
+
Delete a flow. A flow id deletes the cloud flow; a local flow file path deletes that file only. Prompts for confirmation unless \-\-yes is passed.
|
|
3633
|
+
.TP
|
|
3623
3634
|
.B flows list-runs
|
|
3624
3635
|
List run history for a deployed flow
|
|
3625
3636
|
.TP
|
|
@@ -3876,6 +3887,36 @@ Examples:
|
|
|
3876
3887
|
|
|
3877
3888
|
|
|
3878
3889
|
|
|
3890
|
+
.SS "flows delete"
|
|
3891
|
+
Delete a flow. A flow id deletes the cloud flow; a local flow file path deletes that file only. Prompts for confirmation unless \-\-yes is passed.
|
|
3892
|
+
|
|
3893
|
+
.B Usage:
|
|
3894
|
+
<flowIdOrPath> [options]
|
|
3895
|
+
|
|
3896
|
+
.B Options:
|
|
3897
|
+
.TP
|
|
3898
|
+
.B \-y, \-\-yes
|
|
3899
|
+
Skip the confirmation prompt
|
|
3900
|
+
.TP
|
|
3901
|
+
.B \-\-verbose
|
|
3902
|
+
Verbose output
|
|
3903
|
+
.TP
|
|
3904
|
+
.B \-\-debug
|
|
3905
|
+
Debug output
|
|
3906
|
+
.TP
|
|
3907
|
+
.B \-\-json
|
|
3908
|
+
JSON output
|
|
3909
|
+
|
|
3910
|
+
.TP Examples:
|
|
3911
|
+
|
|
3912
|
+
Examples:
|
|
3913
|
+
postman flows delete 6a04d32ec3c97f7f2fafc386
|
|
3914
|
+
postman flows delete 6a04d32ec3c97f7f2fafc386 \-\-yes
|
|
3915
|
+
postman flows delete ./postman/flows/my\-flow.json
|
|
3916
|
+
postman flows delete 6a04d32ec3c97f7f2fafc386 \-\-yes \-\-json
|
|
3917
|
+
|
|
3918
|
+
|
|
3919
|
+
|
|
3879
3920
|
.SS "flows list\-runs"
|
|
3880
3921
|
List run history for a deployed flow
|
|
3881
3922
|
|
|
@@ -4711,6 +4752,9 @@ Name for the mock. Taken from the source when you provide one; required for the
|
|
|
4711
4752
|
.B \-\-port <port>
|
|
4712
4753
|
Port the mock runs on (e.g. 4010) (default: 4500)
|
|
4713
4754
|
.TP
|
|
4755
|
+
.B \-\-stateful
|
|
4756
|
+
Generate pm.state\-backed CRUD handlers (create/read/list/update/delete) instead of static example responses. Endpoints that are not CRUD\-shaped stay static. Applies to collection or spec sources.
|
|
4757
|
+
.TP
|
|
4714
4758
|
.B \-\-force
|
|
4715
4759
|
Overwrite the mock's files if the target folder already has one
|
|
4716
4760
|
.TP
|
|
@@ -4732,6 +4776,7 @@ Eg. postman mock generate ./my\-collection.json
|
|
|
4732
4776
|
postman mock generate \-\-name "My Mock" # sample shopping\-cart mock
|
|
4733
4777
|
postman mock generate \-\-name "My Mock" \-\-port 4010 # sample mock, custom port
|
|
4734
4778
|
postman mock generate ./openapi.yaml \-\-output ./postman/mocks/api \-\-port 4010
|
|
4779
|
+
postman mock generate ./openapi.yaml \-\-stateful # CRUD handlers backed by pm.state
|
|
4735
4780
|
postman mock generate ./my\-collection.json \-\-update ./postman/mocks/orders
|
|
4736
4781
|
postman mock generate ./my\-collection.json \-w 12345678\-90ab\-cdef\-1234\-567890abcdef # save to Postman cloud
|
|
4737
4782
|
|
|
@@ -5160,6 +5205,12 @@ Upload a simulation from your repository to Postman cloud (creates it the first
|
|
|
5160
5205
|
.B simulation deploy
|
|
5161
5206
|
Turn a simulation in Postman cloud into a live mock server others can call over the internet.
|
|
5162
5207
|
.TP
|
|
5208
|
+
.B simulation update
|
|
5209
|
+
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).
|
|
5210
|
+
.TP
|
|
5211
|
+
.B simulation log
|
|
5212
|
+
Show the requests a deployed simulation has received and the responses it sent, using its mock server id.
|
|
5213
|
+
.TP
|
|
5163
5214
|
.B simulation delete
|
|
5164
5215
|
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
5216
|
|
|
@@ -5388,6 +5439,91 @@ Eg. postman simulation deploy 12345678\-90ab\-cdef\-1234\-567890abcdef # asks
|
|
|
5388
5439
|
Don't have the simulation in Postman cloud yet? Upload it first with `postman simulation push`.
|
|
5389
5440
|
|
|
5390
5441
|
|
|
5442
|
+
.SS "simulation update"
|
|
5443
|
+
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).
|
|
5444
|
+
|
|
5445
|
+
.B Usage:
|
|
5446
|
+
<simIdOrPath> [options]
|
|
5447
|
+
|
|
5448
|
+
.B Options:
|
|
5449
|
+
.TP
|
|
5450
|
+
.B \-n, \-\-name <name>
|
|
5451
|
+
Rename the simulation
|
|
5452
|
+
.TP
|
|
5453
|
+
.B \-\-routing <header|path>
|
|
5454
|
+
Switch routing: header or path
|
|
5455
|
+
.TP
|
|
5456
|
+
.B \-\-add\-mock <mockIdOrPath>
|
|
5457
|
+
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: )
|
|
5458
|
+
.TP
|
|
5459
|
+
.B \-\-route\-key <mockIdOrPath=routeKey>
|
|
5460
|
+
Change a member mock's address (repeatable), e.g. ./postman/mocks/payments=payments (default: )
|
|
5461
|
+
.TP
|
|
5462
|
+
.B \-\-api\-key <key>
|
|
5463
|
+
Postman API key (defaults to your `postman login` session)
|
|
5464
|
+
.TP
|
|
5465
|
+
.B \-\-json
|
|
5466
|
+
Print the update as machine\-readable data instead of a table
|
|
5467
|
+
|
|
5468
|
+
.TP Examples:
|
|
5469
|
+
|
|
5470
|
+
Eg. postman simulation update ./postman/simulations/checkout.sim.yaml \-n "Checkout v2"
|
|
5471
|
+
postman simulation update ./postman/simulations/checkout.sim.yaml \-\-add\-mock ./postman/mocks/refunds
|
|
5472
|
+
postman simulation update ./postman/simulations/checkout.sim.yaml \-\-route\-key ./postman/mocks/payments=pay
|
|
5473
|
+
postman simulation update 12345678\-90ab\-cdef\-1234\-567890abcdef \-\-routing header \-\-json
|
|
5474
|
+
|
|
5475
|
+
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.
|
|
5476
|
+
|
|
5477
|
+
Renaming a repository simulation (\-n) also renames its .sim.yaml file to match.
|
|
5478
|
+
|
|
5479
|
+
|
|
5480
|
+
.SS "simulation log"
|
|
5481
|
+
Show the requests a deployed simulation has received and the responses it sent, using its mock server id.
|
|
5482
|
+
|
|
5483
|
+
.B Usage:
|
|
5484
|
+
<mockServerId> [options]
|
|
5485
|
+
|
|
5486
|
+
.B Options:
|
|
5487
|
+
.TP
|
|
5488
|
+
.B \-\-mock <routeKey>
|
|
5489
|
+
Show only requests served by this member (by routeKey). Repeat the flag for several members (default: )
|
|
5490
|
+
.TP
|
|
5491
|
+
.B \-\-limit <n>
|
|
5492
|
+
Most entries to show (defaults to 50 when printing machine\-readable output)
|
|
5493
|
+
.TP
|
|
5494
|
+
.B \-\-method <method>
|
|
5495
|
+
Show only requests of this type (e.g. GET, POST)
|
|
5496
|
+
.TP
|
|
5497
|
+
.B \-\-status <code|range>
|
|
5498
|
+
Show only these response codes (e.g. 404, or 5xx for any 500\-series)
|
|
5499
|
+
.TP
|
|
5500
|
+
.B \-\-path <pattern>
|
|
5501
|
+
Show only requests to matching addresses (use * and ? as wildcards, e.g. /users/*)
|
|
5502
|
+
.TP
|
|
5503
|
+
.B \-\-since <duration>
|
|
5504
|
+
Show entries from this long ago until now (e.g. 2h = the last 2 hours)
|
|
5505
|
+
.TP
|
|
5506
|
+
.B \-\-until <duration>
|
|
5507
|
+
Hide entries newer than this (e.g. 30m = skip the most recent 30 minutes)
|
|
5508
|
+
.TP
|
|
5509
|
+
.B \-\-api\-key <key>
|
|
5510
|
+
Postman API key (defaults to your `postman login` session)
|
|
5511
|
+
.TP
|
|
5512
|
+
.B \-\-json
|
|
5513
|
+
Print entries as machine\-readable data instead of the scrollable view
|
|
5514
|
+
|
|
5515
|
+
.TP Examples:
|
|
5516
|
+
|
|
5517
|
+
mockServerId is the id of the deployed simulation (get it from `postman simulation deploy` or `postman simulation get`).
|
|
5518
|
+
A member's routeKey is shown under "Mocks:" in `postman simulation get`.
|
|
5519
|
+
|
|
5520
|
+
Eg. postman simulation log 12345678\-90ab\-cdef\-1234\-567890abcdef # scroll through entries
|
|
5521
|
+
postman simulation log <mockServerId> \-\-mock checkout # one member
|
|
5522
|
+
postman simulation log <mockServerId> \-\-mock checkout \-\-mock payments # several members
|
|
5523
|
+
postman simulation log <mockServerId> \-\-mock checkout \-\-status 5xx \-\-json
|
|
5524
|
+
postman simulation log <mockServerId> \-\-since 7h \-\-until 2h # between 7h and 2h ago
|
|
5525
|
+
|
|
5526
|
+
|
|
5391
5527
|
.SS "simulation delete"
|
|
5392
5528
|
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
5529
|
|
|
@@ -5657,6 +5793,8 @@ The team a query runs against is derived from your API key.
|
|
|
5657
5793
|
answer arrives. Without \-\-wait, `ask` returns an id immediately and
|
|
5658
5794
|
`status <askId>` checks on it later.
|
|
5659
5795
|
|
|
5796
|
+
`ingest` onboards repos and workspaces into the graph.
|
|
5797
|
+
|
|
5660
5798
|
|
|
5661
5799
|
|
|
5662
5800
|
.B Subcommands:
|
|
@@ -5666,6 +5804,9 @@ Ask a natural\-language question about your team's Context Graph.
|
|
|
5666
5804
|
.TP
|
|
5667
5805
|
.B context-graph status
|
|
5668
5806
|
Check an ask submitted by `ask`, without blocking. Prints the answer when ready.
|
|
5807
|
+
.TP
|
|
5808
|
+
.B context-graph ingest
|
|
5809
|
+
Onboard repos and workspaces into your team's Context Graph, and check ingestion progress.
|
|
5669
5810
|
|
|
5670
5811
|
.SS "context\-graph ask"
|
|
5671
5812
|
Ask a natural\-language question about your team's Context Graph.
|
|
@@ -5751,6 +5892,155 @@ Examples:
|
|
|
5751
5892
|
|
|
5752
5893
|
|
|
5753
5894
|
|
|
5895
|
+
.SS "context\-graph ingest"
|
|
5896
|
+
Onboard repos and workspaces into your team's Context Graph, and check ingestion progress.
|
|
5897
|
+
|
|
5898
|
+
.B Usage:
|
|
5899
|
+
[options] [command]
|
|
5900
|
+
|
|
5901
|
+
.TP Examples:
|
|
5902
|
+
|
|
5903
|
+
`ingest git` indexes a repo's code; `ingest workspaces` indexes a workspace's
|
|
5904
|
+
specs, collections and environments. Covering both for a git\-linked workspace
|
|
5905
|
+
means running both: `ingest git \-\-all\-git\-linked\-workspaces` only discovers the
|
|
5906
|
+
linked repos, and never ingests the workspace itself.
|
|
5907
|
+
|
|
5908
|
+
|
|
5909
|
+
|
|
5910
|
+
.B Subcommands:
|
|
5911
|
+
.TP
|
|
5912
|
+
.B context-graph ingest git
|
|
5913
|
+
Onboard GitHub repos into your team's Context Graph.
|
|
5914
|
+
.TP
|
|
5915
|
+
.B context-graph ingest workspaces
|
|
5916
|
+
Onboard Postman workspaces into your team's Context Graph.
|
|
5917
|
+
.TP
|
|
5918
|
+
.B context-graph ingest status
|
|
5919
|
+
Check ingestion progress for the team, or for one source.
|
|
5920
|
+
|
|
5921
|
+
.SS "context\-graph ingest git"
|
|
5922
|
+
Onboard GitHub repos into your team's Context Graph.
|
|
5923
|
+
|
|
5924
|
+
.B Usage:
|
|
5925
|
+
[options] [repoUrls...]
|
|
5926
|
+
|
|
5927
|
+
.B Options:
|
|
5928
|
+
.TP
|
|
5929
|
+
.B \-\-all\-git\-linked\-workspaces
|
|
5930
|
+
Also onboard the repo linked to every git\-linked workspace in the team
|
|
5931
|
+
.TP
|
|
5932
|
+
.B \-\-tag <tag>
|
|
5933
|
+
With \-\-all\-git\-linked\-workspaces, only workspaces with this tag. Repeatable, up to 5; all must match
|
|
5934
|
+
.TP
|
|
5935
|
+
.B \-\-ttl <seconds>
|
|
5936
|
+
Override the service's default TTL, in seconds
|
|
5937
|
+
.TP
|
|
5938
|
+
.B \-\-api\-key <key>
|
|
5939
|
+
Postman API key (falls back to POSTMAN_API_KEY, then a `postman login` session)
|
|
5940
|
+
.TP
|
|
5941
|
+
.B \-\-json
|
|
5942
|
+
Output the onboarding response as JSON
|
|
5943
|
+
|
|
5944
|
+
.TP Examples:
|
|
5945
|
+
|
|
5946
|
+
Repo URLs may be in https or git@ SSH form, up to 500 per call. The team is
|
|
5947
|
+
derived from the API key.
|
|
5948
|
+
|
|
5949
|
+
This indexes a repo's code. It never ingests a workspace itself, even with
|
|
5950
|
+
\-\-all\-git\-linked\-workspaces; use `ingest workspaces` for that. Re\-running for
|
|
5951
|
+
a repo reuses its source and starts a fresh ingestion.
|
|
5952
|
+
|
|
5953
|
+
Returns once each ingestion has started; check on it with `ingest status`.
|
|
5954
|
+
|
|
5955
|
+
Exit codes:
|
|
5956
|
+
0 every ingestion started
|
|
5957
|
+
1 the request failed (auth, network, malformed input)
|
|
5958
|
+
4 partial success: some repos were skipped or failed to start
|
|
5959
|
+
|
|
5960
|
+
Examples:
|
|
5961
|
+
postman context\-graph ingest git https://github.com/acme/billing\-api
|
|
5962
|
+
postman context\-graph ingest git git@github.com:acme/billing\-api.git \-\-json
|
|
5963
|
+
postman context\-graph ingest git \-\-all\-git\-linked\-workspaces
|
|
5964
|
+
postman context\-graph ingest git \-\-all\-git\-linked\-workspaces \-\-tag payments \-\-tag prod
|
|
5965
|
+
|
|
5966
|
+
|
|
5967
|
+
|
|
5968
|
+
.SS "context\-graph ingest workspaces"
|
|
5969
|
+
Onboard Postman workspaces into your team's Context Graph.
|
|
5970
|
+
|
|
5971
|
+
.B Usage:
|
|
5972
|
+
[options]
|
|
5973
|
+
|
|
5974
|
+
.B Options:
|
|
5975
|
+
.TP
|
|
5976
|
+
.B \-w, \-\-workspace <id>
|
|
5977
|
+
Workspace to onboard. Repeatable. Omit to onboard the team's git\-linked workspaces
|
|
5978
|
+
.TP
|
|
5979
|
+
.B \-\-top <n>
|
|
5980
|
+
Cap how many workspaces this call onboards
|
|
5981
|
+
.TP
|
|
5982
|
+
.B \-\-ttl <seconds>
|
|
5983
|
+
Override the service's default TTL, in seconds
|
|
5984
|
+
.TP
|
|
5985
|
+
.B \-\-api\-key <key>
|
|
5986
|
+
Postman API key (falls back to POSTMAN_API_KEY, then a `postman login` session)
|
|
5987
|
+
.TP
|
|
5988
|
+
.B \-\-json
|
|
5989
|
+
Output the onboarding response as JSON
|
|
5990
|
+
|
|
5991
|
+
.TP Examples:
|
|
5992
|
+
|
|
5993
|
+
This indexes each workspace's specs, collections and environments, not its
|
|
5994
|
+
linked repo's code; use `ingest git` for that. Without \-\-workspace, the
|
|
5995
|
+
service onboards the team's git\-linked workspaces. Re\-running for a
|
|
5996
|
+
workspace reuses its source and starts a fresh ingestion.
|
|
5997
|
+
|
|
5998
|
+
Returns once each ingestion has started; check on it with `ingest status`.
|
|
5999
|
+
|
|
6000
|
+
Exit codes:
|
|
6001
|
+
0 every ingestion started
|
|
6002
|
+
1 the request failed (auth, network, malformed input)
|
|
6003
|
+
4 partial success: some workspaces failed to start
|
|
6004
|
+
|
|
6005
|
+
Examples:
|
|
6006
|
+
postman context\-graph ingest workspaces
|
|
6007
|
+
postman context\-graph ingest workspaces \-\-top 10
|
|
6008
|
+
postman context\-graph ingest workspaces \-w 1f0df51a\-8658\-4ee8\-a2a1\-d2567dfa09a9 \-\-json
|
|
6009
|
+
|
|
6010
|
+
|
|
6011
|
+
|
|
6012
|
+
.SS "context\-graph ingest status"
|
|
6013
|
+
Check ingestion progress for the team, or for one source.
|
|
6014
|
+
|
|
6015
|
+
.B Usage:
|
|
6016
|
+
[options]
|
|
6017
|
+
|
|
6018
|
+
.B Options:
|
|
6019
|
+
.TP
|
|
6020
|
+
.B \-\-source <sourceId>
|
|
6021
|
+
Show one source's jobs, by the source id `ingest git` or `ingest workspaces` printed
|
|
6022
|
+
.TP
|
|
6023
|
+
.B \-\-api\-key <key>
|
|
6024
|
+
Postman API key (falls back to POSTMAN_API_KEY, then a `postman login` session)
|
|
6025
|
+
.TP
|
|
6026
|
+
.B \-\-json
|
|
6027
|
+
Output the service response as JSON
|
|
6028
|
+
|
|
6029
|
+
.TP Examples:
|
|
6030
|
+
|
|
6031
|
+
Without \-\-source, prints the team\-wide rollup by each source's latest job
|
|
6032
|
+
status. Returns immediately; it does not wait for ingestion to finish.
|
|
6033
|
+
|
|
6034
|
+
Exit codes:
|
|
6035
|
+
0 the status was fetched
|
|
6036
|
+
1 the request failed (auth, network, malformed input)
|
|
6037
|
+
|
|
6038
|
+
Examples:
|
|
6039
|
+
postman context\-graph ingest status
|
|
6040
|
+
postman context\-graph ingest status \-\-source <sourceId> \-\-json
|
|
6041
|
+
|
|
6042
|
+
|
|
6043
|
+
|
|
5754
6044
|
.SS "search"
|
|
5755
6045
|
Search for Postman element types (requests, collections, workspaces, and more).
|
|
5756
6046
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "postman-cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.74.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.74.0",
|
|
66
|
+
"@postman/pm-bin-macos-x64": "1.74.0",
|
|
67
|
+
"@postman/pm-bin-linux-x64": "1.74.0",
|
|
68
|
+
"@postman/pm-bin-linux-arm64": "1.74.0",
|
|
69
|
+
"@postman/pm-bin-windows-x64": "1.74.0"
|
|
70
70
|
}
|
|
71
71
|
}
|