postman-cli-completion 1.85.0 → 1.87.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.
@@ -1,4 +1,4 @@
1
- # Bash completion for Postman CLI (postman v1.85.0)
1
+ # Bash completion for Postman CLI (postman v1.87.0)
2
2
  # Auto-generated by scripts/generate.mjs — DO NOT EDIT
3
3
  # Source: spec/commands.json
4
4
  # https://github.com/yokawasa/postman-cli-completion
@@ -201,6 +201,7 @@ _postman_collection_get() {
201
201
  _postman_filematch '!*.@(pem|crt|key)' "$cur"
202
202
  return 0 ;;
203
203
  esac
204
+ _postman_filematch '!*.@(json)' "$cur"
204
205
  }
205
206
 
206
207
  _postman_collection_delete() {
@@ -798,7 +799,7 @@ _postman_dataset_view_run() {
798
799
 
799
800
  _postman_dataset_view_create() {
800
801
  if [[ "$cur" == -* ]]; then
801
- COMPREPLY=( $(compgen -W "-d --dataset -n --name -q --query -s --source --view-id --json --api-key -h --help" -- "$cur") )
802
+ COMPREPLY=( $(compgen -W "-d --dataset -n --name -q --query -s --source --view-id --no-validate --json --api-key -h --help" -- "$cur") )
802
803
  return 0
803
804
  fi
804
805
  case "$prev" in
@@ -1218,13 +1219,14 @@ _postman_mock() {
1218
1219
  if [[ "$cur" == -* ]]; then
1219
1220
  COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
1220
1221
  else
1221
- COMPREPLY=( $(compgen -W "generate run push deploy get list log delete" -- "$cur") )
1222
+ COMPREPLY=( $(compgen -W "generate run stop push deploy get list log delete" -- "$cur") )
1222
1223
  fi
1223
1224
  return 0
1224
1225
  fi
1225
1226
  case "$subcmd" in
1226
1227
  generate) _postman_mock_generate ;;
1227
1228
  run) _postman_mock_run ;;
1229
+ stop) _postman_mock_stop ;;
1228
1230
  push) _postman_mock_push ;;
1229
1231
  deploy) _postman_mock_deploy ;;
1230
1232
  get) _postman_mock_get ;;
@@ -1277,6 +1279,16 @@ _postman_mock_run() {
1277
1279
  _postman_filematch '!*.@(json)' "$cur"
1278
1280
  }
1279
1281
 
1282
+ _postman_mock_stop() {
1283
+ if [[ "$cur" == -* ]]; then
1284
+ COMPREPLY=( $(compgen -W "--timeout --json -h --help" -- "$cur") )
1285
+ return 0
1286
+ fi
1287
+ case "$prev" in
1288
+ esac
1289
+ _postman_filematch '!*.@(json)' "$cur"
1290
+ }
1291
+
1280
1292
  _postman_mock_push() {
1281
1293
  if [[ "$cur" == -* ]]; then
1282
1294
  COMPREPLY=( $(compgen -W "-w --workspace --api-key --json -h --help" -- "$cur") )
@@ -1566,40 +1578,35 @@ _postman_monitor_share() {
1566
1578
  }
1567
1579
 
1568
1580
  _postman_request() {
1581
+ if [[ -z "$subcmd" ]]; then
1582
+ if [[ "$cur" == -* ]]; then
1583
+ COMPREPLY=( $(compgen -W "-H --header -d --body -f --form -e --environment --timeout --redirects-ignore --redirects-max --redirects-follow-method --redirects-remove-referrer -k --insecure --ssl-client-cert-list --ssl-client-cert --ssl-client-key --ssl-client-passphrase --ssl-extra-ca-certs --cookie-jar --export-cookie-jar --retry --retry-delay --script-pre-request --script-post-request --dataset -o --output --verbose --response-only --debug --report-events --no-report-events -h --help --auth-basic-username --auth-basic-password --auth-bearer-token --auth-digest-username --auth-digest-password --auth-oauth1-consumerKey --auth-oauth1-consumerSecret --auth-oauth1-token --auth-oauth1-tokenSecret --auth-oauth2-accessToken --auth-oauth2-tokenType --auth-hawk-authId --auth-hawk-authKey --auth-hawk-algorithm --auth-aws-accessKey --auth-aws-secretKey --auth-aws-region --auth-aws-service --auth-aws-sessionToken --auth-ntlm-username --auth-ntlm-password --auth-ntlm-domain --auth-ntlm-workstation --auth-apikey-key --auth-apikey-value --auth-apikey-in" -- "$cur") )
1584
+ else
1585
+ COMPREPLY=( $(compgen -W "grpc" -- "$cur") )
1586
+ fi
1587
+ return 0
1588
+ fi
1589
+ case "$subcmd" in
1590
+ grpc) _postman_request_grpc ;;
1591
+ esac
1592
+ }
1593
+
1594
+ _postman_request_grpc() {
1569
1595
  if [[ "$cur" == -* ]]; then
1570
- COMPREPLY=( $(compgen -W "-H --header -d --body -f --form -e --environment --timeout --redirects-ignore --redirects-max --redirects-follow-method --redirects-remove-referrer -k --insecure --ssl-client-cert-list --ssl-client-cert --ssl-client-key --ssl-client-passphrase --ssl-extra-ca-certs --cookie-jar --export-cookie-jar --retry --retry-delay --script-pre-request --script-post-request --dataset -o --output --verbose --response-only --debug --report-events --no-report-events -h --help --auth-basic-username --auth-basic-password --auth-bearer-token --auth-digest-username --auth-digest-password --auth-oauth1-consumerKey --auth-oauth1-consumerSecret --auth-oauth1-token --auth-oauth1-tokenSecret --auth-oauth2-accessToken --auth-oauth2-tokenType --auth-hawk-authId --auth-hawk-authKey --auth-hawk-algorithm --auth-aws-accessKey --auth-aws-secretKey --auth-aws-region --auth-aws-service --auth-aws-sessionToken --auth-ntlm-username --auth-ntlm-password --auth-ntlm-domain --auth-ntlm-workstation --auth-apikey-key --auth-apikey-value --auth-apikey-in" -- "$cur") )
1596
+ COMPREPLY=( $(compgen -W "--list-methods --describe --proto --import-path --protoset --tls --server-name --emit-defaults --script-before-invoke --script-on-message --script-after-response -h --help" -- "$cur") )
1571
1597
  return 0
1572
1598
  fi
1573
1599
  case "$prev" in
1574
- -e|--environment)
1575
- _postman_filematch '!*.@(json)' "$cur"
1576
- return 0 ;;
1577
- --ssl-client-cert-list)
1578
- _postman_filematch '!*.@(pem|crt|key)' "$cur"
1579
- return 0 ;;
1580
- --ssl-client-cert)
1581
- _postman_filematch '!*.@(pem|crt|key)' "$cur"
1582
- return 0 ;;
1583
- --ssl-client-key)
1584
- _postman_filematch '!*.@(pem|crt|key)' "$cur"
1585
- return 0 ;;
1586
- --ssl-extra-ca-certs)
1587
- _postman_filematch '!*.@(pem|crt|key)' "$cur"
1588
- return 0 ;;
1589
- --cookie-jar)
1590
- _postman_filematch '!*.@(json)' "$cur"
1591
- return 0 ;;
1592
- --export-cookie-jar)
1600
+ --proto)
1593
1601
  _postman_filematch '!*.@(json)' "$cur"
