postman-cli-completion 1.47.2 → 1.49.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.47.2)
1
+ # Bash completion for Postman CLI (postman v1.49.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
@@ -382,7 +382,7 @@ _postman_workspace() {
382
382
  if [[ "$cur" == -* ]]; then
383
383
  COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
384
384
  else
385
- COMPREPLY=( $(compgen -W "list prepare push" -- "$cur") )
385
+ COMPREPLY=( $(compgen -W "list prepare push lint" -- "$cur") )
386
386
  fi
387
387
  return 0
388
388
  fi
@@ -390,6 +390,7 @@ _postman_workspace() {
390
390
  list) _postman_workspace_list ;;
391
391
  prepare) _postman_workspace_prepare ;;
392
392
  push) _postman_workspace_push ;;
393
+ lint) _postman_workspace_lint ;;
393
394
  esac
394
395
  }
395
396
 
@@ -418,6 +419,15 @@ _postman_workspace_push() {
418
419
  esac
419
420
  }
420
421
 
422
+ _postman_workspace_lint() {
423
+ if [[ "$cur" == -* ]]; then
424
+ COMPREPLY=( $(compgen -W "-f --fail-severity -o --output --meta --workspace-id -h --help" -- "$cur") )
425
+ return 0
426
+ fi
427
+ case "$prev" in
428
+ esac
429
+ }
430
+
421
431
  _postman_performance() {
422
432
  if [[ -z "$subcmd" ]]; then
423
433
  if [[ "$cur" == -* ]]; then
@@ -434,7 +444,7 @@ _postman_performance() {
434
444
 
435
445
  _postman_performance_run() {
436
446
  if [[ "$cur" == -* ]]; then
437
- COMPREPLY=( $(compgen -W "-e --environment -g --globals --vu-count -d --duration -p --load-profile --data-file --postman-api-key --pass-if -h --help" -- "$cur") )
447
+ COMPREPLY=( $(compgen -W "-e --environment -g --globals --vu-count -d --duration -p --load-profile --data-file --dataset-id --dataset-view-id --dataset-distribution --postman-api-key --pass-if -h --help" -- "$cur") )
438
448
  return 0
439
449
  fi
440
450
  case "$prev" in
@@ -509,7 +519,7 @@ _postman_flows_deploy() {
509
519
 
510
520
  _postman_flows_run() {
511
521
  if [[ "$cur" == -* ]]; then
512
- COMPREPLY=( $(compgen -W "-i --input -f --input-file -s --scenario -e --environment --working-dir --verbose --no-truncate --output --reporters -x --suppress-exit-code --workspace --verbose --debug --json -h --help" -- "$cur") )
522
+ COMPREPLY=( $(compgen -W "-i --input -f --input-file -s --scenario --iteration-data-dataset --iteration-data-view -m --map-column -e --environment --working-dir --no-insecure-file-read --verbose --no-truncate --output --reporters -x --suppress-exit-code --workspace --verbose --debug --json -h --help" -- "$cur") )
513
523
  return 0
514
524
  fi
515
525
  case "$prev" in
@@ -519,6 +529,9 @@ _postman_flows_run() {
519
529
  -f|--input-file)
520
530
  _postman_filematch '!*.@(json)' "$cur"
521
531
  return 0 ;;
532
+ --iteration-data-dataset)
533
+ _postman_filematch '!*.@(json|csv)' "$cur"
534
+ return 0 ;;
522
535
  -e|--environment)
523
536
  _postman_filematch '!*.@(json)' "$cur"
524
537
  return 0 ;;
@@ -758,7 +771,7 @@ _postman_application_init() {
758
771
 
759
772
  _postman_application_test() {
760
773
  if [[ "$cur" == -* ]]; then
761
- COMPREPLY=( $(compgen -W "--target --target-collection --target-environment --command --network-log --capture-only --output --force --report-events --verbose -h --help" -- "$cur") )
774
+ COMPREPLY=( $(compgen -W "--target --target-collection --target-environment --command --deployed-version --network-log --capture-only --output --force --report-events --verbose -h --help" -- "$cur") )
762
775
  return 0
763
776
  fi
764
777
  case "$prev" in
@@ -1056,7 +1069,7 @@ _postman_webhook() {
1056
1069
  if [[ "$cur" == -* ]]; then
1057
1070
  COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
1058
1071
  else
1059
- COMPREPLY=( $(compgen -W "create start pause list delete status requests forward" -- "$cur") )
1072
+ COMPREPLY=( $(compgen -W "create start pause list delete status requests scripts forward" -- "$cur") )
1060
1073
  fi
1061
1074
  return 0
1062
1075
  fi
@@ -1068,6 +1081,7 @@ _postman_webhook() {
1068
1081
  delete) _postman_webhook_delete ;;
1069
1082
  status) _postman_webhook_status ;;
1070
1083
  requests) _postman_webhook_requests ;;
1084
+ scripts) _postman_webhook_scripts ;;
1071
1085
  forward) _postman_webhook_forward ;;
1072
1086
  esac
1073
1087
  }
@@ -1174,7 +1188,7 @@ _postman_webhook_requests_list() {
1174
1188
 
1175
1189
  _postman_webhook_requests_describe() {
1176
1190
  if [[ "$cur" == -* ]]; then
1177
- COMPREPLY=( $(compgen -W "-w --workspace --api-key -h --help" -- "$cur") )
1191
+ COMPREPLY=( $(compgen -W "-w --workspace --api-key --verbose -h --help" -- "$cur") )
1178
1192
  return 0
1179
1193
  fi
1180
1194
  case "$prev" in
@@ -1196,6 +1210,32 @@ _postman_webhook_requests_replay() {
1196
1210
  esac
1197
1211
  }
1198
1212
 
1213
+ _postman_webhook_scripts() {
1214
+ if [[ -z "$subcmd" ]]; then
1215
+ if [[ "$cur" == -* ]]; then
1216
+ COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
1217
+ else
1218
+ COMPREPLY=( $(compgen -W "set" -- "$cur") )
1219
+ fi
1220
+ return 0
1221
+ fi
1222
+ case "$subcmd" in
1223
+ set) _postman_webhook_scripts_set ;;
1224
+ esac
1225
+ }
1226
+
1227
+ _postman_webhook_scripts_set() {
1228
+ if [[ "$cur" == -* ]]; then
1229
+ COMPREPLY=( $(compgen -W "--event -w --workspace --api-key -h --help" -- "$cur") )
1230
+ return 0
1231
+ fi
1232
+ case "$prev" in
1233
+ --api-key)
1234
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
1235
+ return 0 ;;
1236
+ esac
1237
+ }
1238
+
1199
1239
  _postman_webhook_forward() {
1200
1240
  if [[ "$cur" == -* ]]; then
1201
1241
  COMPREPLY=( $(compgen -W "-w --workspace --api-key -h --help" -- "$cur") )
@@ -1,4 +1,4 @@
1
- # Fish completion for Postman CLI (postman v1.47.2)
1
+ # Fish completion for Postman CLI (postman v1.49.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
@@ -208,9 +208,10 @@ complete -c postman -n '__fish_seen_subcommand_from monitor; and __fish_seen_sub
208
208
  complete -c postman -n '__fish_seen_subcommand_from monitor; and __fish_seen_subcommand_from run' -s h -l help -d 'display help for command'
209
209
 
210
210
  # ---------- workspace ----------
211
- complete -c postman -n '__postman_using_subcommand workspace list prepare push' -a list -d 'List all available Postman Workspaces'
212
- complete -c postman -n '__postman_using_subcommand workspace list prepare push' -a prepare -d 'Prepare local collections and environments for push by validating and regenerating IDs if needed.'
213
- complete -c postman -n '__postman_using_subcommand workspace list prepare push' -a push -d 'Push local workspace entities (collections, environments, specifications, and more) to Postman workspace.'
211
+ complete -c postman -n '__postman_using_subcommand workspace list prepare push lint' -a list -d 'List all available Postman Workspaces'
212
+ complete -c postman -n '__postman_using_subcommand workspace list prepare push lint' -a prepare -d 'Prepare local collections and environments for push by validating and regenerating IDs if needed.'
213
+ complete -c postman -n '__postman_using_subcommand workspace list prepare push lint' -a push -d 'Push local workspace entities (collections, environments, specifications, and more) to Postman workspace.'
214
+ complete -c postman -n '__postman_using_subcommand workspace list prepare push lint' -a lint -d 'Lint the current local Postman workspace: its configuration (.postman/resources.yaml) plus every discovered entity. Use --meta to lint only the configuration.'
214
215
  complete -c postman -n '__fish_seen_subcommand_from workspace' -s h -l help -d 'display help for command'
215
216
  # ---------- workspace list ----------
216
217
  complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from list' -s f -l filter -d 'Filter workspaces by name.' -x
@@ -229,6 +230,12 @@ complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_s
229
230
  complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from push' -l verbose -d 'Show detailed logging'
230
231
  complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from push' -l report-events -d 'Send workspace push events to Postman'
231
232
  complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from push' -s h -l help -d 'display help for command'
233
+ # ---------- workspace lint ----------
234
+ complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from lint' -s f -l fail-severity -d 'Exit with failure if diagnostics at this level or above are present. [choices: "error", "warning", "info", "hint"] (default: "error")' -x
235
+ complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from lint' -s o -l output -d 'Output format: cli (human-readable), table, or json. (default: "cli")' -x
236
+ complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from lint' -l meta -d 'Only lint the workspace configuration (.postman/resources.yaml); skip per-entity linting.'
237
+ complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from lint' -l workspace-id -d 'The workspace ID to use for fetching governance rulesets. Defaults to the id in .postman/resources.yaml.' -x
238
+ complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from lint' -s h -l help -d 'display help for command'
232
239
 
233
240
  # ---------- performance ----------
234
241
  complete -c postman -n '__postman_using_subcommand performance run' -a run -d 'Run a performance test on a collection'
@@ -240,6 +247,9 @@ complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen
240
247
  complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -s d -l duration -d 'Duration of the performance test in minutes (default: 1)' -x
241
248
  complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -s p -l load-profile -d 'Load profile type: fixed, ramp-up, spike, peak (default: "ramp-up")' -x
242
249
  complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -l data-file -d 'Path to a JSON or CSV data file to use with the collection' -r
250
+ complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -l dataset-id -d 'Use a Postman Dataset as iteration data (with --dataset-view-id)' -x
251
+ complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -l dataset-view-id -d 'Dataset view to execute for iteration data (requires --dataset-id)' -x
252
+ complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -l dataset-distribution -d 'How rows map to VUs: round-robin (default), fixed, random' -x
243
253
  complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -l postman-api-key -d 'API Key used to load the resources from the Postman API (Only supported in the US region, use \'postman login --region\' to authenticate instead)' -x
244
254
  complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -l pass-if -d 'Pass condition in format: function(metric, value). Functions: less_than, greater_than, less_than_eq, greater_than_eq. Metrics: avg, p90, p95, p99, error_rate, rps. Example: less_than(p95, 500) or less_than(error_rate, 5)' -x
245
255
  complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -s h -l help -d 'display help for command'
@@ -288,8 +298,12 @@ complete -c postman -n '__fish_seen_subcommand_from flows; and __fish_seen_subco
288
298
  complete -c postman -n '__fish_seen_subcommand_from flows; and __fish_seen_subcommand_from run' -s i -l input -d 'Set flow inputs as key=value pairs (e.g. --input foo=bar --input baz=qux) (default: [])' -r
289
299
  complete -c postman -n '__fish_seen_subcommand_from flows; and __fish_seen_subcommand_from run' -s f -l input-file -d 'Set flow inputs from JSON files (e.g. --input-file ./inputs.json --input-file ./config.json) (default: [])' -r
290
300
  complete -c postman -n '__fish_seen_subcommand_from flows; and __fish_seen_subcommand_from run' -s s -l scenario -d 'Use a pre-built scenario as flow inputs (by scenario name). Can be combined with --input and --input-file to override values.' -x
301
+ complete -c postman -n '__fish_seen_subcommand_from flows; and __fish_seen_subcommand_from run' -l iteration-data-dataset -d '[BETA] Run the flow once per row of a dataset view. Accepts a local .dataset.yaml path or a cloud dataset id (cloud requires login). Requires --iteration-data-view. Dataset columns feed the flow inputs (see --map-column).' -r
302
+ complete -c postman -n '__fish_seen_subcommand_from flows; and __fish_seen_subcommand_from run' -l iteration-data-view -d '[BETA] Name or id of the view (within --iteration-data-dataset) whose rows drive the run.' -x
303
+ complete -c postman -n '__fish_seen_subcommand_from flows; and __fish_seen_subcommand_from run' -s m -l map-column -d '[BETA] Bind a flow input to a dataset column (e.g. -m isActive=active). Repeatable. Inputs whose name matches a column bind automatically. (default: [])' -x
291
304
  complete -c postman -n '__fish_seen_subcommand_from flows; and __fish_seen_subcommand_from run' -s e -l environment -d 'Specify a path to a Postman Environment file (JSON or YAML)' -r
292
305
  complete -c postman -n '__fish_seen_subcommand_from flows; and __fish_seen_subcommand_from run' -l working-dir -d 'Specify the path to the working directory' -x
306
+ complete -c postman -n '__fish_seen_subcommand_from flows; and __fish_seen_subcommand_from run' -l no-insecure-file-read -d 'Prevent reading dataset files situated outside of the working directory (applies to --iteration-data-dataset)'
293
307
  complete -c postman -n '__fish_seen_subcommand_from flows; and __fish_seen_subcommand_from run' -l verbose -d 'Show detailed information of flow run and each request (method, URL, assertions)'
294
308
  complete -c postman -n '__fish_seen_subcommand_from flows; and __fish_seen_subcommand_from run' -l no-truncate -d 'Show full output without truncating long values'
295
309
  complete -c postman -n '__fish_seen_subcommand_from flows; and __fish_seen_subcommand_from run' -l output -d 'Save execution result to a file (supported: json)' -x
@@ -481,6 +495,7 @@ complete -c postman -n '__fish_seen_subcommand_from application; and __fish_seen
481
495
  complete -c postman -n '__fish_seen_subcommand_from application; and __fish_seen_subcommand_from test' -l target-collection -d 'Collection override for the selected target (repeatable) (default: [])' -r
482
496
  complete -c postman -n '__fish_seen_subcommand_from application; and __fish_seen_subcommand_from test' -l target-environment -d 'Environment override for the selected target (last value wins) (default: [])' -r
483
497
  complete -c postman -n '__fish_seen_subcommand_from application; and __fish_seen_subcommand_from test' -l command -d 'Command to run first (primary task). Overrides config.' -x
498
+ complete -c postman -n '__fish_seen_subcommand_from application; and __fish_seen_subcommand_from test' -l deployed-version -d 'Version identity of the application under test (e.g. a build ID, release tag, or version string). Also read from the APP_DEPLOYED_VERSION environment variable.' -x
484
499
  complete -c postman -n '__fish_seen_subcommand_from application; and __fish_seen_subcommand_from test' -l network-log -d 'Directory to scan for captured artifacts, or a direct path to a Playwright JSON report / NDJSON capture file. When a directory is given, recursively discovers `*.json` Playwright reports plus their `trace.zip` attachments, and `network-capture-*.ndjson` at the top level. By default, scans Playwright config `outputDir`, test-results/, then pm-results/.' -r
485
500
  complete -c postman -n '__fish_seen_subcommand_from application; and __fish_seen_subcommand_from test' -l capture-only -d 'Skip collection matching and tests; capture traffic and save a V3 collection organised by host'
486
501
  complete -c postman -n '__fish_seen_subcommand_from application; and __fish_seen_subcommand_from test' -l output -d 'Output directory for captured collection (default: pm-results/captured/; used with --capture-only)' -r
@@ -587,14 +602,15 @@ complete -c postman -n '__fish_seen_subcommand_from search; and __fish_seen_subc
587
602
  complete -c postman -n '__fish_seen_subcommand_from search; and __fish_seen_subcommand_from documents' -s h -l help -d 'display help for command'
588
603
 
589
604
  # ---------- webhook ----------
590
- complete -c postman -n '__postman_using_subcommand webhook create start pause list delete status requests forward' -a create -d 'Create a new webhook and print its public URL.'
591
- complete -c postman -n '__postman_using_subcommand webhook create start pause list delete status requests forward' -a start -d 'Activate a webhook so it can receive requests.'
592
- complete -c postman -n '__postman_using_subcommand webhook create start pause list delete status requests forward' -a pause -d 'Pause a webhook so it no longer accepts requests.'
593
- complete -c postman -n '__postman_using_subcommand webhook create start pause list delete status requests forward' -a list -d 'List all webhooks in a workspace.'
594
- complete -c postman -n '__postman_using_subcommand webhook create start pause list delete status requests forward' -a delete -d 'Permanently delete a webhook.'
595
- complete -c postman -n '__postman_using_subcommand webhook create start pause list delete status requests forward' -a status -d 'Show details for a webhook.'
596
- complete -c postman -n '__postman_using_subcommand webhook create start pause list delete status requests forward' -a requests -d 'List, inspect, and replay requests received by a webhook.'
597
- complete -c postman -n '__postman_using_subcommand webhook create start pause list delete status requests forward' -a forward -d 'Forward incoming webhook requests to a local port.'
605
+ complete -c postman -n '__postman_using_subcommand webhook create start pause list delete status requests scripts forward' -a create -d 'Create a new webhook and print its public URL.'
606
+ complete -c postman -n '__postman_using_subcommand webhook create start pause list delete status requests scripts forward' -a start -d 'Activate a webhook so it can receive requests.'
607
+ complete -c postman -n '__postman_using_subcommand webhook create start pause list delete status requests scripts forward' -a pause -d 'Pause a webhook so it no longer accepts requests.'
608
+ complete -c postman -n '__postman_using_subcommand webhook create start pause list delete status requests scripts forward' -a list -d 'List all webhooks in a workspace.'
609
+ complete -c postman -n '__postman_using_subcommand webhook create start pause list delete status requests scripts forward' -a delete -d 'Permanently delete a webhook.'
610
+ complete -c postman -n '__postman_using_subcommand webhook create start pause list delete status requests scripts forward' -a status -d 'Show details for a webhook.'
611
+ complete -c postman -n '__postman_using_subcommand webhook create start pause list delete status requests scripts forward' -a requests -d 'List, inspect, and replay requests received by a webhook.'
612
+ complete -c postman -n '__postman_using_subcommand webhook create start pause list delete status requests scripts forward' -a scripts -d 'Create or update scripts executed by a webhook.'
613
+ complete -c postman -n '__postman_using_subcommand webhook create start pause list delete status requests scripts forward' -a forward -d 'Forward incoming webhook requests to a local port.'
598
614
  complete -c postman -n '__fish_seen_subcommand_from webhook' -s h -l help -d 'display help for command'
599
615
  # ---------- webhook create ----------
600
616
  complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from create' -s t -l title -d 'Name for the webhook (default: "CLI Webhook")' -x
@@ -634,11 +650,20 @@ complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_sub
634
650
  # ---------- webhook requests describe ----------
635
651
  complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from requests; and __fish_seen_subcommand_from describe' -s w -l workspace -d 'Postman workspace ID (falls back to .postman/resources.yaml or .postman/config.json)' -x
636
652
  complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from requests; and __fish_seen_subcommand_from describe' -l api-key -d 'Postman API key' -r
653
+ complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from requests; and __fish_seen_subcommand_from describe' -l verbose -d 'Show script execution logs'
637
654
  complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from requests; and __fish_seen_subcommand_from describe' -s h -l help -d 'display help for command'
638
655
  # ---------- webhook requests replay ----------
639
656
  complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from requests; and __fish_seen_subcommand_from replay' -s w -l workspace -d 'Postman workspace ID (falls back to .postman/resources.yaml or .postman/config.json)' -x
640
657
  complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from requests; and __fish_seen_subcommand_from replay' -l api-key -d 'Postman API key' -r
641
658
  complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from requests; and __fish_seen_subcommand_from replay' -s h -l help -d 'display help for command'
659
+ # ---------- webhook scripts ----------
660
+ complete -c postman -n '__postman_using_subcommand scripts set' -a set -d 'Create or update a webhook script from a JavaScript or TypeScript file.'
661
+ complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from scripts' -s h -l help -d 'display help for command'
662
+ # ---------- webhook scripts set ----------
663
+ complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from scripts; and __fish_seen_subcommand_from set' -l event -d 'Script event: onEvent or onResponse' -x
664
+ complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from scripts; and __fish_seen_subcommand_from set' -s w -l workspace -d 'Postman workspace ID (falls back to .postman/resources.yaml or .postman/config.json)' -x
665
+ complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from scripts; and __fish_seen_subcommand_from set' -l api-key -d 'Postman API key' -r
666
+ complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from scripts; and __fish_seen_subcommand_from set' -s h -l help -d 'display help for command'
642
667
  # ---------- webhook forward ----------
643
668
  complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from forward' -s w -l workspace -d 'Postman workspace ID' -x
644
669
  complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from forward' -l api-key -d 'Postman API key' -r
@@ -1,6 +1,6 @@
1
1
  #compdef postman
2
2
  compdef _postman postman
3
- # Zsh completion for Postman CLI (postman v1.47.2)
3
+ # Zsh completion for Postman CLI (postman v1.49.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
@@ -441,6 +441,7 @@ _postman_workspace() {
441
441
  list) _postman_workspace_list ;;
442
442
  prepare) _postman_workspace_prepare ;;
443
443
  push) _postman_workspace_push ;;
