postman-cli 1.76.0 → 1.79.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 CHANGED
@@ -1,4 +1,4 @@
1
- .TH POSTMAN 1 "2026-10-22" "v1.76.0" "Postman CLI Manual"
1
+ .TH POSTMAN 1 "2026-10-26" "v1.79.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 works locally by default for filesystem\-backed entities such as collections, environments, and API specifications. Commands that support cloud resources document the parameter that switches them to a Postman workspace, such as --workspace <id> or an equivalent. Use those workspace\-scoped options when you want the command to read from or write to cloud entities instead of local files.
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
- The filesystem\-backed entities can be synced to and from the cloud, using `workspace <push|pull>`.
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. \-\-no\-fetch skips the attempt.
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
- Region this runner reports to \-\- use "eu" for the EU region
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
- Filter to runners in this workspace
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
- Output the runner list as JSON instead of a table
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
- Output the region list as JSON instead of a table
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 a specification.
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 a specification.
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
- Invoke a monitor run and display results.
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\-region runs.
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 run's attempts.
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
- Invoke a monitor run and display results.
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
- Specify whether or not to override the default exit code for the current run
2588
+ Always exit 0, whatever the run's result or the failure
2494
2589
  .TP
2495
2590
  .B \-t, \-\-timeout <ms>
2496
- Maximum wait time for run completion in milliseconds (default: 15 minutes) (default: 900000)
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 return immediately with its job id and Postman URL, without waiting for completion
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
- Output the run's verdict as JSON instead of a table, printing nothing else
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 \-\- accepts the id shown in the Postman app, prefixed or bare
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 monitored collection with
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
- Request timeout in milliseconds
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
- Output as JSON instead of a table
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 monitored collection with (replaces the current one)
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
- Request timeout in milliseconds
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
- Output as JSON instead of a table
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 <id> \-\-schedule "0 */6 * * *" \-\-timezone UTC
2679
- postman monitor update <id> \-\-notify\-email a@example.com \-\-notify\-email b@example.com
2680
- postman monitor update <id> \-\-clear\-notifications
2681
- postman monitor update <id> \-\-runner us\-east \-\-runner <self\-hosted\-runner\-id>
2682
- postman monitor update <id> \-\-item <request\-id> \-\-item <folder\-id>
2683
- postman monitor update <id> \-\-clear\-items
2684
- postman monitor update <id> \-\-environment 12345678\-90ab\-cdef\-1234\-567890abcdef
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
- Output the outcome, including any failure, as JSON instead of a plain message
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\-region runs.
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
- Report one job's terminal state and its per\-region run outcomes.
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 <value>
2741
- Filter by outcome, for example success, failure, error or abort
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
- Filter by trigger, for example api, schedule, webhook or postman\-cli
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
- Maximum number of jobs to return
2868
+ Jobs per page, 1\-25 (default: 25)
2751
2869
  .TP
2752
- .B \-\-cursor <token>
2753
- Opaque pagination cursor
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
- Output as JSON instead of a table
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
- Report one job's terminal state and its per\-region run outcomes.
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
- Output as JSON instead of a table
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 run's attempts.
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
- Report which test assertions ran during one attempt of a run, which failed, and why.
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
- Report which test assertions ran during one attempt of a run, which failed, and why.
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 of the run to show, where 0 is the first (default: the most recent)
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 assertions
2943
+ Show only requests with a failed assertion, an exception or a network error
2799
2944
  .TP
2800
2945
  .B \-\-json
2801
- Output as JSON instead of a table
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
- Filter to monitors in this workspace
2973
+ Only monitors in this workspace (ids from `postman workspace list`)
2816
2974
  .TP
2817
2975
  .B \-c, \-\-collection <id>
2818
- Filter to monitors on this collection
2976
+ Only monitors on this collection: its id or uid
2819
2977
  .TP
2820
2978
  .B \-e, \-\-environment <id>
2821
- Filter to monitors on this environment
2979
+ Only monitors on this environment: its uid
2822
2980
  .TP
2823
2981
  .B \-\-runner <id>