1594
1602
  return 0 ;;
1595
- --dataset)
1603
+ --import-path)
1596
1604
  _postman_filematch '!*.@(json)' "$cur"
1597
1605
  return 0 ;;
1598
- -o|--output)
1606
+ --protoset)
1599
1607
  _postman_filematch '!*.@(json)' "$cur"
1600
1608
  return 0 ;;
1601
1609
  esac
1602
- _postman_filematch '!*.@(json)' "$cur"
1603
1610
  }
1604
1611
 
1605
1612
  _postman_runner() {
@@ -2814,7 +2821,7 @@ _postman_simulation() {
2814
2821
  if [[ "$cur" == -* ]]; then
2815
2822
  COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
2816
2823
  else
2817
- COMPREPLY=( $(compgen -W "create list get run push deploy update log delete" -- "$cur") )
2824
+ COMPREPLY=( $(compgen -W "create list get run stop push deploy update log delete" -- "$cur") )
2818
2825
  fi
2819
2826
  return 0
2820
2827
  fi
@@ -2823,6 +2830,7 @@ _postman_simulation() {
2823
2830
  list) _postman_simulation_list ;;
2824
2831
  get) _postman_simulation_get ;;
2825
2832
  run) _postman_simulation_run ;;
2833
+ stop) _postman_simulation_stop ;;
2826
2834
  push) _postman_simulation_push ;;
2827
2835
  deploy) _postman_simulation_deploy ;;
2828
2836
  update) _postman_simulation_update ;;
@@ -2895,6 +2903,15 @@ _postman_simulation_run() {
2895
2903
  esac
2896
2904
  }
2897
2905
 