444
+ lint) _postman_workspace_lint ;;
444
445
  esac
445
446
  ;;
446
447
  esac
@@ -452,6 +453,7 @@ _postman_workspace_commands() {
452
453
  'list:List all available Postman Workspaces'
453
454
  'prepare:Prepare local collections and environments for push by validating and regenerating IDs if needed.'
454
455
  'push:Push local workspace entities (collections, environments, specifications, and more) to Postman workspace.'
456
+ 'lint:Lint the current local Postman workspace\: its configuration (.postman/resources.yaml) plus every discovered entity. Use --meta to lint only the configuration.'
455
457
  )
456
458
  _describe -t commands 'workspace command' sub
457
459
  }
@@ -482,6 +484,15 @@ _postman_workspace_push() {
482
484
  '(-h --help)'{-h,--help}'[display help for command]'
483
485
  }
484
486
 
487
+ _postman_workspace_lint() {
488
+ _arguments \
489
+ '(-f --fail-severity)'{-f,--fail-severity}'[Exit with failure if diagnostics at this level or above are present. \[choices\: "error", "warning", "info", "hint"\] (default\: "error")]:value' \
490
+ '(-o --output)'{-o,--output}'[Output format\: cli (human-readable), table, or json. (default\: "cli")]:value' \
491
+ '--meta[Only lint the workspace configuration (.postman/resources.yaml); skip per-entity linting.]' \
492
+ '--workspace-id[The workspace ID to use for fetching governance rulesets. Defaults to the id in .postman/resources.yaml.]:value' \
493
+ '(-h --help)'{-h,--help}'[display help for command]'
494
+ }
495
+
485
496
  _postman_performance() {
486
497
  local context state state_descr line
487
498
  typeset -A opt_args
@@ -514,6 +525,9 @@ _postman_performance_run() {
514
525
  '(-d --duration)'{-d,--duration}'[Duration of the performance test in minutes (default\: 1)]:minutes' \
515
526
  '(-p --load-profile)'{-p,--load-profile}'[Load profile type\: fixed, ramp-up, spike, peak (default\: "ramp-up")]:profile' \
516
527
  '--data-file[Path to a JSON or CSV data file to use with the collection]:path:_files -g "*.json"' \
528
+ '--dataset-id[Use a Postman Dataset as iteration data (with --dataset-view-id)]:id' \
529
+ '--dataset-view-id[Dataset view to execute for iteration data (requires --dataset-id)]:id' \
530
+ '--dataset-distribution[How rows map to VUs\: round-robin (default), fixed, random]:strategy' \
517
531
  '--postman-api-key[API Key used to load the resources from the Postman API (Only supported in the US region, use '\''postman login --region'\'' to authenticate instead)]:apiKey' \
518
532
  '--pass-if[Pass condition in format\: function(metric, value). Functions\: less_than, greater_than, less_than_eq, greater_than_eq. Metrics\: avg, p90, p95, p99, error_rate, rps. Example\: less_than(p95, 500) or less_than(error_rate, 5)]:condition' \
