postman-cli 1.76.0 → 1.77.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 +393 -111
- package/package.json +6 -6
- package/scripts/post-npm-installation.js +2 -4
package/man/postman.1
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.TH POSTMAN 1 "2026-10-
|
|
1
|
+
.TH POSTMAN 1 "2026-10-26" "v1.77.0" "Postman CLI Manual"
|
|
2
2
|
.SH NAME
|
|
3
3
|
postman \- Command\-line companion utility for Postman
|
|
4
4
|
.SH SYNOPSIS
|
|
@@ -9,9 +9,9 @@ The Postman CLI is a command\-line companion utility that brings the power of Po
|
|
|
9
9
|
.br
|
|
10
10
|
Note: All commands support the --help option for more information..
|
|
11
11
|
.SH LOCAL AND CLOUD WORKFLOWS
|
|
12
|
-
Postman CLI
|
|
12
|
+
Postman CLI treats the local postman/ folder as the working area for filesystem\-backed entities such as collections, environments, and API specifications. A Postman workspace on the cloud stores that context so it can be retrieved later or shared with other work. Commands that support workspace\-stored resources document the parameter that reads from or writes to a Postman workspace, such as --workspace <id> or an equivalent.
|
|
13
13
|
.br
|
|
14
|
-
|
|
14
|
+
Use postman workspace pull to retrieve workspace context into the folder before work, and postman workspace push to store the folder's updated context back in the workspace.
|
|
15
15
|
.br
|
|
16
16
|
.SH POSTMAN PLUGIN FOR CODING AGENTS
|
|
17
17
|
The Postman plugin provides Postman MCP setup, collection workflows, API discovery, testing, mocks, documentation, and API readiness guidance for supported coding agents.
|
|
@@ -95,9 +95,6 @@ Emit machine\-readable output for agents
|
|
|
95
95
|
.B \-\-dry\-run
|
|
96
96
|
Report what would happen without writing anything
|
|
97
97
|
.TP
|
|
98
|
-
.B \-\-no\-fetch
|
|
99
|
-
Use the skills bundled with this CLI instead of fetching the latest
|
|
100
|
-
.TP
|
|
101
98
|
.B \-\-spec <path>
|
|
102
99
|
Which spec is authoritative, when more than one could be
|
|
103
100
|
.TP
|
|
@@ -114,7 +111,7 @@ Dispatch init events to the API Catalog and Application Inventory ingestion pipe
|
|
|
114
111
|
|
|
115
112
|
No authentication, and safe in CI. Fetches the latest skills over HTTPS,
|
|
116
113
|
falling back to the copy bundled with this CLI if that is unreachable \-
|
|
117
|
-
so it still works offline.
|
|
114
|
+
so it still works offline.
|
|
118
115
|
|
|
119
116
|
Not the same as `postman app init`, which writes a postman.config.cjs
|
|
120
117
|
for test\-traffic capture.
|
|
@@ -317,6 +314,9 @@ Generate artifacts from a collection.
|
|
|
317
314
|
.B collection sync
|
|
318
315
|
Sync artifacts generated from a collection.
|
|
319
316
|
.TP
|
|
317
|
+
.B collection share
|
|
318
|
+
Grant a role on a collection to one or more people.
|
|
319
|
+
.TP
|
|
320
320
|
.B collection request
|
|
321
321
|
Add, get, update, or remove requests in a local v3 collection.
|
|
322
322
|
.TP
|
|
@@ -594,6 +594,36 @@ Examples:
|
|
|
594
594
|
|
|
595
595
|
|
|
596
596
|
|
|
597
|
+
.SS "collection share"
|
|
598
|
+
Grant a role on a collection to one or more people.
|
|
599
|
+
|
|
600
|
+
.B Usage:
|
|
601
|
+
[options] <id>
|
|
602
|
+
|
|
603
|
+
.B Options:
|
|
604
|
+
.TP
|
|
605
|
+
.B \-\-user <email|id>
|
|
606
|
+
Who to share with. Repeatable, and each value may be a comma\-separated list. A value containing @ is treated as an email address, anything else as a Postman user id.
|
|
607
|
+
.TP
|
|
608
|
+
.B \-\-role <viewer|editor>
|
|
609
|
+
The role to grant. (default: viewer)
|
|
610
|
+
.TP
|
|
611
|
+
.B \-\-json
|
|
612
|
+
Print the outcome as machine\-readable JSON.
|
|
613
|
+
.TP
|
|
614
|
+
.B \-\-timeout <ms>
|
|
615
|
+
Milliseconds to wait for Postman. Defaults to 30000.
|
|
616
|
+
.TP
|
|
617
|
+
.B \-\-api\-key <key>
|
|
618
|
+
Postman API key (defaults to your `postman login` session)
|
|
619
|
+
|
|
620
|
+
.TP Examples:
|
|
621
|
+
|
|
622
|
+
Eg. postman collection share 12345678\-0f9a3d1e\-4c2b\-4a77\-9c31\-6b1f2e8d4a05 \-\-user alice@corp.com
|
|
623
|
+
postman collection share 6984fed9bf61ff8f9e097d30 \-\-user alice@corp.com \-\-role editor
|
|
624
|
+
postman collection share 12345678\-0f9a3d1e\-... \-\-user alice@corp.com,bob@corp.com \-\-json
|
|
625
|
+
|
|
626
|
+
|
|
597
627
|
.SS "collection request"
|
|
598
628
|
Add, get, update, or remove requests in a local v3 collection.
|
|
599
629
|
|
|
@@ -1436,6 +1466,9 @@ List environments in a Postman workspace.
|
|
|
1436
1466
|
.B environment get
|
|
1437
1467
|
Read an environment by ID or local environment file path.
|
|
1438
1468
|
.TP
|
|
1469
|
+
.B environment share
|
|
1470
|
+
Grant a role on a cloud environment to one or more people.
|
|
1471
|
+
.TP
|
|
1439
1472
|
.B environment delete
|
|
1440
1473
|
Delete an environment by ID or local environment file path. Prompts unless \-\-yes is passed.
|
|
1441
1474
|
.TP
|
|
@@ -1532,6 +1565,39 @@ Examples:
|
|
|
1532
1565
|
|
|
1533
1566
|
|
|
1534
1567
|
|
|
1568
|
+
.SS "environment share"
|
|
1569
|
+
Grant a role on a cloud environment to one or more people.
|
|
1570
|
+
|
|
1571
|
+
.B Usage:
|
|
1572
|
+
[options] <environmentId>
|
|
1573
|
+
|
|
1574
|
+
.B Options:
|
|
1575
|
+
.TP
|
|
1576
|
+
.B \-\-user <email|id>
|
|
1577
|
+
Who to share with. Repeatable, and each value may be a comma\-separated list. A value containing @ is treated as an email address, anything else as a Postman user id.
|
|
1578
|
+
.TP
|
|
1579
|
+
.B \-\-role <viewer|editor>
|
|
1580
|
+
The role to grant. (default: viewer)
|
|
1581
|
+
.TP
|
|
1582
|
+
.B \-\-json
|
|
1583
|
+
Print the outcome as machine\-readable JSON.
|
|
1584
|
+
.TP
|
|
1585
|
+
.B \-\-timeout <ms>
|
|
1586
|
+
Milliseconds to wait for Postman. Defaults to 30000.
|
|
1587
|
+
.TP
|
|
1588
|
+
.B \-\-api\-key <key>
|
|
1589
|
+
Postman API key (defaults to your `postman login` session)
|
|
1590
|
+
|
|
1591
|
+
.TP Examples:
|
|
1592
|
+
|
|
1593
|
+
Eg. postman environment share 12345678\-7c1e9b44\-3a21\-4f6d\-9e84\-1d2c3b4a5f60 \-\-user alice@corp.com
|
|
1594
|
+
postman environment share 12345678\-7c1e9b44\-... \-\-user platform\-team@corp.com \-\-role editor
|
|
1595
|
+
postman environment share 12345678\-7c1e9b44\-... \-\-user 31415926,31415925 \-\-json
|
|
1596
|
+
|
|
1597
|
+
Only a cloud environment can be shared. `editor` grants read and rewrite of every
|
|
1598
|
+
variable value, secrets included.
|
|
1599
|
+
|
|
1600
|
+
|
|
1535
1601
|
.SS "environment delete"
|
|
1536
1602
|
Delete an environment by ID or local environment file path. Prompts unless \-\-yes is passed.
|
|
1537
1603
|
|
|
@@ -1970,7 +2036,7 @@ The ID of the runner to execute
|
|
|
1970
2036
|
The secret key for the runner
|
|
1971
2037
|
.TP
|
|
1972
2038
|
.B \-\-region <region>
|
|
1973
|
-
|
|
2039
|
+
Data residency of the Postman account the runner belongs to: "us" (default) or "eu". This is not a monitor runner region
|
|
1974
2040
|
.TP
|
|
1975
2041
|
.B \-\-proxy <url>
|
|
1976
2042
|
External proxy URL, for example http://proxy.com or http://proxy.com:8080
|
|
@@ -2011,10 +2077,23 @@ List the team's registered self\-hosted runners.
|
|
|
2011
2077
|
Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session)
|
|
2012
2078
|
.TP
|
|
2013
2079
|
.B \-w, \-\-workspace <id>
|
|
2014
|
-
|
|
2080
|
+
Only runners this workspace can use: runners scoped to it and runners shared with the whole team
|
|
2015
2081
|
.TP
|
|
2016
2082
|
.B \-\-json
|
|
2017
|
-
|
|
2083
|
+
Print { runners } as JSON, every field present (null when unset)
|
|
2084
|
+
|
|
2085
|
+
.TP Examples:
|
|
2086
|
+
|
|
2087
|
+
Pass a runner's ID to `postman monitor create \-\-runner` or `postman runner start \-\-id`.
|
|
2088
|
+
|
|
2089
|
+
Examples:
|
|
2090
|
+
postman runner list
|
|
2091
|
+
postman runner list \-w 12345678\-90ab\-cdef\-1234\-567890abcdef
|
|
2092
|
+
postman runner list \-\-json
|
|
2093
|
+
|
|
2094
|
+
Exit codes: 0 success, 1 failed, 2 usage error, 3 authentication failure.
|
|
2095
|
+
|
|
2096
|
+
|
|
2018
2097
|
|
|
2019
2098
|
.SS "runner regions"
|
|
2020
2099
|
List the region and private\-runner values valid for monitor create/update \-\-runner, with the static IP Postman runs each one from, where your team has access to it.
|
|
@@ -2028,7 +2107,19 @@ List the region and private\-runner values valid for monitor create/update \-\-r
|
|
|
2028
2107
|
Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session)
|
|
2029
2108
|
.TP
|
|
2030
2109
|
.B \-\-json
|
|
2031
|
-
|
|
2110
|
+
Print { regions } as JSON, every field present (null when unset)
|
|
2111
|
+
|
|
2112
|
+
.TP Examples:
|
|
2113
|
+
|
|
2114
|
+
Pass a region's ID to `postman monitor create \-\-runner`.
|
|
2115
|
+
|
|
2116
|
+
Examples:
|
|
2117
|
+
postman runner regions
|
|
2118
|
+
postman runner regions \-\-json
|
|
2119
|
+
|
|
2120
|
+
Exit codes: 0 success, 1 failed, 2 usage error, 3 authentication failure.
|
|
2121
|
+
|
|
2122
|
+
|
|
2032
2123
|
|
|
2033
2124
|
.SS "spec"
|
|
2034
2125
|
Lint and validate Specifications from the command line
|
|
@@ -2339,10 +2430,10 @@ Generate artifacts from a specification.
|
|
|
2339
2430
|
.B Subcommands:
|
|
2340
2431
|
.TP
|
|
2341
2432
|
.B spec generate collection
|
|
2342
|
-
Generate a Postman collection from
|
|
2433
|
+
Generate a Postman collection from an OpenAPI or AsyncAPI (Kafka) specification. Only Kafka AsyncAPI 2.x and 3.0 specs are supported: the spec must declare a kafka or kafka\-secure server.
|
|
2343
2434
|
|
|
2344
2435
|
.SS "spec generate collection"
|
|
2345
|
-
Generate a Postman collection from
|
|
2436
|
+
Generate a Postman collection from an OpenAPI or AsyncAPI (Kafka) specification. Only Kafka AsyncAPI 2.x and 3.0 specs are supported: the spec must declare a kafka or kafka\-secure server.
|
|
2346
2437
|
|
|
2347
2438
|
.B Usage:
|
|
2348
2439
|
[options] <spec>
|
|
@@ -2353,7 +2444,7 @@ Generate a Postman collection from a specification.
|
|
|
2353
2444
|
Collection name
|
|
2354
2445
|
.TP
|
|
2355
2446
|
.B \-\-folder\-strategy <strategy>
|
|
2356
|
-
Folder strategy: Paths or Tags (default: Paths) (default: Paths)
|
|
2447
|
+
Folder strategy: Paths or Tags (default: Paths). OpenAPI only (default: Paths)
|
|
2357
2448
|
.TP
|
|
2358
2449
|
.B \-w, \-\-workspace <id>
|
|
2359
2450
|
Workspace ID (cloud mode)
|
|
@@ -2370,6 +2461,7 @@ Examples:
|
|
|
2370
2461
|
postman spec generate collection ./openapi.yaml \-n "My API"
|
|
2371
2462
|
postman spec generate collection ./openapi.yaml \-n "My API" \-\-folder\-strategy Tags
|
|
2372
2463
|
postman spec generate collection ./openapi.yaml \-n "My API" \-\-force
|
|
2464
|
+
postman spec generate collection ./kafka\-asyncapi.yaml \-n "Order Events"
|
|
2373
2465
|
postman spec generate collection 12345678\-abcd\-1234\-abcd\-1234567890ab \-n "My API"
|
|
2374
2466
|
|
|
2375
2467
|
|
|
@@ -2400,10 +2492,10 @@ Collection ID to sync (required for cloud mode)
|
|
|
2400
2492
|
Postman API key
|
|
2401
2493
|
.TP
|
|
2402
2494
|
.B \-\-force
|
|
2403
|
-
Overwrite hand\-written scripts, headers and descriptions that the spec would otherwise drop
|
|
2495
|
+
Overwrite hand\-written scripts, headers and descriptions that the spec would otherwise drop (OpenAPI), or collection files that could not be read (AsyncAPI)
|
|
2404
2496
|
.TP
|
|
2405
2497
|
.B \-\-dry\-run
|
|
2406
|
-
Report what sync would change and remove without writing anything
|
|
2498
|
+
Report what sync would change and remove without writing anything (OpenAPI only)
|
|
2407
2499
|
|
|
2408
2500
|
.TP Examples:
|
|
2409
2501
|
|
|
@@ -2446,7 +2538,7 @@ Run and manage Postman monitors.
|
|
|
2446
2538
|
.B Subcommands:
|
|
2447
2539
|
.TP
|
|
2448
2540
|
.B monitor run
|
|
2449
|
-
|
|
2541
|
+
Run a monitor now and report the result.
|
|
2450
2542
|
.TP
|
|
2451
2543
|
.B monitor create
|
|
2452
2544
|
Create a collection\-based monitor.
|
|
@@ -2458,16 +2550,16 @@ Update a monitor's schedule, runner, notifications, request selection or run opt
|
|
|
2458
2550
|
Permanently delete a monitor. Prompts for confirmation unless \-\-yes is passed.
|
|
2459
2551
|
.TP
|
|
2460
2552
|
.B monitor jobs
|
|
2461
|
-
Inspect a monitor's jobs and their per\-
|
|
2553
|
+
Inspect a monitor's jobs (also called executions) and their per\-runner runs.
|
|
2462
2554
|
.TP
|
|
2463
2555
|
.B monitor runs
|
|
2464
|
-
Inspect a monitor
|
|
2556
|
+
Inspect one run of a monitor job: its requests, assertions and attempts.
|
|
2465
2557
|
.TP
|
|
2466
2558
|
.B monitor list
|
|
2467
|
-
List the monitors visible to you.
|
|
2559
|
+
List the monitors visible to you, one page at a time.
|
|
2468
2560
|
.TP
|
|
2469
2561
|
.B monitor get
|
|
2470
|
-
Show a monitor's configuration.
|
|
2562
|
+
Show a monitor's configuration and its last run.
|
|
2471
2563
|
.TP
|
|
2472
2564
|
.B monitor metrics
|
|
2473
2565
|
Show per\-request latency and outcome history for a monitor.
|
|
@@ -2477,9 +2569,12 @@ Pause a monitor, so it stops firing on schedule.
|
|
|
2477
2569
|
.TP
|
|
2478
2570
|
.B monitor resume
|
|
2479
2571
|
Resume a paused monitor, so it fires on schedule again.
|
|
2572
|
+
.TP
|
|
2573
|
+
.B monitor share
|
|
2574
|
+
Grant a role on a monitor to one or more people.
|
|
2480
2575
|
|
|
2481
2576
|
.SS "monitor run"
|
|
2482
|
-
|
|
2577
|
+
Run a monitor now and report the result.
|
|
2483
2578
|
|
|
2484
2579
|
.B Usage:
|
|
2485
2580
|
[options] <monitorId>
|
|
@@ -2490,16 +2585,29 @@ Invoke a monitor run and display results.
|
|
|
2490
2585
|
Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session, then a guest session)
|
|
2491
2586
|
.TP
|
|
2492
2587
|
.B \-x, \-\-suppress\-exit\-code
|
|
2493
|
-
|
|
2588
|
+
Always exit 0, whatever the run's result or the failure
|
|
2494
2589
|
.TP
|
|
2495
2590
|
.B \-t, \-\-timeout <ms>
|
|
2496
|
-
|
|
2591
|
+
How long to wait for the run to finish, in milliseconds (default: 900000)
|
|
2497
2592
|
.TP
|
|
2498
2593
|
.B \-\-async
|
|
2499
|
-
Submit the run and
|
|
2594
|
+
Submit the run and print its job id and Postman URL without waiting for it to finish
|
|
2500
2595
|
.TP
|
|
2501
2596
|
.B \-\-json
|
|
2502
|
-
|
|
2597
|
+
Print { state, monitorId, jobId, url, stats } as JSON, and nothing else
|
|
2598
|
+
|
|
2599
|
+
.TP Examples:
|
|
2600
|
+
|
|
2601
|
+
<monitorId> is the ID column of `postman monitor list`, or the monitor's uid.
|
|
2602
|
+
|
|
2603
|
+
Examples:
|
|
2604
|
+
postman monitor run 12345678\-90ab\-cdef\-1234\-567890abcdef
|
|
2605
|
+
postman monitor run 12345678\-90ab\-cdef\-1234\-567890abcdef \-\-timeout 300000 \-\-json
|
|
2606
|
+
postman monitor run 12345678\-90ab\-cdef\-1234\-567890abcdef \-\-async
|
|
2607
|
+
|
|
2608
|
+
Exit codes: 0 the run succeeded, or was submitted with \-\-async; 1 the run failed, errored or aborted, or the command failed; 2 usage error; 3 authentication failure; 7 the run was submitted but its result is unknown.
|
|
2609
|
+
|
|
2610
|
+
|
|
2503
2611
|
|
|
2504
2612
|
.SS "monitor create"
|
|
2505
2613
|
Create a collection\-based monitor.
|
|
@@ -2510,19 +2618,19 @@ Create a collection\-based monitor.
|
|
|
2510
2618
|
.B Options:
|
|
2511
2619
|
.TP
|
|
2512
2620
|
.B \-c, \-\-collection <id>
|
|
2513
|
-
Collection to monitor
|
|
2621
|
+
Collection to monitor: its id or uid, from the Postman app or `postman collection list`
|
|
2514
2622
|
.TP
|
|
2515
2623
|
.B \-\-name <name>
|
|
2516
2624
|
Monitor name (defaults to the linked collection's own name)
|
|
2517
2625
|
.TP
|
|
2518
2626
|
.B \-e, \-\-environment <id>
|
|
2519
|
-
Environment to run the
|
|
2627
|
+
Environment to run the collection with: its uid, from the Postman app or `postman environment list`
|
|
2520
2628
|
.TP
|
|
2521
2629
|
.B \-w, \-\-workspace <id>
|
|
2522
|
-
Workspace to create the monitor in (defaults to the workspace named in the local .postman/resources.yaml manifest; required if neither is available)
|
|
2630
|
+
Workspace to create the monitor in, from `postman workspace list` (defaults to the workspace named in the local .postman/resources.yaml manifest; required if neither is available)
|
|
2523
2631
|
.TP
|
|
2524
2632
|
.B \-\-schedule <cron>
|
|
2525
|
-
Cron expression for the monitor's schedule
|
|
2633
|
+
Cron expression for the monitor's schedule, five fields: minute hour day\-of\-month month day\-of\-week, for example "0 9 * * MON". Leave month as * unless the monitor should run only in certain months; then write the month as a name (jan\-dec)
|
|
2526
2634
|
.TP
|
|
2527
2635
|
.B \-\-timezone <tz>
|
|
2528
2636
|
Time zone for \-\-schedule, for example America/New_York (defaults to the host machine's own zone)
|
|
@@ -2540,10 +2648,10 @@ Email to notify on a run failure or error (repeatable) (default: )
|
|
|
2540
2648
|
Consecutive failure notifications to send before muting them
|
|
2541
2649
|
.TP
|
|
2542
2650
|
.B \-\-retry <n>
|
|
2543
|
-
Times to retry a failed run
|
|
2651
|
+
Times to retry a failed run: \-\-retry 2 allows up to 3 attempts
|
|
2544
2652
|
.TP
|
|
2545
2653
|
.B \-\-timeout <ms>
|
|
2546
|
-
|
|
2654
|
+
Per\-request timeout the monitor applies when it runs, in milliseconds (this command does not wait for a run; `postman monitor run \-\-timeout` sets how long that waits)
|
|
2547
2655
|
.TP
|
|
2548
2656
|
.B \-\-delay <ms>
|
|
2549
2657
|
Delay between requests in milliseconds
|
|
@@ -2579,7 +2687,7 @@ Do not trigger an immediate run after creating the monitor
|
|
|
2579
2687
|
Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session, then a guest session)
|
|
2580
2688
|
.TP
|
|
2581
2689
|
.B \-\-json
|
|
2582
|
-
|
|
2690
|
+
Print the outcome, the created monitor's id, uid, name and active state, and the job of its first run, as JSON
|
|
2583
2691
|
|
|
2584
2692
|
.TP Examples:
|
|
2585
2693
|
|
|
@@ -2590,6 +2698,8 @@ Examples:
|
|
|
2590
2698
|
postman monitor create \-\-collection <id> \-\-item <request\-id> \-\-item <folder\-id>
|
|
2591
2699
|
postman monitor create \-\-collection <id> \-\-workspace 12345678\-90ab\-cdef\-1234\-567890abcdef
|
|
2592
2700
|
|
|
2701
|
+
Exit codes: 0 success, 1 failed, 2 usage error, 3 authentication failure, 7 failed after it was sent and may have applied.
|
|
2702
|
+
|
|
2593
2703
|
|
|
2594
2704
|
|
|
2595
2705
|
.SS "monitor update"
|
|
@@ -2604,7 +2714,7 @@ Update a monitor's schedule, runner, notifications, request selection or run opt
|
|
|
2604
2714
|
New monitor name
|
|
2605
2715
|
.TP
|
|
2606
2716
|
.B \-\-schedule <cron>
|
|
2607
|
-
New cron expression for the monitor's schedule
|
|
2717
|
+
New cron expression for the monitor's schedule, five fields: minute hour day\-of\-month month day\-of\-week, for example "0 9 * * MON". Leave month as * unless the monitor should run only in certain months; then write the month as a name (jan\-dec)
|
|
2608
2718
|
.TP
|
|
2609
2719
|
.B \-\-timezone <tz>
|
|
2610
2720
|
Time zone for \-\-schedule, for example America/New_York (defaults to the host machine's own zone)
|
|
@@ -2625,7 +2735,7 @@ Email to notify on a run failure or error (repeatable; replaces the current list
|
|
|
2625
2735
|
Remove every notification recipient
|
|
2626
2736
|
.TP
|
|
2627
2737
|
.B \-e, \-\-environment <id>
|
|
2628
|
-
Environment to run the
|
|
2738
|
+
Environment to run the collection with, replacing the current one: its uid, from `postman environment list`
|
|
2629
2739
|
.TP
|
|
2630
2740
|
.B \-\-clear\-environment
|
|
2631
2741
|
Run the monitored collection with no environment
|
|
@@ -2634,10 +2744,10 @@ Run the monitored collection with no environment
|
|
|
2634
2744
|
Consecutive failure notifications to send before muting them
|
|
2635
2745
|
.TP
|
|
2636
2746
|
.B \-\-retry <n>
|
|
2637
|
-
Times to retry a failed run
|
|
2747
|
+
Times to retry a failed run: \-\-retry 2 allows up to 3 attempts
|
|
2638
2748
|
.TP
|
|
2639
2749
|
.B \-\-timeout <ms>
|
|
2640
|
-
|
|
2750
|
+
Per\-request timeout the monitor applies when it runs, in milliseconds (this command does not wait for a run; `postman monitor run \-\-timeout` sets how long that waits)
|
|
2641
2751
|
.TP
|
|
2642
2752
|
.B \-\-delay <ms>
|
|
2643
2753
|
Delay between requests in milliseconds
|
|
@@ -2670,20 +2780,24 @@ How iteration data is consumed, for example round_robin, repeat_last or stop_at_
|
|
|
2670
2780
|
Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session, then a guest session)
|
|
2671
2781
|
.TP
|
|
2672
2782
|
.B \-\-json
|
|
2673
|
-
|
|
2783
|
+
Print the outcome and the monitor's id, uid, name and active state as JSON
|
|
2674
2784
|
|
|
2675
2785
|
.TP Examples:
|
|
2676
2786
|
|
|
2787
|
+
<monitorId> is the ID column of `postman monitor list`, or the monitor's uid.
|
|
2788
|
+
The linked collection is fixed when a monitor is created: create a new monitor to run another collection. Pause or resume a monitor with `postman monitor pause` and `postman monitor resume`.
|
|
2789
|
+
|
|
2677
2790
|
Examples:
|
|
2678
|
-
postman monitor update <
|
|
2679
|
-
postman monitor update <
|
|
2680
|
-
postman monitor update <
|
|
2681
|
-
postman monitor update <
|
|
2682
|
-
postman monitor update <
|
|
2683
|
-
postman monitor update <
|
|
2684
|
-
postman monitor update <
|
|
2791
|
+
postman monitor update <monitorId> \-\-schedule "0 */6 * * *" \-\-timezone UTC
|
|
2792
|
+
postman monitor update <monitorId> \-\-notify\-email a@example.com \-\-notify\-email b@example.com
|
|
2793
|
+
postman monitor update <monitorId> \-\-clear\-notifications
|
|
2794
|
+
postman monitor update <monitorId> \-\-runner us\-east \-\-runner <self\-hosted\-runner\-id>
|
|
2795
|
+
postman monitor update <monitorId> \-\-item <request\-id> \-\-item <folder\-id>
|
|
2796
|
+
postman monitor update <monitorId> \-\-clear\-items
|
|
2797
|
+
postman monitor update <monitorId> \-\-environment 12345678\-90ab\-cdef\-1234\-567890abcdef
|
|
2798
|
+
|
|
2799
|
+
Exit codes: 0 success, 1 failed, 2 usage error, 3 authentication failure, 7 failed after it was sent and may have applied.
|
|
2685
2800
|
|
|
2686
|
-
This command cannot change a monitor's linked collection \-\- that is fixed when the monitor is created, so run a different collection by creating a new monitor. It does not pause or resume a monitor either; use `monitor pause`/`monitor resume` for that.
|
|
2687
2801
|
|
|
2688
2802
|
|
|
2689
2803
|
.SS "monitor delete"
|
|
@@ -2695,25 +2809,29 @@ Permanently delete a monitor. Prompts for confirmation unless \-\-yes is passed.
|
|
|
2695
2809
|
.B Options:
|
|
2696
2810
|
.TP
|
|
2697
2811
|
.B \-y, \-\-yes
|
|
2698
|
-
Skip the confirmation prompt
|
|
2812
|
+
Skip the confirmation prompt; required when there is no interactive terminal or with \-\-silent
|
|
2699
2813
|
.TP
|
|
2700
2814
|
.B \-\-api\-key <key>
|
|
2701
2815
|
Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session, then a guest session)
|
|
2702
2816
|
.TP
|
|
2703
2817
|
.B \-\-json
|
|
2704
|
-
|
|
2818
|
+
Print the outcome (deleted or aborted) and the monitor id as JSON
|
|
2705
2819
|
|
|
2706
2820
|
.TP Examples:
|
|
2707
2821
|
|
|
2822
|
+
<monitorId> is the ID column of `postman monitor list`, or the monitor's uid.
|
|
2823
|
+
|
|
2708
2824
|
Examples:
|
|
2709
2825
|
postman monitor delete 12345678\-90ab\-cdef\-1234\-567890abcdef
|
|
2710
2826
|
postman monitor delete 12345678\-90ab\-cdef\-1234\-567890abcdef \-\-yes
|
|
2711
2827
|
postman monitor delete 12345678\-90ab\-cdef\-1234\-567890abcdef \-\-yes \-\-json
|
|
2712
2828
|
|
|
2829
|
+
Exit codes: 0 success, 1 failed, 2 usage error, 3 authentication failure, 7 failed after it was sent and may have applied, 5 the prompt was declined, 8 refused with no terminal (or with \-\-silent) and no \-\-yes.
|
|
2830
|
+
|
|
2713
2831
|
|
|
2714
2832
|
|
|
2715
2833
|
.SS "monitor jobs"
|
|
2716
|
-
Inspect a monitor's jobs and their per\-
|
|
2834
|
+
Inspect a monitor's jobs (also called executions) and their per\-runner runs.
|
|
2717
2835
|
|
|
2718
2836
|
.B Usage:
|
|
2719
2837
|
[options] [command]
|
|
@@ -2721,13 +2839,13 @@ Inspect a monitor's jobs and their per\-region runs.
|
|
|
2721
2839
|
.B Subcommands:
|
|
2722
2840
|
.TP
|
|
2723
2841
|
.B monitor jobs list
|
|
2724
|
-
List a monitor's recent jobs.
|
|
2842
|
+
List a monitor's recent jobs, newest first. A job (also called an execution) is one firing of the monitor, with one run per runner.
|
|
2725
2843
|
.TP
|
|
2726
2844
|
.B monitor jobs get
|
|
2727
|
-
|
|
2845
|
+
Show one job (also called an execution) and the state, runner and duration of each of its runs. A run's duration covers every attempt, including retries.
|
|
2728
2846
|
|
|
2729
2847
|
.SS "monitor jobs list"
|
|
2730
|
-
List a monitor's recent jobs.
|
|
2848
|
+
List a monitor's recent jobs, newest first. A job (also called an execution) is one firing of the monitor, with one run per runner.
|
|
2731
2849
|
|
|
2732
2850
|
.B Usage:
|
|
2733
2851
|
[options] <monitorId>
|
|
@@ -2735,28 +2853,41 @@ List a monitor's recent jobs.
|
|
|
2735
2853
|
.B Options:
|
|
2736
2854
|
.TP
|
|
2737
2855
|
.B \-\-api\-key <key>
|
|
2738
|
-
Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session)
|
|
2856
|
+
Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session, then a guest session)
|
|
2739
2857
|
.TP
|
|
2740
|
-
.B \-\-result <
|
|
2741
|
-
|
|
2858
|
+
.B \-\-result <state>
|
|
2859
|
+
Only jobs that finished in this state: success, failure, error or abort; any other value is rejected before any request
|
|
2742
2860
|
.TP
|
|
2743
2861
|
.B \-\-trigger <value>
|
|
2744
|
-
|
|
2862
|
+
Only jobs started by this trigger: api, schedule, webhook or postman\-cli; any other value is rejected before any request
|
|
2745
2863
|
.TP
|
|
2746
2864
|
.B \-\-since <dateTime>
|
|
2747
2865
|
Only jobs that finished at or after this ISO 8601 date\-time
|
|
2748
2866
|
.TP
|
|
2749
2867
|
.B \-\-limit <n>
|
|
2750
|
-
|
|
2868
|
+
Jobs per page, 1\-25 (default: 25)
|
|
2751
2869
|
.TP
|
|
2752
|
-
.B \-\-cursor <
|
|
2753
|
-
|
|
2870
|
+
.B \-\-cursor <page>
|
|
2871
|
+
Page number to read, from the "Next page" line or `nextCursor` under \-\-json of a previous listing; pass the same \-\-limit and filters
|
|
2754
2872
|
.TP
|
|
2755
2873
|
.B \-\-json
|
|
2756
|
-
|
|
2874
|
+
Print { monitorId, jobs, nextCursor } as JSON, each job with its runs
|
|
2875
|
+
|
|
2876
|
+
.TP Examples:
|
|
2877
|
+
|
|
2878
|
+
<monitorId> is the ID column of `postman monitor list`, or the monitor's uid.
|
|
2879
|
+
|
|
2880
|
+
Examples:
|
|
2881
|
+
postman monitor jobs list 12345678\-90ab\-cdef\-1234\-567890abcdef
|
|
2882
|
+
postman monitor jobs list 12345678\-90ab\-cdef\-1234\-567890abcdef \-\-result failure \-\-limit 10
|
|
2883
|
+
postman monitor jobs list 12345678\-90ab\-cdef\-1234\-567890abcdef \-\-limit 10 \-\-cursor 2 \-\-json
|
|
2884
|
+
|
|
2885
|
+
Exit codes: 0 success, 1 failed, 2 usage error, 3 authentication failure.
|
|
2886
|
+
|
|
2887
|
+
|
|
2757
2888
|
|
|
2758
2889
|
.SS "monitor jobs get"
|
|
2759
|
-
|
|
2890
|
+
Show one job (also called an execution) and the state, runner and duration of each of its runs. A run's duration covers every attempt, including retries.
|
|
2760
2891
|
|
|
2761
2892
|
.B Usage:
|
|
2762
2893
|
[options] <jobId>
|
|
@@ -2764,13 +2895,25 @@ Report one job's terminal state and its per\-region run outcomes.
|
|
|
2764
2895
|
.B Options:
|
|
2765
2896
|
.TP
|
|
2766
2897
|
.B \-\-api\-key <key>
|
|
2767
|
-
Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session)
|
|
2898
|
+
Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session, then a guest session)
|
|
2768
2899
|
.TP
|
|
2769
2900
|
.B \-\-json
|
|
2770
|
-
|
|
2901
|
+
Print the job as JSON, with each run's state, runner, counts, duration and attempts
|
|
2902
|
+
|
|
2903
|
+
.TP Examples:
|
|
2904
|
+
|
|
2905
|
+
<jobId> comes from `postman monitor jobs list`, `postman monitor run \-\-async` or `postman monitor create`.
|
|
2906
|
+
|
|
2907
|
+
Examples:
|
|
2908
|
+
postman monitor jobs get 1f1c0a7b\-9311\-48b0\-94f0\-ce07ac77a104
|
|
2909
|
+
postman monitor jobs get 1f1c0a7b\-9311\-48b0\-94f0\-ce07ac77a104 \-\-json
|
|
2910
|
+
|
|
2911
|
+
Exit codes: 0 success, 1 failed, 2 usage error, 3 authentication failure.
|
|
2912
|
+
|
|
2913
|
+
|
|
2771
2914
|
|
|
2772
2915
|
.SS "monitor runs"
|
|
2773
|
-
Inspect a monitor
|
|
2916
|
+
Inspect one run of a monitor job: its requests, assertions and attempts.
|
|
2774
2917
|
|
|
2775
2918
|
.B Usage:
|
|
2776
2919
|
[options] [command]
|
|
@@ -2778,10 +2921,12 @@ Inspect a monitor run's attempts.
|
|
|
2778
2921
|
.B Subcommands:
|
|
2779
2922
|
.TP
|
|
2780
2923
|
.B monitor runs get
|
|
2781
|
-
|
|
2924
|
+
Show one attempt of a run: each request with its response or error, and its assertions, console lines and exceptions. A retried run has several attempts, numbered from 0; the latest is shown unless \-\-attempt names another.
|
|
2925
|
+
Console, assertion and exception messages are the collection's own output, printed as the run recorded them.
|
|
2782
2926
|
|
|
2783
2927
|
.SS "monitor runs get"
|
|
2784
|
-
|
|
2928
|
+
Show one attempt of a run: each request with its response or error, and its assertions, console lines and exceptions. A retried run has several attempts, numbered from 0; the latest is shown unless \-\-attempt names another.
|
|
2929
|
+
Console, assertion and exception messages are the collection's own output, printed as the run recorded them.
|
|
2785
2930
|
|
|
2786
2931
|
.B Usage:
|
|
2787
2932
|
[options] <runId>
|
|
@@ -2789,19 +2934,32 @@ Report which test assertions ran during one attempt of a run, which failed, and
|
|
|
2789
2934
|
.B Options:
|
|
2790
2935
|
.TP
|
|
2791
2936
|
.B \-\-api\-key <key>
|
|
2792
|
-
Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session)
|
|
2937
|
+
Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session, then a guest session)
|
|
2793
2938
|
.TP
|
|
2794
2939
|
.B \-\-attempt <n>
|
|
2795
|
-
Which attempt
|
|
2940
|
+
Which attempt to show, from 0 for the first (default: the latest)
|
|
2796
2941
|
.TP
|
|
2797
2942
|
.B \-\-failed\-only
|
|
2798
|
-
Show only failed
|
|
2943
|
+
Show only requests with a failed assertion, an exception or a network error
|
|
2799
2944
|
.TP
|
|
2800
2945
|
.B \-\-json
|
|
2801
|
-
|
|
2946
|
+
Print the run as JSON: its state, attempt, assertion counts and every request with its entries
|
|
2947
|
+
|
|
2948
|
+
.TP Examples:
|
|
2949
|
+
|
|
2950
|
+
<runId> comes from `postman monitor jobs get <jobId>`.
|
|
2951
|
+
|
|
2952
|
+
Examples:
|
|
2953
|
+
postman monitor runs get 1f1c0a7b\-9c8f\-4610\-bfce\-e1a02ff245ff
|
|
2954
|
+
postman monitor runs get 1f1c0a7b\-9c8f\-4610\-bfce\-e1a02ff245ff \-\-attempt 0 \-\-failed\-only
|
|
2955
|
+
postman monitor runs get 1f1c0a7b\-9c8f\-4610\-bfce\-e1a02ff245ff \-\-json
|
|
2956
|
+
|
|
2957
|
+
Exit codes: 0 success, 1 failed, 2 usage error, 3 authentication failure.
|
|
2958
|
+
|
|
2959
|
+
|
|
2802
2960
|
|
|
2803
2961
|
.SS "monitor list"
|
|
2804
|
-
List the monitors visible to you.
|
|
2962
|
+
List the monitors visible to you, one page at a time.
|
|
2805
2963
|
|
|
2806
2964
|
.B Usage:
|
|
2807
2965
|
[options]
|
|
@@ -2812,59 +2970,63 @@ List the monitors visible to you.
|
|
|
2812
2970
|
Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session, then a guest session)
|
|
2813
2971
|
.TP
|
|
2814
2972
|
.B \-w, \-\-workspace <id>
|
|
2815
|
-
|
|
2973
|
+
Only monitors in this workspace (ids from `postman workspace list`)
|
|
2816
2974
|
.TP
|
|
2817
2975
|
.B \-c, \-\-collection <id>
|
|
2818
|
-
|
|
2976
|
+
Only monitors on this collection: its id or uid
|
|
2819
2977
|
.TP
|
|
2820
2978
|
.B \-e, \-\-environment <id>
|
|
2821
|
-
|
|
2979
|
+
Only monitors on this environment: its uid
|
|
2822
2980
|
.TP
|
|
2823
2981
|
.B \-\-runner <id>
|
|
2824
|
-
|
|
2982
|
+
Only monitors on this self\-hosted runner id, from `postman runner list` (not a Postman region). Cannot be combined with \-\-workspace, \-\-collection, \-\-environment, \-\-owner or \-\-active
|
|
2825
2983
|
.TP
|
|
2826
2984
|
.B \-\-owner <id>
|
|
2827
|
-
|
|
2985
|
+
Only monitors created by this user id: the `owner` field under \-\-json
|
|
2828
2986
|
.TP
|
|
2829
2987
|
.B \-\-team
|
|
2830
|
-
|
|
2988
|
+
Accepted and ignored: every listing is limited to your team
|
|
2831
2989
|
.TP
|
|
2832
2990
|
.B \-\-active <true|false>
|
|
2833
|
-
|
|
2991
|
+
Only active (true) or paused (false) monitors
|
|
2834
2992
|
.TP
|
|
2835
2993
|
.B \-\-limit <n>
|
|
2836
|
-
|
|
2994
|
+
Monitors per page, 1\-25
|
|
2837
2995
|
.TP
|
|
2838
2996
|
.B \-\-cursor <token>
|
|
2839
|
-
|
|
2997
|
+
Page to read: the cursor from the "Next page" line of a previous listing, or `nextCursor` under \-\-json; pass the same filters and \-\-limit
|
|
2840
2998
|
.TP
|
|
2841
2999
|
.B \-\-columns <names>
|
|
2842
|
-
Comma\-separated columns to show. Defaults to Name,
|
|
3000
|
+
Comma\-separated columns to show. Defaults to Name, ID, State, Health, Schedule, Owner, Collection, dropping Collection, Owner, Schedule in that order when the table is wider than the terminal. Also available: Environment, Runners, Notifications
|
|
2843
3001
|
.TP
|
|
2844
3002
|
.B \-\-no\-headers
|
|
2845
|
-
Omit the header row
|
|
3003
|
+
Omit the header row and its rule
|
|
2846
3004
|
.TP
|
|
2847
3005
|
.B \-f, \-\-filter <text>
|
|
2848
|
-
|
|
3006
|
+
Only monitors whose name contains this text, case\-insensitive (applies to the returned page)
|
|
2849
3007
|
.TP
|
|
2850
3008
|
.B \-\-sort <field>
|
|
2851
3009
|
Sort the returned page by "name" or "active"
|
|
2852
3010
|
.TP
|
|
2853
3011
|
.B \-\-json
|
|
2854
|
-
|
|
3012
|
+
Print { monitors, nextCursor } as JSON, every monitor field except lastRun present (null when unset); monitor get carries lastRun
|
|
2855
3013
|
|
|
2856
3014
|
.TP Examples:
|
|
2857
3015
|
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
3016
|
+
Examples:
|
|
3017
|
+
postman monitor list
|
|
3018
|
+
postman monitor list \-w 12345678\-90ab\-cdef\-1234\-567890abcdef
|
|
3019
|
+
postman monitor list \-\-active true \-\-sort name
|
|
3020
|
+
postman monitor list \-\-runner 12345678\-90ab\-cdef\-1234\-567890abcdef
|
|
3021
|
+
postman monitor list \-\-columns Name,State \-\-no\-headers
|
|
3022
|
+
postman monitor list \-\-limit 10 \-\-cursor <nextCursor> \-\-json
|
|
3023
|
+
|
|
3024
|
+
Exit codes: 0 success, 1 failed, 2 usage error, 3 authentication failure.
|
|
3025
|
+
|
|
2864
3026
|
|
|
2865
3027
|
|
|
2866
3028
|
.SS "monitor get"
|
|
2867
|
-
Show a monitor's configuration.
|
|
3029
|
+
Show a monitor's configuration and its last run.
|
|
2868
3030
|
|
|
2869
3031
|
.B Usage:
|
|
2870
3032
|
[options] <monitorId>
|
|
@@ -2875,12 +3037,26 @@ Show a monitor's configuration.
|
|
|
2875
3037
|
Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session, then a guest session)
|
|
2876
3038
|
.TP
|
|
2877
3039
|
.B \-\-json
|
|
2878
|
-
|
|
3040
|
+
Print the monitor as JSON, every field present (null when unset)
|
|
2879
3041
|
|
|
2880
3042
|
.TP Examples:
|
|
2881
3043
|
|
|
2882
|
-
|
|
2883
|
-
|
|
3044
|
+
<monitorId> is the ID column of `postman monitor list`, or the monitor's uid.
|
|
3045
|
+
|
|
3046
|
+
The Requests row lists the ids of the requests the monitor runs, in the
|
|
3047
|
+
order it runs them, which can differ from the collection's own order. Under
|
|
3048
|
+
\-\-json they are options.requestSelection, in the same order. A folder id is
|
|
3049
|
+
marked (folder).
|
|
3050
|
+
"All requests" means the monitor runs every request in the collection, in the
|
|
3051
|
+
collection's own order. To see which request an id is, run
|
|
3052
|
+
`postman collection get <collection\-id> \-\-json`.
|
|
3053
|
+
|
|
3054
|
+
Examples:
|
|
3055
|
+
postman monitor get 12345678\-90ab\-cdef\-1234\-567890abcdef
|
|
3056
|
+
postman monitor get 12345678\-90ab\-cdef\-1234\-567890abcdef \-\-json
|
|
3057
|
+
|
|
3058
|
+
Exit codes: 0 success, 1 failed, 2 usage error, 3 authentication failure.
|
|
3059
|
+
|
|
2884
3060
|
|
|
2885
3061
|
|
|
2886
3062
|
.SS "monitor metrics"
|
|
@@ -2904,17 +3080,23 @@ Only executions at or before this ISO 8601 date\-time (defaults to now)
|
|
|
2904
3080
|
Show only requests whose name contains this text (case\-insensitive)
|
|
2905
3081
|
.TP
|
|
2906
3082
|
.B \-\-limit <n>
|
|
2907
|
-
|
|
3083
|
+
Rows to show, any positive whole number: the worst\-behaving requests in the table, or the newest executions under \-\-json. Applied after the results are fetched
|
|
2908
3084
|
.TP
|
|
2909
3085
|
.B \-\-json
|
|
2910
|
-
|
|
3086
|
+
Print { monitorId, window, metricsAvailable, executions } as JSON, one entry per request per job per runner
|
|
2911
3087
|
|
|
2912
3088
|
.TP Examples:
|
|
2913
3089
|
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
3090
|
+
<monitorId> is the ID column of `postman monitor list`, or the monitor's uid.
|
|
3091
|
+
|
|
3092
|
+
Examples:
|
|
3093
|
+
postman monitor metrics 12345678\-90ab\-cdef\-1234\-567890abcdef
|
|
3094
|
+
postman monitor metrics 12345678\-90ab\-cdef\-1234\-567890abcdef \-\-since 2026\-09\-01T00:00:00Z
|
|
3095
|
+
postman monitor metrics 12345678\-90ab\-cdef\-1234\-567890abcdef \-\-filter "GET /health"
|
|
3096
|
+
postman monitor metrics 12345678\-90ab\-cdef\-1234\-567890abcdef \-\-json
|
|
3097
|
+
|
|
3098
|
+
Exit codes: 0 success, 1 failed, 2 usage error, 3 authentication failure.
|
|
3099
|
+
|
|
2918
3100
|
|
|
2919
3101
|
|
|
2920
3102
|
.SS "monitor pause"
|
|
@@ -2929,7 +3111,19 @@ Pause a monitor, so it stops firing on schedule.
|
|
|
2929
3111
|
Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session, then a guest session)
|
|
2930
3112
|
.TP
|
|
2931
3113
|
.B \-\-json
|
|
2932
|
-
|
|
3114
|
+
Print the outcome and the monitor's id, uid, name and active state as JSON
|
|
3115
|
+
|
|
3116
|
+
.TP Examples:
|
|
3117
|
+
|
|
3118
|
+
<monitorId> is the ID column of `postman monitor list`, or the monitor's uid.
|
|
3119
|
+
|
|
3120
|
+
Examples:
|
|
3121
|
+
postman monitor pause 12345678\-90ab\-cdef\-1234\-567890abcdef
|
|
3122
|
+
postman monitor pause 12345678\-90ab\-cdef\-1234\-567890abcdef \-\-json
|
|
3123
|
+
|
|
3124
|
+
Exit codes: 0 success, 1 failed, 2 usage error, 3 authentication failure, 7 failed after it was sent and may have applied.
|
|
3125
|
+
|
|
3126
|
+
|
|
2933
3127
|
|
|
2934
3128
|
.SS "monitor resume"
|
|
2935
3129
|
Resume a paused monitor, so it fires on schedule again.
|
|
@@ -2943,7 +3137,51 @@ Resume a paused monitor, so it fires on schedule again.
|
|
|
2943
3137
|
Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session, then a guest session)
|
|
2944
3138
|
.TP
|
|
2945
3139
|
.B \-\-json
|
|
2946
|
-
|
|
3140
|
+
Print the outcome and the monitor's id, uid, name and active state as JSON
|
|
3141
|
+
|
|
3142
|
+
.TP Examples:
|
|
3143
|
+
|
|
3144
|
+
<monitorId> is the ID column of `postman monitor list`, or the monitor's uid.
|
|
3145
|
+
|
|
3146
|
+
Examples:
|
|
3147
|
+
postman monitor resume 12345678\-90ab\-cdef\-1234\-567890abcdef
|
|
3148
|
+
postman monitor resume 12345678\-90ab\-cdef\-1234\-567890abcdef \-\-json
|
|
3149
|
+
|
|
3150
|
+
Exit codes: 0 success, 1 failed, 2 usage error, 3 authentication failure, 7 failed after it was sent and may have applied.
|
|
3151
|
+
|
|
3152
|
+
|
|
3153
|
+
|
|
3154
|
+
.SS "monitor share"
|
|
3155
|
+
Grant a role on a monitor to one or more people.
|
|
3156
|
+
|
|
3157
|
+
.B Usage:
|
|
3158
|
+
[options] <monitorId>
|
|
3159
|
+
|
|
3160
|
+
.B Options:
|
|
3161
|
+
.TP
|
|
3162
|
+
.B \-\-user <email|id>
|
|
3163
|
+
Who to share with. Repeatable, and each value may be a comma\-separated list. A value containing @ is treated as an email address, anything else as a Postman user id.
|
|
3164
|
+
.TP
|
|
3165
|
+
.B \-\-role <viewer|editor>
|
|
3166
|
+
The role to grant. (default: viewer)
|
|
3167
|
+
.TP
|
|
3168
|
+
.B \-\-json
|
|
3169
|
+
Print the outcome as machine\-readable JSON.
|
|
3170
|
+
.TP
|
|
3171
|
+
.B \-\-timeout <ms>
|
|
3172
|
+
Milliseconds to wait for Postman. Defaults to 30000.
|
|
3173
|
+
.TP
|
|
3174
|
+
.B \-\-api\-key <key>
|
|
3175
|
+
Postman API key (defaults to your `postman login` session)
|
|
3176
|
+
|
|
3177
|
+
.TP Examples:
|
|
3178
|
+
|
|
3179
|
+
Eg. postman monitor share 12345678\-90ab\-cdef\-1234\-567890abcdef \-\-user alice@corp.com
|
|
3180
|
+
postman monitor share 12345678\-90ab\-cdef\-1234\-567890abcdef \-\-user alice@corp.com,bob@corp.com \-\-role editor
|
|
3181
|
+
postman monitor share 12345678\-90ab\-cdef\-1234\-567890abcdef \-\-user alice@corp.com \-\-json
|
|
3182
|
+
|
|
3183
|
+
`editor` is what allows pausing, resuming and rescheduling the monitor.
|
|
3184
|
+
|
|
2947
3185
|
|
|
2948
3186
|
.SS "workspace"
|
|
2949
3187
|
Manage workspace resources.
|
|
@@ -2977,8 +3215,11 @@ Create a Postman workspace and bind it to this git repository.
|
|
|
2977
3215
|
.B workspace delete
|
|
2978
3216
|
Permanently delete a workspace and everything in it. Prompts for confirmation unless \-\-yes is passed.
|
|
2979
3217
|
.TP
|
|
3218
|
+
.B workspace share
|
|
3219
|
+
Grant a role on a workspace to one or more people.
|
|
3220
|
+
.TP
|
|
2980
3221
|
.B workspace pull
|
|
2981
|
-
Pull workspace entities from a Postman workspace into the local
|
|
3222
|
+
Pull workspace entities from a Postman workspace into the local folder.
|
|
2982
3223
|
.TP
|
|
2983
3224
|
.B workspace connect-git
|
|
2984
3225
|
Connect a Postman workspace to a local git repository.
|
|
@@ -3246,8 +3487,38 @@ Examples:
|
|
|
3246
3487
|
|
|
3247
3488
|
|
|
3248
3489
|
|
|
3490
|
+
.SS "workspace share"
|
|
3491
|
+
Grant a role on a workspace to one or more people.
|
|
3492
|
+
|
|
3493
|
+
.B Usage:
|
|
3494
|
+
[options] <workspaceId>
|
|
3495
|
+
|
|
3496
|
+
.B Options:
|
|
3497
|
+
.TP
|
|
3498
|
+
.B \-\-user <email|id>
|
|
3499
|
+
Who to share with. Repeatable, and each value may be a comma\-separated list. A value containing @ is treated as an email address, anything else as a Postman user id.
|
|
3500
|
+
.TP
|
|
3501
|
+
.B \-\-role <viewer|editor>
|
|
3502
|
+
The role to grant. (default: viewer)
|
|
3503
|
+
.TP
|
|
3504
|
+
.B \-\-json
|
|
3505
|
+
Print the outcome as machine\-readable JSON.
|
|
3506
|
+
.TP
|
|
3507
|
+
.B \-\-timeout <ms>
|
|
3508
|
+
Milliseconds to wait for Postman. Defaults to 30000.
|
|
3509
|
+
.TP
|
|
3510
|
+
.B \-\-api\-key <key>
|
|
3511
|
+
Postman API key (defaults to your `postman login` session)
|
|
3512
|
+
|
|
3513
|
+
.TP Examples:
|
|
3514
|
+
|
|
3515
|
+
Eg. postman workspace share 0f9a3d1e\-4c2b\-4a77\-9c31\-6b1f2e8d4a05 \-\-user alice@corp.com
|
|
3516
|
+
postman workspace share 0f9a3d1e\-... \-\-user alice@corp.com,bob@corp.com \-\-role editor
|
|
3517
|
+
postman workspace share 0f9a3d1e\-... \-\-user 31415926 \-\-json
|
|
3518
|
+
|
|
3519
|
+
|
|
3249
3520
|
.SS "workspace pull"
|
|
3250
|
-
Pull workspace entities from a Postman workspace into the local
|
|
3521
|
+
Pull workspace entities from a Postman workspace into the local folder.
|
|
3251
3522
|
|
|
3252
3523
|
.B Usage:
|
|
3253
3524
|
[options] [workspaceId]
|
|
@@ -3270,10 +3541,9 @@ Show detailed logging
|
|
|
3270
3541
|
|
|
3271
3542
|
Examples:
|
|
3272
3543
|
postman workspace pull
|
|
3273
|
-
Pull from the workspace
|
|
3544
|
+
Pull from the workspace configured for the current directory
|
|
3274
3545
|
postman workspace pull <workspaceId>
|
|
3275
|
-
|
|
3276
|
-
from the workspace.
|
|
3546
|
+
Pull from the workspace; connect Git first when an origin remote exists.
|
|
3277
3547
|
postman workspace pull \-\-source\-workspace <workspaceId>
|
|
3278
3548
|
Pull from another workspace
|
|
3279
3549
|
|
|
@@ -4850,7 +5120,7 @@ With \-\-deploy, let anyone with the link reach the server (default: callers nee
|
|
|
4850
5120
|
With \-\-deploy, the short label used in the server's web address
|
|
4851
5121
|
.TP
|
|
4852
5122
|
.B \-\-json
|
|
4853
|
-
|
|
5123
|
+
Print the result (with \-\-deploy, the live server details) as machine\-readable data instead of a summary
|
|
4854
5124
|
.TP
|
|
4855
5125
|
.B \-\-api\-key <key>
|
|
4856
5126
|
Postman API key to use with \-\-workspace or \-\-deploy (defaults to your `postman login` session)
|
|
@@ -4942,6 +5212,9 @@ Postman cloud workspace to upload to, by id (defaults to the workspace already l
|
|
|
4942
5212
|
.TP
|
|
4943
5213
|
.B \-\-api\-key <key>
|
|
4944
5214
|
Postman API key (defaults to your `postman login` session)
|
|
5215
|
+
.TP
|
|
5216
|
+
.B \-\-json
|
|
5217
|
+
Print the result as machine\-readable data
|
|
4945
5218
|
|
|
4946
5219
|
.TP Examples:
|
|
4947
5220
|
|
|
@@ -5009,7 +5282,7 @@ Show a mock's details using its path if it lives in your repository, or its id i
|
|
|
5009
5282
|
Postman API key (defaults to your `postman login` session)
|
|
5010
5283
|
.TP
|
|
5011
5284
|
.B \-\-json
|
|
5012
|
-
Print the details as machine\-readable data instead of a
|
|
5285
|
+
Print the details as machine\-readable data instead of a summary
|
|
5013
5286
|
|
|
5014
5287
|
.TP Examples:
|
|
5015
5288
|
|
|
@@ -5105,6 +5378,9 @@ Delete without asking for confirmation first
|
|
|
5105
5378
|
.TP
|
|
5106
5379
|
.B \-\-api\-key <key>
|
|
5107
5380
|
Postman API key, used with a Postman cloud id (defaults to your `postman login` session)
|
|
5381
|
+
.TP
|
|
5382
|
+
.B \-\-json
|
|
5383
|
+
Print the result as machine\-readable data (requires \-\-yes)
|
|
5108
5384
|
|
|
5109
5385
|
.TP Examples:
|
|
5110
5386
|
|
|
@@ -5376,7 +5652,7 @@ With \-\-deploy, let anyone with the link reach the server (default: callers nee
|
|
|
5376
5652
|
With \-\-deploy, the short label used in the server's web address
|
|
5377
5653
|
.TP
|
|
5378
5654
|
.B \-\-json
|
|
5379
|
-
|
|
5655
|
+
Print the result (with \-\-deploy, the live server details) as machine\-readable data instead of a summary
|
|
5380
5656
|
.TP
|
|
5381
5657
|
.B \-\-api\-key <key>
|
|
5382
5658
|
Postman API key (defaults to your `postman login` session)
|
|
@@ -5434,7 +5710,7 @@ Show a simulation's details using its .sim.yaml path if it lives in your reposit
|
|
|
5434
5710
|
Postman API key (defaults to your `postman login` session)
|
|
5435
5711
|
.TP
|
|
5436
5712
|
.B \-\-json
|
|
5437
|
-
Print the details as machine\-readable data instead of a
|
|
5713
|
+
Print the details as machine\-readable data instead of a summary
|
|
5438
5714
|
|
|
5439
5715
|
.TP Examples:
|
|
5440
5716
|
|
|
@@ -5534,6 +5810,9 @@ Postman cloud workspace to upload to, by id (defaults to the workspace already l
|
|
|
5534
5810
|
.TP
|
|
5535
5811
|
.B \-\-api\-key <key>
|
|
5536
5812
|
Postman API key (defaults to your `postman login` session)
|
|
5813
|
+
.TP
|
|
5814
|
+
.B \-\-json
|
|
5815
|
+
Print the result as machine\-readable data
|
|
5537
5816
|
|
|
5538
5817
|
.TP Examples:
|
|
5539
5818
|
|
|
@@ -5686,6 +5965,9 @@ Delete without asking for confirmation first
|
|
|
5686
5965
|
.TP
|
|
5687
5966
|
.B \-\-api\-key <key>
|
|
5688
5967
|
Postman API key, used with a Postman cloud id (defaults to your `postman login` session)
|
|
5968
|
+
.TP
|
|
5969
|
+
.B \-\-json
|
|
5970
|
+
Print the result as machine\-readable data (requires \-\-yes)
|
|
5689
5971
|
|
|
5690
5972
|
.TP Examples:
|
|
5691
5973
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "postman-cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.77.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.77.0",
|
|
66
|
+
"@postman/pm-bin-macos-x64": "1.77.0",
|
|
67
|
+
"@postman/pm-bin-linux-x64": "1.77.0",
|
|
68
|
+
"@postman/pm-bin-linux-arm64": "1.77.0",
|
|
69
|
+
"@postman/pm-bin-windows-x64": "1.77.0"
|
|
70
70
|
}
|
|
71
71
|
}
|
|
@@ -23,10 +23,8 @@ const POSTMAN_INSTRUCTION =
|
|
|
23
23
|
'from your repository.',
|
|
24
24
|
'',
|
|
25
25
|
'Install it with:',
|
|
26
|
-
' claude plugin
|
|
27
|
-
''
|
|
28
|
-
'Then start Claude Code and run:',
|
|
29
|
-
' /postman:setup'
|
|
26
|
+
' claude plugin marketplace add anthropics/claude-plugins-official',
|
|
27
|
+
' claude plugin install postman@claude-plugins-official'
|
|
30
28
|
].join('\n');
|
|
31
29
|
|
|
32
30
|
/**
|