2906
+ _postman_simulation_stop() {
2907
+ if [[ "$cur" == -* ]]; then
2908
+ COMPREPLY=( $(compgen -W "--timeout --json -h --help" -- "$cur") )
2909
+ return 0
2910
+ fi
2911
+ case "$prev" in
2912
+ esac
2913
+ }
2914
+
2898
2915
  _postman_simulation_push() {
2899
2916
  if [[ "$cur" == -* ]]; then
2900
2917
  COMPREPLY=( $(compgen -W "-w --workspace --api-key --json -h --help" -- "$cur") )
@@ -1,4 +1,4 @@
1
- # Fish completion for Postman CLI (postman v1.85.0)
1
+ # Fish completion for Postman CLI (postman v1.87.0)
2
2
  # Auto-generated by scripts/generate.mjs — DO NOT EDIT
3
3
  # Source: spec/commands.json
4
4
  # https://github.com/yokawasa/postman-cli-completion
@@ -30,7 +30,7 @@ complete -c postman -n __postman_no_subcommand -a fl -d 'Alias for flows'
30
30
  complete -c postman -n __postman_no_subcommand -a globals -d 'Work with local and cloud Postman globals'
31
31
  complete -c postman -n __postman_no_subcommand -a mock -d 'Create, run, and manage Postman mocks'
32
32
  complete -c postman -n __postman_no_subcommand -a monitor -d 'Run and manage Postman monitors'
33
- complete -c postman -n __postman_no_subcommand -a request -d 'Send HTTP requests with full Postman capabilities'
33
+ complete -c postman -n __postman_no_subcommand -a request -d 'Send HTTP and gRPC requests with full Postman capabilities'
34
34
  complete -c postman -n __postman_no_subcommand -a runner -d 'Start and inspect self-hosted runners, and list Postman-operated regions'
35
35
  complete -c postman -n __postman_no_subcommand -a sdk -d 'Generate and manage your SDKs directly from the command line'
36
36
  complete -c postman -n __postman_no_subcommand -a spec -d 'Lint and validate specifications from the command line'
@@ -80,7 +80,7 @@ complete -c postman -n '__postman_using_subcommand collection new migrate lint a
80
80
  complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get delete publish generate sync share request folder example import list run' -a migrate -d 'Migrate a v2.1 collection to the v3 format'
81
81
  complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get delete publish generate sync share request folder example import list run' -a lint -d 'Run linting on a local v3 collection at the given file or directory path.'
82
82
  complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get delete publish generate sync share request folder example import list run' -a ai-readiness -d 'Score a Postman collection for AI readiness by ID, local file path, or local-mode directory.'
83
- complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get delete publish generate sync share request folder example import list run' -a get -d 'Fetch a Postman collection in the V3 format and print it.'
83
+ complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get delete publish generate sync share request folder example import list run' -a get -d 'Read a local collection path or fetch a cloud collection by id, and print V3 JSON.'
84
84
  complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get delete publish generate sync share request folder example import list run' -a delete -d 'Delete a cloud collection by id or a local collection directory by path. Prompts unless --yes is passed.'
85
85
  complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get delete publish generate sync share request folder example import list run' -a publish -d 'Publish a cloud collection\'s documentation (or request Community Manager approval).'
86
86
  complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get delete publish generate sync share request folder example import list run' -a generate -d 'Generate artifacts from a collection.'
@@ -119,6 +119,7 @@ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_
119
119
  complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from get' -l api-key -d 'Postman API key (defaults to your `postman login` session)' -r
120
120
  complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from get' -l json -d 'Print the collection as machine-readable V3 JSON instead of a table'
121
121
  complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from get' -s h -l help -d 'display help for command'
122
+ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from get' -r -k -a '(__fish_complete_suffix .json)'
122
123
  # ---------- collection delete ----------
123
124
  complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from delete' -s y -l yes -d 'Delete without asking for confirmation first'
124
125
  complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from delete' -l api-key -d 'Postman API key, used when deleting a cloud collection' -r
@@ -391,7 +392,7 @@ complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_sub
391
392
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from list' -r -k -a '(__fish_complete_suffix .json)'
392
393
  # ---------- dataset get ----------
393
394
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from get' -l api-key -d 'Postman API key (defaults to the `postman login` session)' -r
394
- complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from get' -l no-populate -d 'Skip fetching datasources/views for a cloud dataset'
395
+ complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from get' -l no-populate -d 'Skip the table/column structure for a local dataset, or datasources/views for a cloud one'
395
396
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from get' -l json -d 'Output the full dataset as JSON'
396
397
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from get' -s h -l help -d 'display help for command'
397
398
  # ---------- dataset query ----------
@@ -434,7 +435,7 @@ complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_sub
434
435
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -l source-id -d 'Override the generated source id (local dataset only)' -x
435
436
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -l format -d 'Use this format instead of extension/type inference; file contents are not sniffed. A spreadsheet (xlsx/xls/ods) is added as one source per worksheet, each named source_<worksheet>' -x
436
437
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -l type -d 'Source kind; local is inferred from --file, jdbc from --driver-jar' -x
437
- complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -l file -d 'Path to a local CSV/JSON/spreadsheet file (absolute or cwd-relative)' -r
438
+ complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -l file -d 'Path to a local CSV/JSON/NDJSON/spreadsheet file (absolute or cwd-relative); .ndjson and .jsonl are read as json' -r
438
439
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -l ref-only -d 'Reference the file in place; do NOT copy into data_dir (local dataset)'
439
440
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -l force -d 'When copying, overwrite an existing file at the destination (local dataset)'
440
441
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -l upload -d 'Cloud dataset only: upload --file as a postmancloudfile source (runs via /exec). Without --upload, --file is registered as a local_filesystem source read by the local engine. Either way a cloud dataset takes csv/json only — add a spreadsheet to a local .dataset.yaml, where each worksheet becomes its own source.'
@@ -544,7 +545,7 @@ complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_sub
544
545
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from run' -s d -l dataset -d 'Dataset the view belongs to — a local .dataset.yaml path or a cloud dataset id' -x
545
546
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from run' -s p -l param -d 'Bind values to $1, $2, ... in order; pass multiple values after -p or repeat -p' -x
546
547
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from run' -l api-key -d 'Postman API key (defaults to the `postman login` session)' -r
547
- complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from run' -l json -d 'Output rows as JSON instead of a table'
548
+ complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from run' -l json -d 'Output rows as JSON instead of a table; a failure prints a JSON error on stdout'
548
549
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from run' -l debug -d 'Include safe classified dataset diagnostics'
549
550
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from run' -s h -l help -d 'display help for command'
550
551
  # ---------- dataset view create ----------
@@ -553,6 +554,7 @@ complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_sub
553
554
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from create' -s q -l query -d 'SQL query the view executes' -x
554
555
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from create' -s s -l source -d 'Bind the view to one datasource and run the query natively against it, instead of through the federated SQLite layer. Same reference `dataset query -s` takes' -x
555
556
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from create' -l view-id -d 'Override the generated view id (local only; cloud assigns its own)' -x
557
+ complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from create' -l no-validate -d 'Save the view without first checking that its query runs against the dataset'
556
558
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from create' -l json -d 'Emit the result as JSON instead of prose'
557
559
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from create' -l api-key -d 'Postman API key (defaults to the `postman login` session)' -r
558
560
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from create' -s h -l help -d 'display help for command'
@@ -792,14 +794,15 @@ complete -c postman -n '__fish_seen_subcommand_from globals; and __fish_seen_sub
792
794
  complete -c postman -n '__fish_seen_subcommand_from globals; and __fish_seen_subcommand_from lint' -r -k -a '(__fish_complete_suffix .json)'
793
795
 
794
796
  # ---------- mock ----------
795
- complete -c postman -n '__postman_using_subcommand mock generate run push deploy get list log delete' -a generate -d 'Generate a mock from a Postman collection, an OpenAPI file or a dataset, or a static mock from a built-in sample shopping cart (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.'
796
- complete -c postman -n '__postman_using_subcommand mock generate run push deploy get list log delete' -a run -d '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).'
797
- complete -c postman -n '__postman_using_subcommand mock generate run push deploy get list log delete' -a push -d 'Upload a mock from your repository to Postman cloud (creates it the first time, updates it after).'
798
- complete -c postman -n '__postman_using_subcommand mock generate run push deploy get list log delete' -a deploy -d 'Turn a mock in Postman cloud into a live mock server others can call over the internet.'
799
- complete -c postman -n '__postman_using_subcommand mock generate run push deploy get list log delete' -a get -d 'Show a mock\'s details using its path if it lives in your repository, or its id if it lives in Postman cloud.'
800
- complete -c postman -n '__postman_using_subcommand mock generate run push deploy get list log delete' -a list -d 'List the mocks in your repository or Postman cloud workspace'
801
- complete -c postman -n '__postman_using_subcommand mock generate run push deploy get list log delete' -a log -d 'Show the requests a live mock server has received and the responses it sent, using its id.'
802
- complete -c postman -n '__postman_using_subcommand mock generate run push deploy get list log delete' -a delete -d 'Delete a mock using its path if it lives in your repository, or its id if it lives in Postman cloud. Cannot be undone.'
797
+ complete -c postman -n '__postman_using_subcommand mock generate run stop push deploy get list log delete' -a generate -d 'Generate a mock from a Postman collection, an OpenAPI file or a dataset, or a static mock from a built-in sample shopping cart (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.'
798
+ complete -c postman -n '__postman_using_subcommand mock generate run stop push deploy get list log delete' -a run -d '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).'
799
+ complete -c postman -n '__postman_using_subcommand mock generate run stop push deploy get list log delete' -a stop -d 'Stop a mock started with `postman mock run` on this machine, and wait until it has exited and released its port.'
800
+ complete -c postman -n '__postman_using_subcommand mock generate run stop push deploy get list log delete' -a push -d 'Upload a mock from your repository to Postman cloud (creates it the first time, updates it after).'
801
+ complete -c postman -n '__postman_using_subcommand mock generate run stop push deploy get list log delete' -a deploy -d 'Turn a mock in Postman cloud into a live mock server others can call over the internet.'
802
+ complete -c postman -n '__postman_using_subcommand mock generate run stop push deploy get list log delete' -a get -d 'Show a mock\'s details using its path if it lives in your repository, or its id if it lives in Postman cloud.'
803
+ complete -c postman -n '__postman_using_subcommand mock generate run stop push deploy get list log delete' -a list -d 'List the mocks in your repository or Postman cloud workspace'
804
+ complete -c postman -n '__postman_using_subcommand mock generate run stop push deploy get list log delete' -a log -d 'Show the requests a live mock server has received and the responses it sent, using its id.'
805
+ complete -c postman -n '__postman_using_subcommand mock generate run stop push deploy get list log delete' -a delete -d 'Delete a mock using its path if it lives in your repository, or its id if it lives in Postman cloud. Cannot be undone.'
803
806
  complete -c postman -n '__fish_seen_subcommand_from mock' -s h -l help -d 'display help for command'
804
807
  # ---------- mock generate ----------
805
808
  complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from generate' -s o -l output -d 'Folder to save the mock in. Relative or absolute, e.g. ./postman/mocks/orders. Defaults to postman/mocks/<name>.' -r
@@ -835,6 +838,11 @@ complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcom
835
838
  complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from run' -l dataset -d 'Pass --dataset multiple times to load several .dataset.yaml files (or directories containing them). Each is made available to the mock\'s handlers as pm.datasets(<id>). (default: [])' -r
836
839
  complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from run' -s h -l help -d 'display help for command'
837
840
  complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from run' -r -k -a '(__fish_complete_suffix .json)'
841
+ # ---------- mock stop ----------
842
+ complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from stop' -l timeout -d 'Seconds to wait for a graceful shutdown before force-killing the mock (default 15)' -x
843
+ complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from stop' -l json -d 'Print the result as machine-readable data'
844
+ complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from stop' -s h -l help -d 'display help for command'
845
+ complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from stop' -r -k -a '(__fish_complete_suffix .json)'
838
846
  # ---------- mock push ----------
839
847
  complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from push' -s w -l workspace -d 'Postman cloud workspace to upload to, by id (defaults to the workspace already linked to this project)' -x
840
848
  complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from push' -l api-key -d 'Postman API key (defaults to your `postman login` session)' -r
@@ -1030,6 +1038,7 @@ complete -c postman -n '__fish_seen_subcommand_from monitor; and __fish_seen_sub
1030
1038
  complete -c postman -n '__fish_seen_subcommand_from monitor; and __fish_seen_subcommand_from share' -s h -l help -d 'display help for command'
1031
1039
 
1032
1040
  # ---------- request ----------
1041
+ complete -c postman -n '__postman_using_subcommand request grpc' -a grpc -d 'Invoke a gRPC method, or list and describe the methods a server exposes. The service definition comes from server reflection unless --proto or --protoset is given.'
1033
1042
  complete -c postman -n '__fish_seen_subcommand_from request' -s H -l header -d 'Add HTTP header in key:value format. Can be used multiple times. Example: -H "Content-Type:application/json" -H "X-API-Key:abc123" (default: [])' -x
1034
1043
  complete -c postman -n '__fish_seen_subcommand_from request' -s d -l body -d 'Request body content. Supports: inline string, @filepath for file content, or "-" for stdin. Example: --body \'{"name":"John"}\' or --body @data.json' -x
1035
1044
  complete -c postman -n '__fish_seen_subcommand_from request' -s f -l form -d 'Add multipart/form-data field in key=value format. Can be used multiple times. For file uploads use key=@filepath. Example: -f "name=John" -f "avatar=@photo.jpg" (default: [])' -x
@@ -1086,6 +1095,19 @@ complete -c postman -n '__fish_seen_subcommand_from request' -l auth-apikey-key
1086
1095
  complete -c postman -n '__fish_seen_subcommand_from request' -l auth-apikey-value -d 'Supply authentication parameters dynamically.' -x
1087
1096
  complete -c postman -n '__fish_seen_subcommand_from request' -l auth-apikey-in -d 'Supply authentication parameters dynamically.' -x
1088
1097
  complete -c postman -n '__fish_seen_subcommand_from request' -r -k -a '(__fish_complete_suffix .json)'
1098
+ # ---------- request grpc ----------
1099
+ complete -c postman -n '__fish_seen_subcommand_from request; and __fish_seen_subcommand_from grpc' -l list-methods -d 'List the services and methods instead of invoking one, with each method\'s streaming kind and message types.'
1100
+ complete -c postman -n '__fish_seen_subcommand_from request; and __fish_seen_subcommand_from grpc' -l describe -d 'Describe the method instead of invoking it: its message types and a request message template to fill in.'
1101
+ complete -c postman -n '__fish_seen_subcommand_from request; and __fish_seen_subcommand_from grpc' -l proto -d 'Read the service definition from a .proto file (or URL) instead of server reflection. Can be used multiple times. (default: [])' -r
1102
+ complete -c postman -n '__fish_seen_subcommand_from request; and __fish_seen_subcommand_from grpc' -l import-path -d 'Directory to resolve --proto imports from. Can be used multiple times. (default: [])' -r
1103
+ complete -c postman -n '__fish_seen_subcommand_from request; and __fish_seen_subcommand_from grpc' -l protoset -d 'Read the service definition from a compiled FileDescriptorSet (protoc --descriptor_set_out, buf build -o). Can be used multiple times. (default: [])' -r
1104
+ complete -c postman -n '__fish_seen_subcommand_from request; and __fish_seen_subcommand_from grpc' -l tls -d 'Connect with TLS to an address without a scheme, the same as grpcs://.'
1105
+ complete -c postman -n '__fish_seen_subcommand_from request; and __fish_seen_subcommand_from grpc' -l server-name -d 'Name to verify the server\'s TLS certificate against, when it differs from the address.' -x
1106
+ complete -c postman -n '__fish_seen_subcommand_from request; and __fish_seen_subcommand_from grpc' -l emit-defaults -d 'Include fields that hold their default value in response messages.'
1107
+ complete -c postman -n '__fish_seen_subcommand_from request; and __fish_seen_subcommand_from grpc' -l script-before-invoke -d 'Script run before the call is invoked. Inline JavaScript or @path. pm.request holds the message and metadata.' -x
1108
+ complete -c postman -n '__fish_seen_subcommand_from request; and __fish_seen_subcommand_from grpc' -l script-on-message -d 'Script run on every response message as it arrives. Inline JavaScript or @path. pm.message holds the message.' -x
1109
+ complete -c postman -n '__fish_seen_subcommand_from request; and __fish_seen_subcommand_from grpc' -l script-after-response -d 'Script run once the call has ended. Inline JavaScript or @path. pm.response holds the status, metadata and messages; pm.test() results are reported.' -x
1110
+ complete -c postman -n '__fish_seen_subcommand_from request; and __fish_seen_subcommand_from grpc' -s h -l help -d 'display help for command'
1089
1111
 
1090
1112
  # ---------- runner ----------
1091
1113
  complete -c postman -n '__postman_using_subcommand runner start list regions' -a start -d 'Start a self-hosted runner in your own network.'
@@ -1733,15 +1755,16 @@ complete -c postman -n '__fish_seen_subcommand_from secret; and __fish_seen_subc
1733
1755
  complete -c postman -n '__fish_seen_subcommand_from secret; and __fish_seen_subcommand_from list' -s h -l help -d 'display help for command'
1734
1756
 
1735
1757
  # ---------- simulation ----------
1736
- complete -c postman -n '__postman_using_subcommand simulation create list get run push deploy update log delete' -a create -d 'Create a simulation that serves several mocks behind one address. Add --deploy to also make it a live mock server.'
1737
- complete -c postman -n '__postman_using_subcommand simulation create list get run push deploy update log delete' -a list -d 'List the simulations in your repository or Postman cloud workspace'
1738
- complete -c postman -n '__postman_using_subcommand simulation create list get run push deploy update log delete' -a get -d 'Show a simulation\'s details using its .sim.yaml path if it lives in your repository, or its id if it lives in Postman cloud.'
1739
- complete -c postman -n '__postman_using_subcommand simulation create list get run push deploy update log delete' -a run -d 'Serve a simulation\'s mocks on one local port, routing each by its routeKey. Pass a .sim.yaml path (local) or a Postman simulation id (fetched and run locally).'
1740
- complete -c postman -n '__postman_using_subcommand simulation create list get run push deploy update log delete' -a push -d 'Upload a simulation from your repository to Postman cloud (creates it the first time, updates it after). Its member mocks are pushed too.'
1741
- complete -c postman -n '__postman_using_subcommand simulation create list get run push deploy update log delete' -a deploy -d 'Turn a simulation in Postman cloud into a live mock server others can call over the internet.'
1742
- complete -c postman -n '__postman_using_subcommand simulation create list get run push deploy update log delete' -a update -d 'Change a simulation in place — rename it, switch routing, add mocks, or change a member\'s address. Pass a .sim.yaml path (repository) or a Postman simulation id (cloud).'
1743
- complete -c postman -n '__postman_using_subcommand simulation create list get run push deploy update log delete' -a log -d 'Show the requests a deployed simulation has received and the responses it sent, using its mock server id.'
1744
- complete -c postman -n '__postman_using_subcommand simulation create list get run push deploy update log delete' -a delete -d 'Delete a simulation using its .sim.yaml path if it lives in your repository, or its id if it lives in Postman cloud. Cannot be undone.'
1758
+ complete -c postman -n '__postman_using_subcommand simulation create list get run stop push deploy update log delete' -a create -d 'Create a simulation that serves several mocks behind one address. Add --deploy to also make it a live mock server.'
1759
+ complete -c postman -n '__postman_using_subcommand simulation create list get run stop push deploy update log delete' -a list -d 'List the simulations in your repository or Postman cloud workspace'
1760
+ complete -c postman -n '__postman_using_subcommand simulation create list get run stop push deploy update log delete' -a get -d 'Show a simulation\'s details using its .sim.yaml path if it lives in your repository, or its id if it lives in Postman cloud.'
1761
+ complete -c postman -n '__postman_using_subcommand simulation create list get run stop push deploy update log delete' -a run -d 'Serve a simulation\'s mocks on one local port, routing each by its routeKey. Pass a .sim.yaml path (local) or a Postman simulation id (fetched and run locally).'
1762
+ complete -c postman -n '__postman_using_subcommand simulation create list get run stop push deploy update log delete' -a stop -d 'Stop a simulation started with `postman simulation run` on this machine, and wait until it has exited and released its port.'
1763
+ complete -c postman -n '__postman_using_subcommand simulation create list get run stop push deploy update log delete' -a push -d 'Upload a simulation from your repository to Postman cloud (creates it the first time, updates it after). Its member mocks are pushed too.'
1764
+ complete -c postman -n '__postman_using_subcommand simulation create list get run stop push deploy update log delete' -a deploy -d 'Turn a simulation in Postman cloud into a live mock server others can call over the internet.'
1765
+ complete -c postman -n '__postman_using_subcommand simulation create list get run stop push deploy update log delete' -a update -d 'Change a simulation in place — rename it, switch routing, add mocks, or change a member\'s address. Pass a .sim.yaml path (repository) or a Postman simulation id (cloud).'
1766
+ complete -c postman -n '__postman_using_subcommand simulation create list get run stop push deploy update log delete' -a log -d 'Show the requests a deployed simulation has received and the responses it sent, using its mock server id.'
1767
+ complete -c postman -n '__postman_using_subcommand simulation create list get run stop push deploy update log delete' -a delete -d 'Delete a simulation using its .sim.yaml path if it lives in your repository, or its id if it lives in Postman cloud. Cannot be undone.'
1745
1768
  complete -c postman -n '__fish_seen_subcommand_from simulation' -s h -l help -d 'display help for command'
1746
1769
  # ---------- simulation create ----------
1747
1770
  complete -c postman -n '__fish_seen_subcommand_from simulation; and __fish_seen_subcommand_from create' -s n -l name -d 'Name for the simulation' -x
@@ -1786,6 +1809,10 @@ complete -c postman -n '__fish_seen_subcommand_from simulation; and __fish_seen_
1786
1809
  complete -c postman -n '__fish_seen_subcommand_from simulation; and __fish_seen_subcommand_from run' -l doctor -d 'Start the proxy, probe each available HTTP client (fetch/undici/axios/node-fetch) to confirm it honors HTTP_PROXY/HTTPS_PROXY, then exit.'
1787
1810
  complete -c postman -n '__fish_seen_subcommand_from simulation; and __fish_seen_subcommand_from run' -l lift -d '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.' -x
1788
1811
  complete -c postman -n '__fish_seen_subcommand_from simulation; and __fish_seen_subcommand_from run' -s h -l help -d 'display help for command'
1812
+ # ---------- simulation stop ----------
1813
+ complete -c postman -n '__fish_seen_subcommand_from simulation; and __fish_seen_subcommand_from stop' -l timeout -d 'Seconds to wait for a graceful shutdown before force-killing the simulation (default 15)' -x
1814
+ complete -c postman -n '__fish_seen_subcommand_from simulation; and __fish_seen_subcommand_from stop' -l json -d 'Print the result as machine-readable data'
1815
+ complete -c postman -n '__fish_seen_subcommand_from simulation; and __fish_seen_subcommand_from stop' -s h -l help -d 'display help for command'
1789
1816
  # ---------- simulation push ----------
1790
1817
  complete -c postman -n '__fish_seen_subcommand_from simulation; and __fish_seen_subcommand_from push' -s w -l workspace -d 'Postman cloud workspace to upload to, by id (defaults to the workspace already linked to this project)' -x
1791
1818
  complete -c postman -n '__fish_seen_subcommand_from simulation; and __fish_seen_subcommand_from push' -l api-key -d 'Postman API key (defaults to your `postman login` session)' -r
@@ -1,6 +1,6 @@
1
1
  #compdef postman
2
2
  compdef _postman postman
3
- # Zsh completion for Postman CLI (postman v1.85.0)
3
+ # Zsh completion for Postman CLI (postman v1.87.0)
4
4
  # Auto-generated by scripts/generate.mjs — DO NOT EDIT
5
5
  # Source: spec/commands.json
6
6
  # https://github.com/yokawasa/postman-cli-completion
@@ -69,7 +69,7 @@ _postman_commands() {
69
69
  'globals:Work with local and cloud Postman globals'
70
70
  'mock:Create, run, and manage Postman mocks'
71
71
  'monitor:Run and manage Postman monitors'
72
- 'request:Send HTTP requests with full Postman capabilities'
72
+ 'request:Send HTTP and gRPC requests with full Postman capabilities'
73
73
  'runner:Start and inspect self-hosted runners, and list Postman-operated regions'
74
74
  'sdk:Generate and manage your SDKs directly from the command line'
75
75
  'spec:Lint and validate specifications from the command line'
@@ -184,7 +184,7 @@ _postman_collection_commands() {
184
184
  'migrate:Migrate a v2.1 collection to the v3 format'
185
185
  'lint:Run linting on a local v3 collection at the given file or directory path.'
186
186
  'ai-readiness:Score a Postman collection for AI readiness by ID, local file path, or local-mode directory.'
187
- 'get:Fetch a Postman collection in the V3 format and print it.'
187
+ 'get:Read a local collection path or fetch a cloud collection by id, and print V3 JSON.'
188
188
  'delete:Delete a cloud collection by id or a local collection directory by path. Prompts unless --yes is passed.'
189
189
  'publish:Publish a cloud collection'\''s documentation (or request Community Manager approval).'
190
190
  'generate:Generate artifacts from a collection.'
@@ -240,7 +240,7 @@ _postman_collection_get() {
240
240
  '--api-key[Postman API key (defaults to your `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
241
241
  '--json[Print the collection as machine-readable V3 JSON instead of a table]' \
242
242
  '(-h --help)'{-h,--help}'[display help for command]' \
243
- '*:id:'
243
+ '*:id-or-path:_files -g "*.json"'
244
244
  }
245
245
 
246
246
  _postman_collection_delete() {
@@ -739,7 +739,7 @@ _postman_dataset_list() {
739
739
  _postman_dataset_get() {
740
740
  _arguments \
741
741
  '--api-key[Postman API key (defaults to the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
742
- '--no-populate[Skip fetching datasources/views for a cloud dataset]' \
742
+ '--no-populate[Skip the table/column structure for a local dataset, or datasources/views for a cloud one]' \
743
743
  '--json[Output the full dataset as JSON]' \
744
744
  '(-h --help)'{-h,--help}'[display help for command]' \
745
745
  '*:datasetPathOrId:'
@@ -825,7 +825,7 @@ _postman_dataset_source_add() {
825
825
  '--source-id[Override the generated source id (local dataset only)]:uuid' \
826
826
  '--format[Use this format instead of extension/type inference; file contents are not sniffed. A spreadsheet (xlsx/xls/ods) is added as one source per worksheet, each named source_<worksheet>]:csv|json|xlsx|xls|ods|jdbc|mysql|postgres|sqlserver' \
827
827
  '--type[Source kind; local is inferred from --file, jdbc from --driver-jar]:local|mysql|postgresql|sqlserver|jdbc' \
828
- '--file[Path to a local CSV/JSON/spreadsheet file (absolute or cwd-relative)]:path:_files -g "*.json"' \
828
+ '--file[Path to a local CSV/JSON/NDJSON/spreadsheet file (absolute or cwd-relative); .ndjson and .jsonl are read as json]:path:_files -g "*.json"' \
829
829
  '--ref-only[Reference the file in place; do NOT copy into data_dir (local dataset)]' \
830
830
  '--force[When copying, overwrite an existing file at the destination (local dataset)]' \
831
831
  '--upload[Cloud dataset only\: upload --file as a postmancloudfile source (runs via /exec). Without --upload, --file is registered as a local_filesystem source read by the local engine. Either way a cloud dataset takes csv/json only — add a spreadsheet to a local .dataset.yaml, where each worksheet becomes its own source.]' \
@@ -978,7 +978,7 @@ _postman_dataset_view_run() {
978
978
  '(-d --dataset)'{-d,--dataset}'[Dataset the view belongs to — a local .dataset.yaml path or a cloud dataset id]:datasetPathOrId' \
979
979
  '(-p --param)'{-p,--param}'[Bind values to $1, $2, ... in order; pass multiple values after -p or repeat -p]:value...' \
980
980
  '--api-key[Postman API key (defaults to the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
981
- '--json[Output rows as JSON instead of a table]' \
981
+ '--json[Output rows as JSON instead of a table; a failure prints a JSON error on stdout]' \
982
982
  '--debug[Include safe classified dataset diagnostics]' \
983
983
  '(-h --help)'{-h,--help}'[display help for command]' \
984
984
  '*:viewNameOrId:'
@@ -991,6 +991,7 @@ _postman_dataset_view_create() {
991
991
  '(-q --query)'{-q,--query}'[SQL query the view executes]:sql' \
992
992
  '(-s --source)'{-s,--source}'[Bind the view to one datasource and run the query natively against it, instead of through the federated SQLite layer. Same reference `dataset query -s` takes]:nameOrIdOrSlug' \
993
993
  '--view-id[Override the generated view id (local only; cloud assigns its own)]:uuid' \
994
+ '--no-validate[Save the view without first checking that its query runs against the dataset]' \
994
995
  '--json[Emit the result as JSON instead of prose]' \
995
996
  '--api-key[Postman API key (defaults to the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
996
997
  '(-h --help)'{-h,--help}'[display help for command]'
@@ -1474,6 +1475,7 @@ _postman_mock() {
1474
1475
  case $words[1] in
1475
1476
  generate) _postman_mock_generate ;;
1476
1477
  run) _postman_mock_run ;;
1478
+ stop) _postman_mock_stop ;;
1477
1479
  push) _postman_mock_push ;;
1478
1480
  deploy) _postman_mock_deploy ;;
1479
1481
  get) _postman_mock_get ;;
@@ -1490,6 +1492,7 @@ _postman_mock_commands() {
1490
1492
  sub=(
1491
1493
  'generate:Generate a mock from a Postman collection, an OpenAPI file or a dataset, or a static mock from a built-in sample shopping cart (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.'
1492
1494
  'run: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).'
1495
+ 'stop:Stop a mock started with `postman mock run` on this machine, and wait until it has exited and released its port.'
1493
1496
  'push:Upload a mock from your repository to Postman cloud (creates it the first time, updates it after).'
1494
1497
  'deploy:Turn a mock in Postman cloud into a live mock server others can call over the internet.'
1495
1498
  'get:Show a mock'\''s details using its path if it lives in your repository, or its id if it lives in Postman cloud.'
@@ -1541,6 +1544,14 @@ _postman_mock_run() {
1541
1544
  '*:mockIdOrPath:_files -g "*.json"'
1542
1545
  }
1543
1546
 
1547
+ _postman_mock_stop() {
1548
+ _arguments \
1549
+ '--timeout[Seconds to wait for a graceful shutdown before force-killing the mock (default 15)]:seconds' \
1550
+ '--json[Print the result as machine-readable data]' \
1551
+ '(-h --help)'{-h,--help}'[display help for command]' \
1552
+ '*:mockIdOrPath:_files -g "*.json"'
1553
+ }
1554
+
1544
1555
  _postman_mock_push() {
1545
1556
  _arguments \
1546
1557
  '(-w --workspace)'{-w,--workspace}'[Postman cloud workspace to upload to, by id (defaults to the workspace already linked to this project)]:id' \
@@ -1877,7 +1888,9 @@ _postman_monitor_share() {
1877
1888
  }
1878
1889
 
1879
1890
  _postman_request() {
1880
- _arguments \
1891
+ local context state state_descr line
1892
+ typeset -A opt_args
1893
+ _arguments -C \
1881
1894
  '(-H --header)'{-H,--header}'[Add HTTP header in key\:value format. Can be used multiple times. Example\: -H "Content-Type\:application/json" -H "X-API-Key\:abc123" (default\: \[\])]:header' \
1882
1895
  '(-d --body)'{-d,--body}'[Request body content. Supports\: inline string, @filepath for file content, or "-" for stdin. Example\: --body '\''{"name"\:"John"}'\'' or --body @data.json]:body' \
1883
1896
  '(-f --form)'{-f,--form}'[Add multipart/form-data field in key=value format. Can be used multiple times. For file uploads use key=@filepath. Example\: -f "name=John" -f "avatar=@photo.jpg" (default\: \[\])]:field' \
@@ -1933,7 +1946,40 @@ _postman_request() {
1933
1946
  '--auth-apikey-key[Supply authentication parameters dynamically.]:value' \
1934
1947
  '--auth-apikey-value[Supply authentication parameters dynamically.]:value' \
1935
1948
  '--auth-apikey-in[Supply authentication parameters dynamically.]:value' \
1936
- '*:URL|request-file:_files -g "*.json"'
1949
+ '1: :_postman_request_commands' \
1950
+ '*::arg:->args'
1951
+ case $state in
1952
+ args)
1953
+ case $words[1] in
1954
+ grpc) _postman_request_grpc ;;
1955
+ esac
1956
+ ;;
1957
+ esac
1958
+ }
1959
+
1960
+ _postman_request_commands() {
1961
+ local -a sub
1962
+ sub=(
1963
+ 'grpc:Invoke a gRPC method, or list and describe the methods a server exposes. The service definition comes from server reflection unless --proto or --protoset is given.'
1964
+ )
1965
+ _describe -t commands 'request command' sub
1966
+ }
1967
+
1968
+ _postman_request_grpc() {
1969
+ _arguments \
1970
+ '--list-methods[List the services and methods instead of invoking one, with each method'\''s streaming kind and message types.]' \
1971
+ '--describe[Describe the method instead of invoking it\: its message types and a request message template to fill in.]' \
1972
+ '--proto[Read the service definition from a .proto file (or URL) instead of server reflection. Can be used multiple times. (default\: \[\])]:path:_files -g "*.json"' \
1973
+ '--import-path[Directory to resolve --proto imports from. Can be used multiple times. (default\: \[\])]:dir:_files -g "*.json"' \
1974
+ '--protoset[Read the service definition from a compiled FileDescriptorSet (protoc --descriptor_set_out, buf build -o). Can be used multiple times. (default\: \[\])]:path:_files -g "*.json"' \
1975
+ '--tls[Connect with TLS to an address without a scheme, the same as grpcs\://.]' \
1976
+ '--server-name[Name to verify the server'\''s TLS certificate against, when it differs from the address.]:name' \
1977
+ '--emit-defaults[Include fields that hold their default value in response messages.]' \
1978
+ '--script-before-invoke[Script run before the call is invoked. Inline JavaScript or @path. pm.request holds the message and metadata.]:script' \
1979
+ '--script-on-message[Script run on every response message as it arrives. Inline JavaScript or @path. pm.message holds the message.]:script' \
1980
+ '--script-after-response[Script run once the call has ended. Inline JavaScript or @path. pm.response holds the status, metadata and messages; pm.test() results are reported.]:script' \
1981
+ '(-h --help)'{-h,--help}'[display help for command]' \
1982
+ '*:method:'
1937
1983
  }
1938
1984
 
1939
1985
  _postman_runner() {
@@ -3402,6 +3448,7 @@ _postman_simulation() {
3402
3448
  list) _postman_simulation_list ;;
3403
3449
  get) _postman_simulation_get ;;
3404
3450
  run) _postman_simulation_run ;;
3451
+ stop) _postman_simulation_stop ;;
3405
3452
  push) _postman_simulation_push ;;