519
533
  '(-h --help)'{-h,--help}'[display help for command]' \
@@ -602,8 +616,12 @@ _postman_flows_run() {
602
616
  '(-i --input)'{-i,--input}'[Set flow inputs as key=value pairs (e.g. --input foo=bar --input baz=qux) (default\: \[\])]:key=value:_files -g "*.(pem|crt|key)"' \
603
617
  '(-f --input-file)'{-f,--input-file}'[Set flow inputs from JSON files (e.g. --input-file ./inputs.json --input-file ./config.json) (default\: \[\])]:path.json:_files -g "*.json"' \
604
618
  '(-s --scenario)'{-s,--scenario}'[Use a pre-built scenario as flow inputs (by scenario name). Can be combined with --input and --input-file to override values.]:name' \
619
+ '--iteration-data-dataset[\[BETA\] Run the flow once per row of a dataset view. Accepts a local .dataset.yaml path or a cloud dataset id (cloud requires login). Requires --iteration-data-view. Dataset columns feed the flow inputs (see --map-column).]:pathOrId:_files -g "*.(json|csv)"' \
620
+ '--iteration-data-view[\[BETA\] Name or id of the view (within --iteration-data-dataset) whose rows drive the run.]:nameOrId' \
621
+ '(-m --map-column)'{-m,--map-column}'[\[BETA\] Bind a flow input to a dataset column (e.g. -m isActive=active). Repeatable. Inputs whose name matches a column bind automatically. (default\: \[\])]:input=column' \
605
622
  '(-e --environment)'{-e,--environment}'[Specify a path to a Postman Environment file (JSON or YAML)]:path:_files -g "*.json"' \
606
623
  '--working-dir[Specify the path to the working directory]:path:_files -/' \
624
+ '--no-insecure-file-read[Prevent reading dataset files situated outside of the working directory (applies to --iteration-data-dataset)]' \
607
625
  '--verbose[Show detailed information of flow run and each request (method, URL, assertions)]' \
608
626
  '--no-truncate[Show full output without truncating long values]' \
609
627
  '--output[Save execution result to a file (supported\: json)]:format' \
@@ -942,6 +960,7 @@ _postman_application_test() {
942
960
  '--target-collection[Collection override for the selected target (repeatable) (default\: \[\])]:path:_files -g "*.json"' \
943
961
  '--target-environment[Environment override for the selected target (last value wins) (default\: \[\])]:path:_files -g "*.json"' \
944
962
  '--command[Command to run first (primary task). Overrides config.]:cmd' \
963
+ '--deployed-version[Version identity of the application under test (e.g. a build ID, release tag, or version string). Also read from the APP_DEPLOYED_VERSION environment variable.]:version' \
945
964
  '--network-log[Directory to scan for captured artifacts, or a direct path to a Playwright JSON report / NDJSON capture file. When a directory is given, recursively discovers `*.json` Playwright reports plus their `trace.zip` attachments, and `network-capture-*.ndjson` at the top level. By default, scans Playwright config `outputDir`, test-results/, then pm-results/.]:path:_files -g "*.json"' \
946
965
  '--capture-only[Skip collection matching and tests; capture traffic and save a V3 collection organised by host]' \
947
966
  '--output[Output directory for captured collection (default\: pm-results/captured/; used with --capture-only)]:path:_files -g "*.json"' \
@@ -1325,6 +1344,7 @@ _postman_webhook() {
1325
1344
  delete) _postman_webhook_delete ;;
1326
1345
  status) _postman_webhook_status ;;
1327
1346
  requests) _postman_webhook_requests ;;