2824
- Filter to a self\-hosted runner id, not a Postman region. Cannot be combined with \-\-workspace, \-\-collection, \-\-environment, \-\-owner, \-\-team or \-\-active
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
- Filter to monitors created by this user id (shown in the Owner column)
2985
+ Only monitors created by this user id: the `owner` field under \-\-json
2828
2986
  .TP
2829
2987
  .B \-\-team
2830
- Filter to monitors owned by your own team
2988
+ Accepted and ignored: every listing is limited to your team
2831
2989
  .TP
2832
2990
  .B \-\-active <true|false>
2833
- Filter by active state
2991
+ Only active (true) or paused (false) monitors
2834
2992
  .TP
2835
2993
  .B \-\-limit <n>
2836
- Maximum number of monitors to return (Postman caps the page size and rejects a larger value)
2994
+ Monitors per page, 1\-25
2837
2995
  .TP
2838
2996
  .B \-\-cursor <token>
2839
- Pagination cursor from a previous page's response
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, Status, ID, Schedule, Owner, Collection. Also available: State, Notifications, Environment, Runners
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
- Show only monitors whose name contains this text (applies to the returned page, case\-insensitive)
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
- Output as JSON instead of a table
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
- Eg. postman monitor list
2859
- postman monitor list \-w 12345678\-90ab\-cdef\-1234\-567890abcdef
2860
- postman monitor list \-\-active true \-\-sort name
2861
- postman monitor list \-\-runner 12345678\-90ab\-cdef\-1234\-567890abcdef
2862
- postman monitor list \-\-columns Name,State \-\-no\-headers
2863
- postman monitor list \-\-json
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
- Output as JSON instead of a table
3040
+ Print the monitor as JSON, every field present (null when unset)
2879
3041
 
2880
3042
  .TP Examples:
2881
3043
 