3406
3453
  deploy) _postman_simulation_deploy ;;
3407
3454
  update) _postman_simulation_update ;;
@@ -3419,6 +3466,7 @@ _postman_simulation_commands() {
3419
3466
  'list:List the simulations in your repository or Postman cloud workspace'
3420
3467
  'get:Show a simulation'\''s details using its .sim.yaml path if it lives in your repository, or its id if it lives in Postman cloud.'
3421
3468
  'run:Serve a simulation'\''s mocks on one local port, routing each by its routeKey. Pass a .sim.yaml path (local) or a Postman simulation id (fetched and run locally).'
3469
+ 'stop:Stop a simulation started with `postman simulation run` on this machine, and wait until it has exited and released its port.'
3422
3470
  'push:Upload a simulation from your repository to Postman cloud (creates it the first time, updates it after). Its member mocks are pushed too.'
3423
3471
  'deploy:Turn a simulation in Postman cloud into a live mock server others can call over the internet.'
3424
3472
  'update:Change a simulation in place — rename it, switch routing, add mocks, or change a member'\''s address. Pass a .sim.yaml path (repository) or a Postman simulation id (cloud).'
@@ -3485,6 +3533,14 @@ _postman_simulation_run() {
3485
3533
  '*:simIdOrPath:'
3486
3534
  }
3487
3535
 
3536
+ _postman_simulation_stop() {
3537
+ _arguments \
3538
+ '--timeout[Seconds to wait for a graceful shutdown before force-killing the simulation (default 15)]:seconds' \
3539
+ '--json[Print the result as machine-readable data]' \
3540
+ '(-h --help)'{-h,--help}'[display help for command]' \
3541
+ '*:simIdOrPath:'
3542
+ }
3543
+
3488
3544
  _postman_simulation_push() {
3489
3545
  _arguments \
3490
3546
  '(-w --workspace)'{-w,--workspace}'[Postman cloud workspace to upload to, by id (defaults to the workspace already linked to this project)]:id' \
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "postman-cli-completion",
3
- "version": "1.85.0",
3
+ "version": "1.87.0",
4
4
  "description": "Shell completions for the Postman CLI (zsh, bash, fish)",
5
5
  "type": "module",
6
6
  "bin": {