1347
+ scripts) _postman_webhook_scripts ;;
1328
1348
  forward) _postman_webhook_forward ;;
1329
1349
  esac
1330
1350
  ;;
@@ -1341,6 +1361,7 @@ _postman_webhook_commands() {
1341
1361
  'delete:Permanently delete a webhook.'
1342
1362
  'status:Show details for a webhook.'
1343
1363
  'requests:List, inspect, and replay requests received by a webhook.'
1364
+ 'scripts:Create or update scripts executed by a webhook.'
1344
1365
  'forward:Forward incoming webhook requests to a local port.'
1345
1366
  )
1346
1367
  _describe -t commands 'webhook command' sub
@@ -1434,6 +1455,7 @@ _postman_webhook_requests_describe() {
1434
1455
  _arguments \
1435
1456
  '(-w --workspace)'{-w,--workspace}'[Postman workspace ID (falls back to .postman/resources.yaml or .postman/config.json)]:workspaceId' \
1436
1457
  '--api-key[Postman API key]:key:_files -g "*.(pem|crt|key)"' \
1458
+ '--verbose[Show script execution logs]' \
1437
1459
  '(-h --help)'{-h,--help}'[display help for command]' \
1438
1460
  '*:requestId:'
1439
1461
  }
@@ -1446,6 +1468,39 @@ _postman_webhook_requests_replay() {
1446
1468
  '*:requestId:'
1447
1469
  }