2882
- Eg. postman monitor get 12345678\-90ab\-cdef\-1234\-567890abcdef
2883
- postman monitor get 12345678\-90ab\-cdef\-1234\-567890abcdef \-\-json
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
- Maximum number of rows to show: executions, newest first, under \-\-json, or requests, worst\-behaving first, in the table. Applied to the results after they are fetched, so it does not make the command faster
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
- Output as JSON instead of a table
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
- Eg. postman monitor metrics 12345678\-90ab\-cdef\-1234\-567890abcdef
2915
- postman monitor metrics 12345678\-90ab\-cdef\-1234\-567890abcdef \-\-since 2026\-09\-01T00:00:00Z
2916
- postman monitor metrics 12345678\-90ab\-cdef\-1234\-567890abcdef \-\-filter "GET /health"
2917
- postman monitor metrics 12345678\-90ab\-cdef\-1234\-567890abcdef \-\-json
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
- Output as JSON instead of a table
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
- Output as JSON instead of a table
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.
@@ -2968,8 +3206,8 @@ Lint the current local Postman workspace: its configuration (.postman/resources.
2968
3206
  .B workspace get
2969
3207
  Read a workspace's metadata, and optionally the ids of what it holds.
2970
3208
  .TP
2971
- .B workspace activity
2972
- Read a workspace's activity feed.
3209
+ .B workspace context
3210
+ Read a workspace's recent activity: who changed what, and the messages left on pushes. Also available as `activity`.
2973
3211
  .TP
2974
3212
  .B workspace create
2975
3213
  Create a Postman workspace and bind it to this git repository.
@@ -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 git\-native folder.
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.
@@ -3057,6 +3298,9 @@ Skip all confirmation prompts
3057
3298
  .B \-\-push\-strategy <strategy>
3058
3299
  Push strategy. "force\-sync": mirror the whole workspace — also DELETE cloud entities that have no local counterpart (destructive). Defaults to "default" (create/update only).
3059
3300
  .TP
3301
+ .B \-m, \-\-message <text>
3302
+ Short note on what changed, like a commit message (max 500 characters). Shown on the workspace activity feed. Recorded only when the push changes something.
3303
+ .TP
3060
3304
  .B \-\-json
3061
3305
  Print the outcome as machine\-readable JSON. Implies non\-interactive: use \-\-yes to actually push.
3062
3306
  .TP
@@ -3120,8 +3364,8 @@ Exit codes: 0 ok, 1 not found or API failure, 2 bad usage, 3 auth.
3120
3364
 
3121
3365
 
3122
3366
 
3123
- .SS "workspace activity"
3124
- Read a workspace's activity feed.
3367
+ .SS "workspace context"
3368
+ Read a workspace's recent activity: who changed what, and the messages left on pushes. Also available as `activity`.
3125
3369
 
3126
3370
  .B Usage:
3127
3371
  [options] [id]
@@ -3129,7 +3373,7 @@ Read a workspace's activity feed.
3129
3373
  .B Options:
3130
3374
  .TP
3131
3375
  .B \-\-type <types>
3132
- Comma\-separated element types to filter on, e.g. "api,collection".
3376
+ Comma\-separated element types to filter on, e.g. "api,collection". Use "workspacePush" for the messages left with `workspace push \-m`.
3133
3377
  .TP
3134
3378
  .B \-\-contributor <ids>
3135
3379
  Comma\-separated user ids to filter on.
@@ -3146,19 +3390,23 @@ Ask the API for a human\-readable description of each entry.
3146
3390
  .B \-\-json
3147
3391
  Print the feed as machine\-readable JSON.
3148
3392
  .TP
3393
+ .B \-\-brief
3394
+ Print one plain line per entry (time, who, message), for a prompt or a log. Prints nothing when there are no entries.
3395
+ .TP
3149
3396
  .B \-\-timeout <ms>
3150
3397
  Milliseconds to wait for the API (default 30000).
3151
3398
 
3152
3399
  .TP Examples:
3153
3400
 
3154
3401
  Examples:
3155
- postman workspace activity
3402
+ postman workspace context
3156
3403
  Reads the current folder's bound workspace
3157
- postman workspace activity 00a50319\-1262\-49d2\-83e5\-551e3c5dba00
3158
- postman workspace activity <id> \-\-type api,collection
3159
- postman workspace activity <id> \-\-contributor <userId>
3160
- postman workspace activity <id> \-\-markdown
3161
- postman workspace activity <id> \-\-json
3404
+ postman workspace context 00a50319\-1262\-49d2\-83e5\-551e3c5dba00
3405
+ postman workspace context <id> \-\-type api,collection
3406
+ postman workspace context <id> \-\-contributor <userId>
3407
+ postman workspace context <id> \-\-markdown
3408
+ postman workspace context <id> \-\-json
3409
+ postman workspace context <id> \-\-type workspacePush \-\-limit 5 \-\-brief
3162
3410
 
3163
3411
  Exit codes: 0 ok, 1 not found or API failure, 2 bad usage, 3 auth.
3164
3412
 
@@ -3246,8 +3494,38 @@ Examples:
3246
3494
 
3247
3495
 
3248
3496
 
3497
+ .SS "workspace share"
3498
+ Grant a role on a workspace to one or more people.
3499
+
3500
+ .B Usage:
3501
+ [options] <workspaceId>
3502
+
3503
+ .B Options:
3504
+ .TP
3505
+ .B \-\-user <email|id>
3506
+ 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.
3507
+ .TP
3508
+ .B \-\-role <viewer|editor>
3509
+ The role to grant. (default: viewer)
3510
+ .TP
3511
+ .B \-\-json
3512
+ Print the outcome as machine\-readable JSON.
3513
+ .TP
3514
+ .B \-\-timeout <ms>
3515
+ Milliseconds to wait for Postman. Defaults to 30000.
3516
+ .TP
3517
+ .B \-\-api\-key <key>
3518
+ Postman API key (defaults to your `postman login` session)
3519
+
3520
+ .TP Examples:
3521
+
3522
+ Eg. postman workspace share 0f9a3d1e\-4c2b\-4a77\-9c31\-6b1f2e8d4a05 \-\-user alice@corp.com
3523
+ postman workspace share 0f9a3d1e\-... \-\-user alice@corp.com,bob@corp.com \-\-role editor
3524
+ postman workspace share 0f9a3d1e\-... \-\-user 31415926 \-\-json
3525
+
3526
+
3249
3527
  .SS "workspace pull"
3250
- Pull workspace entities from a Postman workspace into the local git\-native folder.
3528
+ Pull workspace entities from a Postman workspace into the local folder.
3251
3529
 
3252
3530
  .B Usage:
3253
3531
  [options] [workspaceId]
@@ -3270,10 +3548,9 @@ Show detailed logging
3270
3548
 
3271
3549
  Examples:
3272
3550
  postman workspace pull
3273
- Pull from the workspace connected to the current directory's git remote
3551
+ Pull from the workspace configured for the current directory
3274
3552
  postman workspace pull <workspaceId>
3275
- Connect the workspace to the current directory's git remote and pull
3276
- from the workspace.
3553
+ Pull from the workspace; connect Git first when an origin remote exists.
3277
3554
  postman workspace pull \-\-source\-workspace <workspaceId>
3278
3555
  Pull from another workspace
3279
3556
 
@@ -3570,9 +3847,9 @@ Load segments:
3570
3847
  ramp\-up — 2 segments
3571
3848
 
3572
3849
  peak ┤ _________ at peak __________
3573
- │ ramp\-up _____/
3574
- │ ______/
3575
- base ┤__ warm\-up ___/
3850
+ │ ramp\-up _____╱
3851
+ │ ______╱
3852
+ base ┤__ warm\-up ___╱
3576
3853
  └┬─────────────┬─────────────┬───────────────────────────┤ \-\-duration
3577
3854
  1 2 (3)
3578
3855
 
@@ -3584,10 +3861,10 @@ Load segments:
3584
3861
 
3585
3862
  spike — 3 segments · no time at the peak; use \-\-load\-profile peak to hold
3586
3863
 
3587
- peak ┤ /\e
3588
- │ ramp\-up _/ \e_ ramp\-down
3589
- │ _/ \e_
3590
- base ┤______ warm\-up _______/ \e______ at base _______
3864
+ peak ┤ ╱╲
3865
+ │ ramp\-up _╱ ╲_ ramp\-down
3866
+ │ _╱ ╲_
3867
+ base ┤______ warm\-up _______╱ ╲______ at base _______
3591
3868
  └┬─────────────────────┬─────┬─────┬─────────────────────┤ \-\-duration
3592
3869
  1 2 3 (4)
3593
3870
 
@@ -3600,9 +3877,9 @@ Load segments:
3600
3877
  peak — 4 segments
3601
3878
 
3602
3879
  peak ┤ __ hold ___
3603
- │ ramp\-up ____/ \e____ ramp\-down
3604
- │ ____/ \e____
3605
- base ┤_ warm\-up _/ \e_ at base __
3880
+ │ ramp\-up ____╱ ╲____ ramp\-down
3881
+ │ ____╱ ╲____
3882
+ base ┤_ warm\-up _╱ ╲_ at base __
3606
3883
  └┬──────────┬──────────┬──────────┬──────────┬───────────┤ \-\-duration
3607
3884
  1 2 3 4 (5)
3608
3885
 
@@ -4788,7 +5065,7 @@ Create, run, and manage Postman mocks — in your repository or in Postman cloud
4788
5065
  .B Subcommands:
4789
5066
  .TP
4790
5067
  .B mock generate
4791
- Generate a mock from a Postman collection or an OpenAPI file, or from a built\-in sample shopping\-cart mock (POST /cart/items, GET /cart, POST /checkout). Writes a local mock by default, or a cloud mock with \-\-workspace. Add \-\-deploy to also make it a live mock server.
5068
+ Generate a mock from a Postman collection, an OpenAPI file or a dataset, or from a built\-in sample shopping\-cart mock (POST /cart/items, GET /cart, POST /checkout). Writes a local mock by default, or a cloud mock with \-\-workspace. Add \-\-deploy to also make it a live mock server.
4792
5069
  .TP
4793
5070
  .B mock run
4794
5071
  Start a mock using its path if it lives in your repository, or its id if it lives in Postman cloud (fetched and run locally).
@@ -4812,7 +5089,7 @@ Show the requests a live mock server has received and the responses it sent, usi
4812
5089
  Delete a mock using its path if it lives in your repository, or its id if it lives in Postman cloud. Cannot be undone.
4813
5090
 
4814
5091
  .SS "mock generate"
4815
- Generate a mock from a Postman collection or an OpenAPI file, or from a built\-in sample shopping\-cart mock (POST /cart/items, GET /cart, POST /checkout). Writes a local mock by default, or a cloud mock with \-\-workspace. Add \-\-deploy to also make it a live mock server.
5092
+ Generate a mock from a Postman collection, an OpenAPI file or a dataset, or from a built\-in sample shopping\-cart mock (POST /cart/items, GET /cart, POST /checkout). Writes a local mock by default, or a cloud mock with \-\-workspace. Add \-\-deploy to also make it a live mock server.
4816
5093
 
4817
5094
  .B Usage:
4818
5095
  [sourcePath] [options]
@@ -4828,14 +5105,29 @@ Name for the mock. Taken from the source when you provide one; required for the
4828
5105
  .B \-\-port <port>
4829
5106
  Port the mock runs on (e.g. 4010) (default: 4500)
4830
5107
  .TP
5108
+ .B \-\-mode <mode>
5109
+ How the mock behaves: static (replays examples, the default), stateful (keeps records: create, read, list, update, delete), or ai (stateful, plus realistic data and business rules; generated by Postman, needs `postman login`).
5110
+ .TP
4831
5111
  .B \-\-stateful
4832
- 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.
5112
+ Same as \-\-mode stateful. Generated offline for a local file, by Postman with \-\-workspace, \-\-spec, \-\-collection or \-\-dataset (validated, with seed data). Endpoints that are not CRUD\-shaped stay static.
5113
+ .TP
5114
+ .B \-\-instructions <text>
5115
+ With \-\-mode ai: guidance for the AI, e.g. "Orders can only be cancelled before they ship".
5116
+ .TP
5117
+ .B \-\-spec <specId>
5118
+ Generate from a spec in Postman (by id) instead of a local file. With \-\-workspace, the mock stays linked to it and is regenerated when it changes.
5119
+ .TP
5120
+ .B \-\-collection <collectionId>
5121
+ Generate from a collection in Postman (by id) instead of a local file. With \-\-workspace, the mock stays linked to it and is regenerated when it changes.
5122
+ .TP
5123
+ .B \-\-dataset <datasetIdOrPath>
5124
+ Generate from a dataset: its tables become resources and their first 20 rows the records. A dataset in Postman (by id) or a local .dataset.yaml (CSV and JSON sources). Generated by Postman in stateful (the default) or ai mode; AI sees the column names and types, never the rows.
4833
5125
  .TP
4834
5126
  .B \-\-force
4835
5127
  Overwrite the mock's files if the target folder already has one
4836
5128
  .TP
4837
5129
  .B \-u, \-\-update <mockPath>
4838
- Update an existing mock from the source instead of creating a new one. Path to the mock, relative or absolute, e.g. ./postman/mocks/orders. Cannot be used with \-\-output.
5130
+ Regenerate an existing mock in place, e.g. ./postman/mocks/orders. Without a source or \-\-mode, it uses the ones the mock recorded. Cannot be used with \-\-output.
4839
5131
  .TP
4840
5132
  .B \-w, \-\-workspace <id>
4841
5133
  Save the mock to this Postman cloud workspace (by id) instead of your repository. Cannot be used with \-\-output, \-\-force, or \-\-update, except with \-\-deploy, where it only picks the workspace.
@@ -4849,11 +5141,14 @@ With \-\-deploy, let anyone with the link reach the server (default: callers nee
4849
5141
  .B \-s, \-\-slug <slug>
4850
5142
  With \-\-deploy, the short label used in the server's web address
4851
5143
  .TP
4852
- .B \-\-json
4853
- With \-\-deploy, print the live server details as machine\-readable data instead of a summary
5144
+ .B \-\-timeout <ms>
5145
+ How long to wait for Postman to generate the mock, in milliseconds (default 75000).
4854
5146
  .TP
4855
5147
  .B \-\-api\-key <key>
4856
- Postman API key to use with \-\-workspace or \-\-deploy (defaults to your `postman login` session)
5148
+ Postman API key for anything Postman generates, saves or deploys (defaults to your `postman login` session)
5149
+ .TP
5150
+ .B \-\-json
5151
+ Print the result as machine\-readable data instead of a summary: the generated mock, or with \-\-deploy the live server details
4857
5152
  .TP
4858
5153
  .B \-x, \-\-suppress\-exit\-code
4859
5154
  Always exit with code 0, even on failure
@@ -4867,7 +5162,11 @@ Eg. postman mock generate ./my\-collection.json
4867
5162
  postman mock generate ./openapi.yaml \-n orders \-\-deploy # generate and get a live URL
4868
5163
  postman mock generate ./openapi.yaml \-n orders \-\-deploy \-\-json # same, machine\-readable
4869
5164
  postman mock generate ./openapi.yaml \-\-stateful # CRUD handlers backed by pm.state
4870
- postman mock generate ./my\-collection.json \-\-update ./postman/mocks/orders
5165
+ postman mock generate ./openapi.yaml \-\-mode ai \-\-instructions "Orders ship in 2 days"
5166
+ postman mock generate \-\-spec <specId> \-\-mode stateful \-w <workspaceId> # linked cloud mock
5167
+ postman mock generate \-\-dataset ./postman/datasets/shop/shop.dataset.yaml # rows as records
5168
+ postman mock generate \-\-update ./postman/mocks/orders # regenerate from its recorded source
5169
+ postman mock generate \-\-spec <specId> \-\-mode ai \-o ./postman/mocks/orders \-\-json
4871
5170
  postman mock generate ./my\-collection.json \-w 12345678\-90ab\-cdef\-1234\-567890abcdef # save to Postman cloud
4872
5171
 
4873
5172
  Paths can be relative (e.g. ./my\-collection.json) or absolute (e.g. /Users/me/my\-collection.json).
@@ -4942,6 +5241,9 @@ Postman cloud workspace to upload to, by id (defaults to the workspace already l
4942
5241
  .TP
4943
5242
  .B \-\-api\-key <key>
4944
5243
  Postman API key (defaults to your `postman login` session)
5244
+ .TP
5245
+ .B \-\-json
5246
+ Print the result as machine\-readable data
4945
5247
 
4946
5248
  .TP Examples:
4947
5249
 
@@ -5009,7 +5311,7 @@ Show a mock's details using its path if it lives in your repository, or its id i
5009
5311
  Postman API key (defaults to your `postman login` session)
5010
5312
  .TP
5011
5313
  .B \-\-json
5012
- Print the details as machine\-readable data instead of a table
5314
+ Print the details as machine\-readable data instead of a summary
5013
5315
 
5014
5316
  .TP Examples:
5015
5317
 
@@ -5105,6 +5407,9 @@ Delete without asking for confirmation first
5105
5407
  .TP
5106
5408
  .B \-\-api\-key <key>
5107
5409
  Postman API key, used with a Postman cloud id (defaults to your `postman login` session)
5410
+ .TP
5411
+ .B \-\-json
5412
+ Print the result as machine\-readable data (requires \-\-yes)
5108
5413
 
5109
5414
  .TP Examples:
5110
5415
 
@@ -5376,7 +5681,7 @@ With \-\-deploy, let anyone with the link reach the server (default: callers nee
5376
5681
  With \-\-deploy, the short label used in the server's web address
5377
5682
  .TP
5378
5683
  .B \-\-json
5379
- With \-\-deploy, print the live server details as machine\-readable data instead of a summary
5684
+ Print the result (with \-\-deploy, the live server details) as machine\-readable data instead of a summary
5380
5685
  .TP
5381
5686
  .B \-\-api\-key <key>
5382
5687
  Postman API key (defaults to your `postman login` session)
@@ -5392,6 +5697,8 @@ Eg. postman simulation create \-n "Checkout" \-\-mock ./postman/mocks/payments \
5392
5697
 
5393
5698
  Local mock paths build a simulation file you serve with `postman simulation run`. Postman mock ids create it in your cloud workspace instead. Use one kind or the other, not both. Add \-\-deploy to upload it and get a live mock server.
5394
5699
 
5700
+ A <name>.context.md is written beside the .sim.yaml, holding what running this simulation has taught: the commands, the preconditions, and what a passing run still does not prove. `simulation update` renames it with the simulation and `simulation delete` removes it. An existing one is never overwritten, because it holds what earlier runs learned.
5701
+
5395
5702
 
5396
5703
  .SS "simulation list"
5397
5704
  List the simulations in your repository or Postman cloud workspace
@@ -5434,7 +5741,7 @@ Show a simulation's details using its .sim.yaml path if it lives in your reposit
5434
5741
  Postman API key (defaults to your `postman login` session)
5435
5742
  .TP
5436
5743
  .B \-\-json
5437
- Print the details as machine\-readable data instead of a table
5744
+ Print the details as machine\-readable data instead of a summary
5438
5745
 
5439
5746
  .TP Examples:
5440
5747
 
@@ -5460,7 +5767,7 @@ Path to a file of environment variables for the mocks (relative or absolute)
5460
5767
  Path to a file of global variables for the mocks (relative or absolute)
5461
5768
  .TP
5462
5769
  .B \-p, \-\-port <port>
5463
- Port to serve on (e.g. 4010), or "auto" for a free one (default 3000)
5770
+ Port to serve on (e.g. 4010), or "auto" for a free one. Omitted, it prefers 3000 but falls back to a free port when that one is busy, so an omitted port is not guaranteed: pass one to pin it, or read the bound port from \-\-output ndjson's "listening" event. Binds 127.0.0.1 only, so a caller in a container or VM cannot reach it.
5464
5771
  .TP
5465
5772
  .B \-\-dataset <pathOrDir>
5466
5773
  Dataset file or folder to load for pm.datasets (repeatable) (default: )
@@ -5487,22 +5794,25 @@ Show request and response headers and bodies for each request. By default each r
5487
5794
  Serve the mocks behind a local HTTP(S) forward proxy instead of one routed port, so a repo under test can point HTTP_PROXY/HTTPS_PROXY at it and reach each mock by hostname without code changes. Each mock is reached on the hostnames its `origin:` declares; a request to any other host reaches the real host unchanged.
5488
5795
  .TP
5489
5796
  .B \-\-proxy\-port <n>
5490
- Port for the proxy server. Distinct from \-\-port, which is the one\-port run's own port. (default: 7001)
5797
+ Port for the proxy server. Distinct from \-\-port, which is the one\-port run's own port. Bound to 127.0.0.1, so point clients there rather than at "localhost" — a client that resolves localhost to ::1 first will not reach it. A busy port exits 1. (default: 7001)
5491
5798
  .TP
5492
5799
  .B \-\-scenario <name>
5493
- Scenario each mock serves, sent as both pm\-mock\-scenario and x\-mock\-scenario. (default: default)
5800
+ Scenario each mock serves, sent as both pm\-mock\-scenario and x\-mock\-scenario. A member that defines no scenario by this name serves its default. (default: default)
5494
5801
  .TP
5495
5802
  .B \-\-session <id>
5496
5803
  Session id to select via the x\-mock\-session header (default: a generated id).
5497
5804
  .TP
5498
5805
  .B \-\-log\-format <format>
5499
- Proxy request log format: text or json. (default: text)
5806
+ Proxy request log format: text or json. Each line carries the method, host, path, destination (a routeKey, or "passthrough"), status and duration; json adds a timestamp, the scenario and the session. (default: text)
5500
5807
  .TP
5501
5808
  .B \-\-log\-body
5502
5809
  Also log each response body (truncated). Buffers full responses in memory; meant for temporary debugging, not left on by default.
5503
5810
  .TP
5504
5811
  .B \-\-doctor
5505
5812
  Start the proxy, probe each available HTTP client (fetch/undici/axios/node\-fetch) to confirm it honors HTTP_PROXY/HTTPS_PROXY, then exit.
5813
+ .TP
5814
+ .B \-\-lift <cmd>
5815
+ Start this command behind the proxy with HTTP_PROXY, HTTPS_PROXY and NODE_EXTRA_CA_CERTS already set in its environment, instead of printing them for you to export by hand. Runs as a child process, so the variables reach the code making the calls rather than the CLI. The proxy lives exactly as long as the command and exits with its exit code.
5506
5816
 
5507
5817
  .TP Examples:
5508
5818
 
@@ -5517,8 +5827,14 @@ Start history (source: cli): a simulation\-id run records automatically (the id
5517
5827
 
5518
5828
  Eg. postman simulation run ./postman/simulations/checkout/checkout.sim.yaml \-\-proxy
5519
5829
  postman simulation run ./postman/simulations/checkout/checkout.sim.yaml \-\-proxy \-\-doctor
5830
+ postman simulation run ./postman/simulations/checkout/checkout.sim.yaml \-\-proxy \e
5831
+ \-\-lift "npm start" # starts npm with the proxy variables already set
5520
5832
 
5521
- \-\-proxy reads the same .sim.yaml, starts the mocks on throwaway ports behind the proxy, and records no start history. Declare the hostnames a member stands in for under its `origin:` (postman simulation create \-\-origin) — a member with none is never matched.
5833
+ \-\-proxy reads the same .sim.yaml, starts the mocks on throwaway ports behind the proxy, and records no start history. The hostnames a member stands in for are its `origin:` in the .sim.yaml, as a string or a list, and a member with none is never matched, so its host reaches the real service. `simulation create` copies that value from the mock's own manifest, which is where it is declared — so adding an `origin:` to a manifest does not change a .sim.yaml that already exists. Edit the member, or recreate the simulation.
5834
+
5835
+ Because the mocks sit on throwaway ports, a manifest's own `port` is ignored. A member that does not answer within 30s gives 504 and one that cannot be reached gives 502. Ctrl+C prints the total, mocked and passed\-through request counts.
5836
+
5837
+ Every \-\-proxy\-* flag, plus \-\-scenario, \-\-session, \-\-log\-format, \-\-log\-body, \-\-doctor and \-\-lift, is inert without \-\-proxy and passing one alone is a usage error (exit 2), as is an unsupported \-\-log\-format.
5522
5838
 
5523
5839
 
5524
5840
  .SS "simulation push"
@@ -5534,6 +5850,9 @@ Postman cloud workspace to upload to, by id (defaults to the workspace already l
5534
5850
  .TP
5535
5851
  .B \-\-api\-key <key>
5536
5852
  Postman API key (defaults to your `postman login` session)
5853
+ .TP
5854
+ .B \-\-json
5855
+ Print the result as machine\-readable data
5537
5856
 
5538
5857
  .TP Examples:
5539
5858
 
@@ -5686,6 +6005,9 @@ Delete without asking for confirmation first
5686
6005
  .TP
5687
6006
  .B \-\-api\-key <key>
5688
6007
  Postman API key, used with a Postman cloud id (defaults to your `postman login` session)
6008
+ .TP
6009
+ .B \-\-json
6010
+ Print the result as machine\-readable data (requires \-\-yes)
5689
6011
 
5690
6012
  .TP Examples:
5691
6013
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "postman-cli",
3
- "version": "1.76.0",
3
+ "version": "1.79.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.76.0",
66
- "@postman/pm-bin-macos-x64": "1.76.0",
67
- "@postman/pm-bin-linux-x64": "1.76.0",
68
- "@postman/pm-bin-linux-arm64": "1.76.0",
69
- "@postman/pm-bin-windows-x64": "1.76.0"
65
+ "@postman/pm-bin-macos-arm64": "1.79.0",
66
+ "@postman/pm-bin-macos-x64": "1.79.0",
67
+ "@postman/pm-bin-linux-x64": "1.79.0",
68
+ "@postman/pm-bin-linux-arm64": "1.79.0",
69
+ "@postman/pm-bin-windows-x64": "1.79.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 install postman@claude-plugins-official',
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
  /**