1448
1470
 
1471
+ _postman_webhook_scripts() {
1472
+ local context state state_descr line
1473
+ typeset -A opt_args
1474
+ _arguments -C \
1475
+ '(-h --help)'{-h,--help}'[display help for command]' \
1476
+ '1: :_postman_webhook_scripts_commands' \
1477
+ '*::arg:->args'
1478
+ case $state in
1479
+ args)
1480
+ case $words[1] in
1481
+ set) _postman_webhook_scripts_set ;;
1482
+ esac
1483
+ ;;
1484
+ esac
1485
+ }
1486
+
1487
+ _postman_webhook_scripts_commands() {
1488
+ local -a sub
1489
+ sub=(
1490
+ 'set:Create or update a webhook script from a JavaScript or TypeScript file.'
1491
+ )
1492
+ _describe -t commands 'scripts command' sub
1493
+ }
1494
+
1495
+ _postman_webhook_scripts_set() {
1496
+ _arguments \
1497
+ '--event[Script event\: onEvent or onResponse]:event' \
1498
+ '(-w --workspace)'{-w,--workspace}'[Postman workspace ID (falls back to .postman/resources.yaml or .postman/config.json)]:workspaceId' \
1499
+ '--api-key[Postman API key]:key:_files -g "*.(pem|crt|key)"' \
1500
+ '(-h --help)'{-h,--help}'[display help for command]' \
1501
+ '*:scriptPath:'
1502
+ }
1503
+
1449
1504
  _postman_webhook_forward() {
1450
1505
  _arguments \
1451
1506
  '(-w --workspace)'{-w,--workspace}'[Postman workspace ID]:workspaceId' \
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "postman-cli-completion",
3
- "version": "1.47.2",
3
+ "version": "1.49.0",
4
4
  "description": "Shell completions for the Postman CLI (zsh, bash, fish)",
5
5
  "type": "module",
6
6
  "bin": {