postman-cli-completion 1.62.0 → 1.65.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.62.0)
1
+ # Bash completion for Postman CLI (postman v1.65.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
@@ -179,7 +179,7 @@ _postman_collection() {
179
179
  if [[ "$cur" == -* ]]; then
180
180
  COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
181
181
  else
182
- COMPREPLY=( $(compgen -W "new migrate lint ai-readiness get request list run" -- "$cur") )
182
+ COMPREPLY=( $(compgen -W "new migrate lint ai-readiness get generate sync request folder list run" -- "$cur") )
183
183
  fi
184
184
  return 0
185
185
  fi
@@ -189,7 +189,10 @@ _postman_collection() {
189
189
  lint) _postman_collection_lint ;;
190
190
  ai-readiness) _postman_collection_ai_readiness ;;
191
191
  get) _postman_collection_get ;;
192
+ generate) _postman_collection_generate ;;
193
+ sync) _postman_collection_sync ;;
192
194
  request) _postman_collection_request ;;
195
+ folder) _postman_collection_folder ;;
193
196
  list) _postman_collection_list ;;
194
197
  run) _postman_collection_run ;;
195
198
  esac
@@ -229,10 +232,13 @@ _postman_collection_lint() {
229
232
 
230
233
  _postman_collection_ai_readiness() {
231
234
  if [[ "$cur" == -* ]]; then
232
- COMPREPLY=( $(compgen -W "-o --output --min-score -h --help" -- "$cur") )
235
+ COMPREPLY=( $(compgen -W "-o --output --export --min-score -h --help" -- "$cur") )
233
236
  return 0
234
237
  fi
235
238
  case "$prev" in
239
+ --export)
240
+ _postman_filematch '!*.@(json)' "$cur"
241
+ return 0 ;;
236
242
  esac
237
243
  _postman_filematch '!*.@(json)' "$cur"
238
244
  }
@@ -249,6 +255,60 @@ _postman_collection_get() {
249
255
  esac
250
256
  }
251
257
 
258
+ _postman_collection_generate() {
259
+ if [[ -z "$subcmd" ]]; then
260
+ if [[ "$cur" == -* ]]; then
261
+ COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
262
+ else
263
+ COMPREPLY=( $(compgen -W "spec" -- "$cur") )
264
+ fi
265
+ return 0
266
+ fi
267
+ case "$subcmd" in
268
+ spec) _postman_collection_generate_spec ;;
269
+ esac
270
+ }
271
+
272
+ _postman_collection_generate_spec() {
273
+ if [[ "$cur" == -* ]]; then
274
+ COMPREPLY=( $(compgen -W "-n --name --spec-version -f --format --api-key -h --help" -- "$cur") )
275
+ return 0
276
+ fi
277
+ case "$prev" in
278
+ --api-key)
279
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
280
+ return 0 ;;
281
+ esac
282
+ _postman_filematch '!*.@(json)' "$cur"
283
+ }
284
+
285
+ _postman_collection_sync() {
286
+ if [[ -z "$subcmd" ]]; then
287
+ if [[ "$cur" == -* ]]; then
288
+ COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
289
+ else
290
+ COMPREPLY=( $(compgen -W "spec" -- "$cur") )
291
+ fi
292
+ return 0
293
+ fi
294
+ case "$subcmd" in
295
+ spec) _postman_collection_sync_spec ;;
296
+ esac
297
+ }
298
+
299
+ _postman_collection_sync_spec() {
300
+ if [[ "$cur" == -* ]]; then
301
+ COMPREPLY=( $(compgen -W "--spec-id --api-key -h --help" -- "$cur") )
302
+ return 0
303
+ fi
304
+ case "$prev" in
305
+ --api-key)
306
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
307
+ return 0 ;;
308
+ esac
309
+ _postman_filematch '!*.@(json)' "$cur"
310
+ }
311
+
252
312
  _postman_collection_request() {
253
313
  if [[ -z "$subcmd" ]]; then
254
314
  if [[ "$cur" == -* ]]; then
@@ -298,6 +358,49 @@ _postman_collection_request_rm() {
298
358
  esac
299
359
  }
300
360
 
361
+ _postman_collection_folder() {
362
+ if [[ -z "$subcmd" ]]; then
363
+ if [[ "$cur" == -* ]]; then
364
+ COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
365
+ else
366
+ COMPREPLY=( $(compgen -W "add update rm remove" -- "$cur") )
367
+ fi
368
+ return 0
369
+ fi
370
+ case "$subcmd" in
371
+ add) _postman_collection_folder_add ;;
372
+ update) _postman_collection_folder_update ;;
373
+ rm|remove) _postman_collection_folder_rm ;;
374
+ esac
375
+ }
376
+
377
+ _postman_collection_folder_add() {
378
+ if [[ "$cur" == -* ]]; then
379
+ COMPREPLY=( $(compgen -W "--collection --folder -w --workspace --json -h --help" -- "$cur") )
380
+ return 0
381
+ fi
382
+ case "$prev" in
383
+ esac
384
+ }
385
+
386
+ _postman_collection_folder_update() {
387
+ if [[ "$cur" == -* ]]; then
388
+ COMPREPLY=( $(compgen -W "--collection --folder --name --description --auth --scripts -w --workspace --json -h --help" -- "$cur") )
389
+ return 0
390
+ fi
391
+ case "$prev" in
392
+ esac
393
+ }
394
+
395
+ _postman_collection_folder_rm() {
396
+ if [[ "$cur" == -* ]]; then
397
+ COMPREPLY=( $(compgen -W "--collection --folder -y --yes -w --workspace --json -h --help" -- "$cur") )
398
+ return 0
399
+ fi
400
+ case "$prev" in
401
+ esac
402
+ }
403
+
301
404
  _postman_collection_list() {
302
405
  if [[ "$cur" == -* ]]; then
303
406
  COMPREPLY=( $(compgen -W "-w --workspace -f --filter --verbose --debug --json -h --help" -- "$cur") )
@@ -309,7 +412,7 @@ _postman_collection_list() {
309
412
 
310
413
  _postman_collection_run() {
311
414
  if [[ "$cur" == -* ]]; then
312
- COMPREPLY=( $(compgen -W "-e --environment -g --globals -r --reporters --output --reporter-json-structure -n --iteration-count -d --iteration-data --iteration-data-dataset --iteration-data-view --dataset -i --global-var --env-var --integration-id --postman-api-key --alias --bail --ignore-redirects -x --suppress-exit-code --silent --disable-unicode --delay-request --timeout --timeout-request --timeout-script --working-dir --no-insecure-file-read -k --insecure --ssl-client-cert-list --ssl-client-cert --ssl-client-key --ssl-client-passphrase --ssl-extra-ca-certs --cookie-jar --export-cookie-jar --verbose --mock --port --use-mock --simulate --report-events --no-report-events -h --help --reporter-json-export --reporter-junit-export --reporter-html-export --reporter-json-omitRequestBodies --reporter-html-omitRequestBodies --reporter-json-omitResponseBodies --reporter-html-omitResponseBodies --reporter-json-omitHeaders --reporter-html-omitHeaders --reporter-json-omitAllHeadersAndBody --reporter-html-omitAllHeadersAndBody" -- "$cur") )
415
+ COMPREPLY=( $(compgen -W "-e --environment -g --globals -r --reporters --output --reporter-json-structure -n --iteration-count -d --iteration-data --iteration-data-dataset --iteration-data-view --dataset -i --global-var --env-var --integration-id --postman-api-key --alias --bail --ignore-redirects -x --suppress-exit-code --silent --disable-unicode --delay-request --timeout --timeout-request --timeout-script --working-dir --no-insecure-file-read -k --insecure --ssl-client-cert-list --ssl-client-cert --ssl-client-key --ssl-client-passphrase --ssl-extra-ca-certs --cookie-jar --export-cookie-jar --verbose --mock --port --use-mock --simulate --simulation --simulate-workspace --no-simulate-history --report-events --no-report-events -h --help --reporter-json-export --reporter-junit-export --reporter-html-export --reporter-json-omitRequestBodies --reporter-html-omitRequestBodies --reporter-json-omitResponseBodies --reporter-html-omitResponseBodies --reporter-json-omitHeaders --reporter-html-omitHeaders --reporter-json-omitAllHeadersAndBody --reporter-html-omitAllHeadersAndBody" -- "$cur") )
313
416
  return 0
314
417
  fi
315
418
  case "$prev" in
@@ -605,7 +708,7 @@ _postman_spec() {
605
708
  if [[ "$cur" == -* ]]; then
606
709
  COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
607
710
  else
608
- COMPREPLY=( $(compgen -W "lint ai-readiness list get file create generate" -- "$cur") )
711
+ COMPREPLY=( $(compgen -W "lint ai-readiness list get file create generate sync" -- "$cur") )
609
712
  fi
610
713
  return 0
611
714
  fi
@@ -617,6 +720,7 @@ _postman_spec() {
617
720
  file) _postman_spec_file ;;
618
721
  create) _postman_spec_create ;;
619
722
  generate) _postman_spec_generate ;;
723
+ sync) _postman_spec_sync ;;
620
724
  esac
621
725
  }
622
726
 
@@ -631,10 +735,13 @@ _postman_spec_lint() {
631
735
 
632
736
  _postman_spec_ai_readiness() {
633
737
  if [[ "$cur" == -* ]]; then
634
- COMPREPLY=( $(compgen -W "-o --output --min-score -h --help" -- "$cur") )
738
+ COMPREPLY=( $(compgen -W "-o --output --export --min-score -h --help" -- "$cur") )
635
739
  return 0
636
740
  fi
637
741
  case "$prev" in
742
+ --export)
743
+ _postman_filematch '!*.@(json)' "$cur"
744
+ return 0 ;;
638
745
  esac
639
746
  }
640
747
 
@@ -757,6 +864,32 @@ _postman_spec_generate_collection() {
757
864
  esac
758
865
  }
759
866
 
867
+ _postman_spec_sync() {
868
+ if [[ -z "$subcmd" ]]; then
869
+ if [[ "$cur" == -* ]]; then
870
+ COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
871
+ else
872
+ COMPREPLY=( $(compgen -W "collection" -- "$cur") )
873
+ fi
874
+ return 0
875
+ fi
876
+ case "$subcmd" in
877
+ collection) _postman_spec_sync_collection ;;
878
+ esac
879
+ }
880
+
881
+ _postman_spec_sync_collection() {
882
+ if [[ "$cur" == -* ]]; then
883
+ COMPREPLY=( $(compgen -W "--collection-id --api-key -h --help" -- "$cur") )
884
+ return 0
885
+ fi
886
+ case "$prev" in
887
+ --api-key)
888
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
889
+ return 0 ;;
890
+ esac
891
+ }
892
+
760
893
  _postman_monitor() {
761
894
  if [[ -z "$subcmd" ]]; then
762
895
  if [[ "$cur" == -* ]]; then
@@ -959,7 +1092,7 @@ _postman_workspace() {
959
1092
  if [[ "$cur" == -* ]]; then
960
1093
  COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
961
1094
  else
962
- COMPREPLY=( $(compgen -W "list prepare push lint get create pull connect-git diff" -- "$cur") )
1095
+ COMPREPLY=( $(compgen -W "list prepare push lint get create delete pull connect-git disconnect-git diff" -- "$cur") )
963
1096
  fi
964
1097
  return 0
965
1098
  fi
@@ -970,8 +1103,10 @@ _postman_workspace() {
970
1103
  lint) _postman_workspace_lint ;;
971
1104
  get) _postman_workspace_get ;;
972
1105
  create) _postman_workspace_create ;;
1106
+ delete) _postman_workspace_delete ;;
973
1107
  pull) _postman_workspace_pull ;;
974
1108
  connect-git) _postman_workspace_connect_git ;;
1109
+ disconnect-git) _postman_workspace_disconnect_git ;;
975
1110
  diff) _postman_workspace_diff ;;
976
1111
  esac
977
1112
  }
@@ -1031,6 +1166,15 @@ _postman_workspace_create() {
1031
1166
  esac
1032
1167
  }
1033
1168
 
1169
+ _postman_workspace_delete() {
1170
+ if [[ "$cur" == -* ]]; then
1171
+ COMPREPLY=( $(compgen -W "-y --yes --json --verbose --timeout -h --help" -- "$cur") )
1172
+ return 0
1173
+ fi
1174
+ case "$prev" in
1175
+ esac
1176
+ }
1177
+
1034
1178
  _postman_workspace_pull() {
1035
1179
  if [[ "$cur" == -* ]]; then
1036
1180
  COMPREPLY=( $(compgen -W "-y --yes --source-workspace --verbose -h --help" -- "$cur") )
@@ -1048,6 +1192,13 @@ _postman_workspace_connect_git() {
1048
1192
  _postman_filematch '!*.@(json)' "$cur"
1049
1193
  }
1050
1194
 
1195
+ _postman_workspace_disconnect_git() {
1196
+ if [[ "$cur" == -* ]]; then
1197
+ COMPREPLY=( $(compgen -W "-y --yes --verbose -h --help" -- "$cur") )
1198
+ return 0
1199
+ fi
1200
+ }
1201
+
1051
1202
  _postman_workspace_diff() {
1052
1203
  if [[ "$cur" == -* ]]; then
1053
1204
  COMPREPLY=( $(compgen -W "--push-strategy --summary --json --exit-code --verbose --timeout -h --help" -- "$cur") )
@@ -1097,13 +1248,25 @@ _postman_performance() {
1097
1248
 
1098
1249
  _postman_performance_run() {
1099
1250
  if [[ "$cur" == -* ]]; then
1100
- COMPREPLY=( $(compgen -W "-e --environment -g --globals --setup-collection --teardown-collection --vu-count -d --duration -p --load-profile --data-file --dataset-id --dataset-view-id --dataset-distribution --postman-api-key --output --runner --pass-if --use-mock -h --help" -- "$cur") )
1251
+ COMPREPLY=( $(compgen -W "-e --environment -g --globals --setup-collection --teardown-collection --vu-count -d --duration -p --load-profile --data-file --ssl-client-cert-list --ssl-client-cert --ssl-client-key --ssl-client-passphrase -k --insecure --ssl-extra-ca-certs --dataset-id --dataset-view-id --dataset-distribution --postman-api-key --output --runner --pass-if --use-mock -h --help" -- "$cur") )
1101
1252
  return 0
1102
1253
  fi
1103
1254
  case "$prev" in
1104
1255
  --data-file)
1105
1256
  _postman_filematch '!*.@(json)' "$cur"
1106
1257
  return 0 ;;
1258
+ --ssl-client-cert-list)
1259
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
1260
+ return 0 ;;
1261
+ --ssl-client-cert)
1262
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
1263
+ return 0 ;;
1264
+ --ssl-client-key)
1265
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
1266
+ return 0 ;;
1267
+ --ssl-extra-ca-certs)
1268
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
1269
+ return 0 ;;
1107
1270
  esac
1108
1271
  _postman_filematch '!*.@(json)' "$cur"
1109
1272
  }
@@ -1403,7 +1566,7 @@ _postman_mock_generate() {
1403
1566
 
1404
1567
  _postman_mock_run() {
1405
1568
  if [[ "$cur" == -* ]]; then
1406
- COMPREPLY=( $(compgen -W "-e --environment -g --globals -p --port --api-key -h --help" -- "$cur") )
1569
+ COMPREPLY=( $(compgen -W "-e --environment -g --globals -p --port --api-key -w --workspace --no-history -h --help" -- "$cur") )
1407
1570
  return 0
1408
1571
  fi
1409
1572
  case "$prev" in
@@ -1572,9 +1735,14 @@ _postman_simulate() {
1572
1735
 
1573
1736
  _postman_simulate_run() {
1574
1737
  if [[ "$cur" == -* ]]; then
1575
- COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
1738
+ COMPREPLY=( $(compgen -W "-w --workspace --simulation --api-key --no-history -h --help" -- "$cur") )
1576
1739
  return 0
1577
1740
  fi
1741
+ case "$prev" in
1742
+ --api-key)
1743
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
1744
+ return 0 ;;
1745
+ esac
1578
1746
  _postman_filematch '!*.@(json)' "$cur"
1579
1747
  }
1580
1748
 
@@ -1,4 +1,4 @@
1
- # Fish completion for Postman CLI (postman v1.62.0)
1
+ # Fish completion for Postman CLI (postman v1.65.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
@@ -76,7 +76,7 @@ complete -c postman -n '__fish_seen_subcommand_from init' -l json -d 'Emit machi
76
76
  complete -c postman -n '__fish_seen_subcommand_from init' -l dry-run -d 'Report what would happen without writing anything'
77
77
  complete -c postman -n '__fish_seen_subcommand_from init' -l no-fetch -d 'Use the skills bundled with this CLI instead of fetching the latest'
78
78
  complete -c postman -n '__fish_seen_subcommand_from init' -l spec -d 'Which spec is authoritative, when more than one could be' -r
79
- complete -c postman -n '__fish_seen_subcommand_from init' -l visibility -d 'Create and bind a workspace non-interactively (personal or team)' -x
79
+ complete -c postman -n '__fish_seen_subcommand_from init' -l visibility -d 'Create and bind a workspace non-interactively (personal, team)' -x
80
80
  complete -c postman -n '__fish_seen_subcommand_from init' -l no-cloud -d 'Skip the workspace step entirely'
81
81
  complete -c postman -n '__fish_seen_subcommand_from init' -l report-events -d 'Send init analytics to Postman (requires login)'
82
82
  complete -c postman -n '__fish_seen_subcommand_from init' -s h -l help -d 'display help for command'
@@ -113,14 +113,17 @@ complete -c postman -n '__fish_seen_subcommand_from skills; and __fish_seen_subc
113
113
  complete -c postman -n '__fish_seen_subcommand_from skills; and __fish_seen_subcommand_from update' -r -k -a '(__fish_complete_suffix .json)'
114
114
 
115
115
  # ---------- collection ----------
116
- complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get request list run' -a new -d 'Scaffold a v3 collection on disk, or create one in a cloud Postman workspace with --workspace.'
117
- complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get request list run' -a migrate -d 'Migrate a v2.1 collection to the v3 format'
118
- complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get request list run' -a lint -d 'Run linting on a local v3 collection at the given file or directory path.'
119
- complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get request list run' -a ai-readiness -d 'Score a Postman collection for AI readiness by ID, local file path, or local-mode directory.'
120
- complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get request list run' -a get -d 'Fetch a Postman collection in the V3 format and print it.'
121
- complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get request list run' -a request -d 'Add, update, or remove requests in a local v3 collection.'
122
- complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get request list run' -a list -d 'List collections: your local project\'s collections by default, or a Postman cloud workspace\'s collections with --workspace.'
123
- complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get request list run' -a run -d 'Initiate a Postman collection run from a given ID or path.'
116
+ complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get generate sync request folder list run' -a new -d 'Scaffold a v3 collection on disk, or create one in a cloud Postman workspace with --workspace.'
117
+ complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get generate sync request folder list run' -a migrate -d 'Migrate a v2.1 collection to the v3 format'
118
+ complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get generate sync request folder list run' -a lint -d 'Run linting on a local v3 collection at the given file or directory path.'
119
+ complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get generate sync request folder list run' -a ai-readiness -d 'Score a Postman collection for AI readiness by ID, local file path, or local-mode directory.'
120
+ complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get generate sync request folder list run' -a get -d 'Fetch a Postman collection in the V3 format and print it.'
121
+ complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get generate sync request folder list run' -a generate -d 'Generate artifacts from a collection.'
122
+ complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get generate sync request folder list run' -a sync -d 'Sync artifacts generated from a collection.'
123
+ complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get generate sync request folder list run' -a request -d 'Add, update, or remove requests in a local v3 collection.'
124
+ complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get generate sync request folder list run' -a folder -d 'Add, update, or remove folders in a local v3 collection.'
125
+ complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get generate sync request folder list run' -a list -d 'List collections: your local project\'s collections by default, or a Postman cloud workspace\'s collections with --workspace.'
126
+ complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get generate sync request folder list run' -a run -d 'Initiate a Postman collection run from a given ID or path.'
124
127
  complete -c postman -n '__fish_seen_subcommand_from collection' -s h -l help -d 'display help for command'
125
128
  # ---------- collection new ----------
126
129
  complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from new' -s w -l workspace -d 'Create the collection in a cloud Postman workspace instead of scaffolding it locally. Required when the current directory is not a local Postman workspace.' -x
@@ -139,6 +142,7 @@ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_
139
142
  complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from lint' -r -k -a '(__fish_complete_suffix .json)'
140
143
  # ---------- collection ai-readiness ----------
141
144
  complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from ai-readiness' -s o -l output -d 'Output format for the results. [choices: "cli", "json", "html"]' -x
145
+ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from ai-readiness' -l export -d 'Write the report to this file instead of stdout. A directory receives the report under a name derived from the collection. Requires --output html.' -r
142
146
  complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from ai-readiness' -l min-score -d 'Exit with a non-zero code if the overall score is below this threshold (0-100).' -x
143
147
  complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from ai-readiness' -s h -l help -d 'display help for command'
144
148
  complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from ai-readiness' -r -k -a '(__fish_complete_suffix .json)'
@@ -146,6 +150,24 @@ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_
146
150
  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
147
151
  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'
148
152
  complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from get' -s h -l help -d 'display help for command'
153
+ # ---------- collection generate ----------
154
+ complete -c postman -n '__postman_using_subcommand generate spec' -a spec -d 'Generate an OpenAPI specification from a Postman collection.'
155
+ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from generate' -s h -l help -d 'display help for command'
156
+ # ---------- collection generate spec ----------
157
+ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from generate; and __fish_seen_subcommand_from spec' -s n -l name -d 'Specification name / title' -x
158
+ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from generate; and __fish_seen_subcommand_from spec' -l spec-version -d 'Target OpenAPI version: 3.1, 3.0, or 2.0 (default: 3.1) (default: "3.1")' -x
159
+ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from generate; and __fish_seen_subcommand_from spec' -s f -l format -d 'Output format: yaml or json (default: yaml) (default: "yaml")' -x
160
+ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from generate; and __fish_seen_subcommand_from spec' -l api-key -d 'Postman API key' -r
161
+ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from generate; and __fish_seen_subcommand_from spec' -s h -l help -d 'display help for command'
162
+ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from generate; and __fish_seen_subcommand_from spec' -r -k -a '(__fish_complete_suffix .json)'
163
+ # ---------- collection sync ----------
164
+ complete -c postman -n '__postman_using_subcommand sync spec' -a spec -d 'Sync a specification from a linked collection (local path or cloud UUID).'
165
+ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from sync' -s h -l help -d 'display help for command'
166
+ # ---------- collection sync spec ----------
167
+ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from sync; and __fish_seen_subcommand_from spec' -l spec-id -d 'Specification ID to sync (required for cloud mode)' -x
168
+ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from sync; and __fish_seen_subcommand_from spec' -l api-key -d 'Postman API key' -r
169
+ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from sync; and __fish_seen_subcommand_from spec' -s h -l help -d 'display help for command'
170
+ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from sync; and __fish_seen_subcommand_from spec' -r -k -a '(__fish_complete_suffix .json)'
149
171
  # ---------- collection request ----------
150
172
  complete -c postman -n '__postman_using_subcommand request add update rm remove' -a add -d 'Add an empty request to a local v3 collection (set its details later with `update`).'
151
173
  complete -c postman -n '__postman_using_subcommand request add update rm remove' -a update -d 'Update a request in a v3 collection (only the fields you pass).'
@@ -183,6 +205,35 @@ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_
183
205
  complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from request; and __fish_seen_subcommand_from rm' -l type -d 'Request type for cloud mode: http, graphql, grpc, websocket, socketio. (default: "http")' -x
184
206
  complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from request; and __fish_seen_subcommand_from rm' -l json -d 'JSON output.'
185
207
  complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from request; and __fish_seen_subcommand_from rm' -s h -l help -d 'display help for command'
208
+ # ---------- collection folder ----------
209
+ complete -c postman -n '__postman_using_subcommand folder add update rm remove' -a add -d 'Add an empty folder to a local v3 collection (set its details later with `update`).'
210
+ complete -c postman -n '__postman_using_subcommand folder add update rm remove' -a update -d 'Update a folder in a v3 collection (only the fields you pass).'
211
+ complete -c postman -n '__postman_using_subcommand folder add update rm remove' -a rm -d 'Remove a folder from a v3 collection (recursive: removes everything inside it).'
212
+ complete -c postman -n '__postman_using_subcommand folder add update rm remove' -a remove -d 'Alias for rm'
213
+ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from folder' -s h -l help -d 'display help for command'
214
+ # ---------- collection folder add ----------
215
+ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from folder; and __fish_seen_subcommand_from add' -l collection -d 'Target collection: name, directory, id, cloud id, or path. Required.' -x
216
+ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from folder; and __fish_seen_subcommand_from add' -l folder -d 'Parent folder within the collection, e.g. "Users/Admin". Defaults to the root.' -x
217
+ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from folder; and __fish_seen_subcommand_from add' -s w -l workspace -d 'Target a Postman cloud workspace by id (cloud mode).' -x
218
+ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from folder; and __fish_seen_subcommand_from add' -l json -d 'JSON output.'
219
+ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from folder; and __fish_seen_subcommand_from add' -s h -l help -d 'display help for command'
220
+ # ---------- collection folder update ----------
221
+ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from folder; and __fish_seen_subcommand_from update' -l collection -d 'Target collection: name, directory, id, cloud id, or path (cloud: id only). Required.' -x
222
+ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from folder; and __fish_seen_subcommand_from update' -l folder -d 'Parent folder to scope the selector, e.g. "Users" (local: name/path; cloud: id).' -x
223
+ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from folder; and __fish_seen_subcommand_from update' -l name -d 'Rename the folder (moves its directory).' -x
224
+ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from folder; and __fish_seen_subcommand_from update' -l description -d 'Folder description.' -x
225
+ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from folder; and __fish_seen_subcommand_from update' -l auth -d 'Folder auth: none, inherit, bearer:TOKEN, basic:USER:PASS, apikey:KEY:VALUE[:header|query], oauth2:TOKEN.' -x
226
+ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from folder; and __fish_seen_subcommand_from update' -l scripts -d 'Replace folder scripts. event is prerequest or test; script is @file, - for stdin, or inline. Repeatable. (default: [])' -x
227
+ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from folder; and __fish_seen_subcommand_from update' -s w -l workspace -d 'Target a Postman cloud workspace by id (cloud mode).' -x
228
+ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from folder; and __fish_seen_subcommand_from update' -l json -d 'JSON output.'
229
+ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from folder; and __fish_seen_subcommand_from update' -s h -l help -d 'display help for command'
230
+ # ---------- collection folder rm ----------
231
+ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from folder; and __fish_seen_subcommand_from rm' -l collection -d 'Target collection: name, directory, id, cloud id, or path (cloud: id only). Required.' -x
232
+ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from folder; and __fish_seen_subcommand_from rm' -l folder -d 'Parent folder to scope the selector, e.g. "Users" (local: name/path; cloud: id).' -x
233
+ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from folder; and __fish_seen_subcommand_from rm' -s y -l yes -d 'Skip the confirmation prompt (required when stdout is not a TTY).'
234
+ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from folder; and __fish_seen_subcommand_from rm' -s w -l workspace -d 'Target a Postman cloud workspace by id (cloud mode).' -x
235
+ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from folder; and __fish_seen_subcommand_from rm' -l json -d 'JSON output.'
236
+ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from folder; and __fish_seen_subcommand_from rm' -s h -l help -d 'display help for command'
186
237
  # ---------- collection list ----------
187
238
  complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from list' -s w -l workspace -d 'List a Postman cloud workspace\'s collections by id. Omit to list the local project\'s collections.' -x
188
239
  complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from list' -s f -l filter -d 'Filter collections by name.' -x
@@ -231,6 +282,9 @@ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_
231
282
  complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -l port -d 'Port for the --mock server (e.g. 4010), or "auto" for a free one. Defaults to the mock\'s configured port. Only valid with --mock.' -x
232
283
  complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -l use-mock -d 'Redirect requests for a URL or {{variable}} to a mock during the run. Format: "<url> mock|mock-server:<path|id> [scenario]". Repeat the flag to redirect several URLs (one --use-mock each). Use "mock:<path>" for a mock in your repository (path relative or absolute, e.g. ./postman/mocks/orders), "mock:<id>" for a mock in Postman cloud (fetched then run locally), or "mock-server:<id>" to send requests to a deployed mock server. An id needs `postman login` (or --postman-api-key). The optional third field picks a scenario (defaults to "default"). (default: [])' -x
233
284
  complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -l simulate -d 'Start mock servers with fault-injection scenarios from a .sim.yaml file' -r
285
+ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -l simulation -d 'Simulation id to record start history against when using --simulate.' -x
286
+ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -l simulate-workspace -d 'Workspace that owns the --simulate run, for recording its start history.' -x
287
+ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -l no-simulate-history -d 'Do not record the --simulate run in the simulation\'s start history.'
234
288
  complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -l report-events -d 'Upload results for git-native v3 collection runs. Analytics are sent by default'
235
289
  complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -l no-report-events -d 'Do not send analytics to Postman'
236
290
  complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -s h -l help -d 'display help for command'
@@ -358,13 +412,14 @@ complete -c postman -n '__fish_seen_subcommand_from runner; and __fish_seen_subc
358
412
  complete -c postman -n '__fish_seen_subcommand_from runner; and __fish_seen_subcommand_from regions' -s h -l help -d 'display help for command'
359
413
 
360
414
  # ---------- spec ----------
361
- complete -c postman -n '__postman_using_subcommand spec lint ai-readiness list get file create generate' -a lint -d 'Run linting on the given specification by ID or local file path.'
362
- complete -c postman -n '__postman_using_subcommand spec lint ai-readiness list get file create generate' -a ai-readiness -d 'Score an OpenAPI specification for AI readiness by ID or local file path.'
363
- complete -c postman -n '__postman_using_subcommand spec lint ai-readiness list get file create generate' -a list -d 'List local spec files under a path, or (no path) a workspace\'s cloud specs.'
364
- complete -c postman -n '__postman_using_subcommand spec lint ai-readiness list get file create generate' -a get -d 'Read a spec definition, including every file of a multi-file spec.'
365
- complete -c postman -n '__postman_using_subcommand spec lint ai-readiness list get file create generate' -a file -d 'Add, update, or remove files in a spec (cloud ID or local directory).'
366
- complete -c postman -n '__postman_using_subcommand spec lint ai-readiness list get file create generate' -a create -d 'Create a new spec in a workspace, or (with path) scaffold a local spec file.'
367
- complete -c postman -n '__postman_using_subcommand spec lint ai-readiness list get file create generate' -a generate -d 'Generate artifacts from a specification.'
415
+ complete -c postman -n '__postman_using_subcommand spec lint ai-readiness list get file create generate sync' -a lint -d 'Run linting on the given specification by ID or local file path.'
416
+ complete -c postman -n '__postman_using_subcommand spec lint ai-readiness list get file create generate sync' -a ai-readiness -d 'Score an OpenAPI specification for AI readiness by ID or local file path.'
417
+ complete -c postman -n '__postman_using_subcommand spec lint ai-readiness list get file create generate sync' -a list -d 'List local spec files under a path, or (no path) a workspace\'s cloud specs.'
418
+ complete -c postman -n '__postman_using_subcommand spec lint ai-readiness list get file create generate sync' -a get -d 'Read a spec definition, including every file of a multi-file spec.'
419
+ complete -c postman -n '__postman_using_subcommand spec lint ai-readiness list get file create generate sync' -a file -d 'Add, update, or remove files in a spec (cloud ID or local directory).'
420
+ complete -c postman -n '__postman_using_subcommand spec lint ai-readiness list get file create generate sync' -a create -d 'Create a new spec in a workspace, or (with path) scaffold a local spec file.'
421
+ complete -c postman -n '__postman_using_subcommand spec lint ai-readiness list get file create generate sync' -a generate -d 'Generate artifacts from a specification.'
422
+ complete -c postman -n '__postman_using_subcommand spec lint ai-readiness list get file create generate sync' -a sync -d 'Sync a generated collection with its source specification.'
368
423
  complete -c postman -n '__fish_seen_subcommand_from spec' -s h -l help -d 'display help for command'
369
424
  # ---------- spec lint ----------
370
425
  complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcommand_from lint' -s f -l fail-severity -d 'Results of this level or above will trigger a failure exit code. [choices: "error", "warning", "info", "hint"] (default: "ERROR")' -x
@@ -375,6 +430,7 @@ complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcom
375
430
  complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcommand_from lint' -s h -l help -d 'display help for command'
376
431
  # ---------- spec ai-readiness ----------
377
432
  complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcommand_from ai-readiness' -s o -l output -d 'Output format for the results. [choices: "cli", "json", "html"]' -x
433
+ complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcommand_from ai-readiness' -l export -d 'Write the report to this file instead of stdout. A directory receives the report under a name derived from the specification. Requires --output html.' -r
378
434
  complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcommand_from ai-readiness' -l min-score -d 'Exit with a non-zero code if the overall score is below this threshold (0-100).' -x
379
435
  complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcommand_from ai-readiness' -s h -l help -d 'display help for command'
380
436
  # ---------- spec list ----------
@@ -426,6 +482,13 @@ complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcom
426
482
  complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcommand_from generate; and __fish_seen_subcommand_from collection' -s w -l workspace -d 'Workspace ID (cloud mode)' -x
427
483
  complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcommand_from generate; and __fish_seen_subcommand_from collection' -l api-key -d 'Postman API key' -r
428
484
  complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcommand_from generate; and __fish_seen_subcommand_from collection' -s h -l help -d 'display help for command'
485
+ # ---------- spec sync ----------
486
+ complete -c postman -n '__postman_using_subcommand sync collection' -a collection -d 'Sync a collection from a linked specification (local path or cloud UUID).'
487
+ complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcommand_from sync' -s h -l help -d 'display help for command'
488
+ # ---------- spec sync collection ----------
489
+ complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcommand_from sync; and __fish_seen_subcommand_from collection' -l collection-id -d 'Collection ID to sync (required for cloud mode)' -x
490
+ complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcommand_from sync; and __fish_seen_subcommand_from collection' -l api-key -d 'Postman API key' -r
491
+ complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcommand_from sync; and __fish_seen_subcommand_from collection' -s h -l help -d 'display help for command'
429
492
 
430
493
  # ---------- monitor ----------
431
494
  complete -c postman -n '__postman_using_subcommand monitor run create update delete jobs runs list get metrics pause resume' -a run -d 'Invoke a monitor run and display results.'
@@ -566,15 +629,17 @@ complete -c postman -n '__fish_seen_subcommand_from monitor; and __fish_seen_sub
566
629
  complete -c postman -n '__fish_seen_subcommand_from monitor; and __fish_seen_subcommand_from resume' -s h -l help -d 'display help for command'
567
630
 
568
631
  # ---------- workspace ----------
569
- complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get create pull connect-git diff' -a list -d 'List all available Postman Workspaces'
570
- complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get create pull connect-git diff' -a prepare -d 'Prepare local collections and environments for push by validating and regenerating IDs if needed.'
571
- complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get create pull connect-git diff' -a push -d 'Push local workspace entities (collections, environments, specifications, mocks and more) to Postman workspace.'
572
- complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get create pull connect-git diff' -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.'
573
- complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get create pull connect-git diff' -a get -d 'Read a workspace\'s metadata, and optionally the ids of what it holds.'
574
- complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get create pull connect-git diff' -a create -d 'Create a Postman workspace and bind it to this git repository.'
575
- complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get create pull connect-git diff' -a pull -d 'Pull workspace entities from a Postman workspace into the local git-native folder.'
576
- complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get create pull connect-git diff' -a connect-git -d 'Connect a Postman workspace to a local git repository.'
577
- complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get create pull connect-git diff' -a diff -d 'Preview local-vs-cloud drift before pushing. Read-only: nothing is created, updated or deleted.'
632
+ complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get create delete pull connect-git disconnect-git diff' -a list -d 'List all available Postman Workspaces'
633
+ complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get create delete pull connect-git disconnect-git diff' -a prepare -d 'Prepare local collections and environments for push by validating and regenerating IDs if needed.'
634
+ complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get create delete pull connect-git disconnect-git diff' -a push -d 'Push local workspace entities (collections, environments, specifications, mocks and more) to Postman workspace.'
635
+ complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get create delete pull connect-git disconnect-git diff' -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.'
636
+ complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get create delete pull connect-git disconnect-git diff' -a get -d 'Read a workspace\'s metadata, and optionally the ids of what it holds.'
637
+ complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get create delete pull connect-git disconnect-git diff' -a create -d 'Create a Postman workspace and bind it to this git repository.'
638
+ complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get create delete pull connect-git disconnect-git diff' -a delete -d 'Permanently delete a workspace and everything in it. Prompts for confirmation unless --yes is passed.'
639
+ complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get create delete pull connect-git disconnect-git diff' -a pull -d 'Pull workspace entities from a Postman workspace into the local git-native folder.'
640
+ complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get create delete pull connect-git disconnect-git diff' -a connect-git -d 'Connect a Postman workspace to a local git repository.'
641
+ complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get create delete pull connect-git disconnect-git diff' -a disconnect-git -d 'Disconnect a Postman workspace from its local git repository.'
642
+ complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get create delete pull connect-git disconnect-git diff' -a diff -d 'Preview local-vs-cloud drift before pushing. Read-only: nothing is created, updated or deleted.'
578
643
  complete -c postman -n '__fish_seen_subcommand_from workspace' -s h -l help -d 'display help for command'
579
644
  # ---------- workspace list ----------
580
645
  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
@@ -616,6 +681,12 @@ complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_s
616
681
  complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from create' -l no-connect -d 'Create the workspace without binding it to the repository'
617
682
  complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from create' -l force -d 'Create even when a workspace is already recorded for this repo'
618
683
  complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from create' -s h -l help -d 'display help for command'
684
+ # ---------- workspace delete ----------
685
+ complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from delete' -s y -l yes -d 'Skip the confirmation prompt'
686
+ complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from delete' -l json -d 'Print the outcome as machine-readable JSON'
687
+ complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from delete' -l verbose -d 'Show detailed logging'
688
+ complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from delete' -l timeout -d 'Abort the run after this many milliseconds. Defaults to 30000.' -x
689
+ complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from delete' -s h -l help -d 'display help for command'
619
690
  # ---------- workspace pull ----------
620
691
  complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from pull' -s y -l yes -d 'Skip all confirmation prompts'
621
692
  complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from pull' -l source-workspace -d 'Pull from a different source workspace.' -x
@@ -625,11 +696,15 @@ complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_s
625
696
  complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from connect-git' -l verbose -d 'Show detailed logging'
626
697
  complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from connect-git' -s h -l help -d 'display help for command'
627
698
  complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from connect-git' -r -k -a '(__fish_complete_suffix .json)'
699
+ # ---------- workspace disconnect-git ----------
700
+ complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from disconnect-git' -s y -l yes -d 'Skip all confirmation prompts'
701
+ complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from disconnect-git' -l verbose -d 'Show detailed logging'
702
+ complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from disconnect-git' -s h -l help -d 'display help for command'
628
703
  # ---------- workspace diff ----------
629
704
  complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from diff' -l push-strategy -d 'Strategy to preview. "force-sync" also shows cloud entities that would be DELETED. Defaults to "force-sync".' -x
630
705
  complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from diff' -l summary -d 'Skip content comparison. Faster, but updates are listed without checking whether they changed.'
631
706
  complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from diff' -l json -d 'Print the diff as machine-readable JSON.'
632
- complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from diff' -l exit-code -d 'Exit with code 1 when drift is found (for CI gates).'
707
+ complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from diff' -l exit-code -d 'Exit with code 1 when a verified difference is found (for CI gates). Entity types with no comparison path are reported but do not fail the gate.'
633
708
  complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from diff' -l verbose -d 'Show detailed logging'
634
709
  complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from diff' -l timeout -d 'Abort the run after this many milliseconds. Defaults to 120000.' -x
635
710
  complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from diff' -s h -l help -d 'display help for command'
@@ -650,12 +725,18 @@ complete -c postman -n '__fish_seen_subcommand_from performance' -s h -l help -d
650
725
  # ---------- performance run ----------
651
726
  complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -s e -l environment -d 'Specify an Id to a Postman Environment' -x
652
727
  complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -s g -l globals -d 'Specify an Id to a Postman Globals' -x
653
- complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -l setup-collection -d 'Collection UID to run before the Postman Cloud performance test' -x
654
- complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -l teardown-collection -d 'Collection UID to run after the Postman Cloud performance test' -x
728
+ complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -l setup-collection -d 'Collection UID to run before the performance test' -x
729
+ complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -l teardown-collection -d 'Collection UID to run after the performance test' -x
655
730
  complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -l vu-count -d 'Number of virtual users (default: 20)' -x
656
731
  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
657
732
  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
658
733
  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
734
+ complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -l ssl-client-cert-list -d 'Path to a client certificates configuration file (JSON). Local runner only.' -r
735
+ complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -l ssl-client-cert -d 'Path to a client certificate (PEM) for mTLS targets. Local runner only.' -r
736
+ complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -l ssl-client-key -d 'Path to the client certificate private key. Local runner only.' -r
737
+ complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -l ssl-client-passphrase -d 'Client certificate passphrase (for a protected key). Local runner only.' -x
738
+ complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -s k -l insecure -d 'Disable SSL certificate verification for the target. Local runner only.'
739
+ complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -l ssl-extra-ca-certs -d 'Path to additionally trusted CA certificates (PEM) for the target. Local runner only.' -r
659
740
  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
660
741
  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
661
742
  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
@@ -903,10 +984,12 @@ complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcom
903
984
  complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from generate' -s x -l suppress-exit-code -d 'Always exit with code 0, even on failure'
904
985
  complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from generate' -s h -l help -d 'display help for command'
905
986
  # ---------- mock run ----------
906
- complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from run' -s e -l environment -d 'Path to a file of environment variables for the mock. Relative or absolute, e.g. ./postman/environments/dev.json' -r
987
+ complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from run' -s e -l environment -d 'Path to a file of environment variables for the mock. Relative or absolute, e.g. ./postman/environments/dev.environment.yaml' -r
907
988
  complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from run' -s g -l globals -d 'Path to a file of global variables for the mock. Relative or absolute, e.g. ./globals.json' -r
908
989
  complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from run' -s p -l port -d 'Port to run on (e.g. 4010), or "auto" for a free one. Defaults to the mock\'s configured port.' -x
909
990
  complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from run' -l api-key -d 'Postman API key, used with a Postman cloud id (defaults to your `postman login` session)' -r
991
+ complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from run' -s w -l workspace -d 'Workspace that owns the run, for recording its start history. Auto-resolved for a Postman cloud id; required to record history for a path.' -x
992
+ complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from run' -l no-history -d 'Do not record this run in the mock\'s start history.'
910
993
  complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from run' -s h -l help -d 'display help for command'
911
994
  complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from run' -r -k -a '(__fish_complete_suffix .json)'
912
995
  # ---------- mock push ----------
@@ -987,6 +1070,10 @@ complete -c postman -n '__fish_seen_subcommand_from application; and __fish_seen
987
1070
  complete -c postman -n '__postman_using_subcommand simulate run' -a run -d 'Start mocks with fault-injection scenarios defined in a .sim.yaml file'
988
1071
  complete -c postman -n '__fish_seen_subcommand_from simulate' -s h -l help -d 'display help for command'
989
1072
  # ---------- simulate run ----------
1073
+ complete -c postman -n '__fish_seen_subcommand_from simulate; and __fish_seen_subcommand_from run' -s w -l workspace -d 'Workspace that owns the run, for recording its simulation start history.' -x
1074
+ complete -c postman -n '__fish_seen_subcommand_from simulate; and __fish_seen_subcommand_from run' -l simulation -d 'Simulation id to record start history against (a local .sim.yaml has only a name). Required, with --workspace, to record history.' -x
1075
+ complete -c postman -n '__fish_seen_subcommand_from simulate; and __fish_seen_subcommand_from run' -l api-key -d 'Postman API key for recording start history (defaults to your `postman login` session).' -r
1076
+ complete -c postman -n '__fish_seen_subcommand_from simulate; and __fish_seen_subcommand_from run' -l no-history -d 'Do not record this run in the simulation\'s start history.'
990
1077
  complete -c postman -n '__fish_seen_subcommand_from simulate; and __fish_seen_subcommand_from run' -s h -l help -d 'display help for command'
991
1078
  complete -c postman -n '__fish_seen_subcommand_from simulate; and __fish_seen_subcommand_from run' -r -k -a '(__fish_complete_suffix .json)'
992
1079
 
@@ -1,6 +1,6 @@
1
1
  #compdef postman
2
2
  compdef _postman postman
3
- # Zsh completion for Postman CLI (postman v1.62.0)
3
+ # Zsh completion for Postman CLI (postman v1.65.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
@@ -123,7 +123,7 @@ _postman_init() {
123
123
  '--dry-run[Report what would happen without writing anything]' \
124
124
  '--no-fetch[Use the skills bundled with this CLI instead of fetching the latest]' \
125
125
  '--spec[Which spec is authoritative, when more than one could be]:path:_files -g "*.(yaml|yml|json)"' \
126
- '--visibility[Create and bind a workspace non-interactively (personal or team)]:status' \
126
+ '--visibility[Create and bind a workspace non-interactively (personal, team)]:status' \
127
127
  '--no-cloud[Skip the workspace step entirely]' \
128
128
  '--report-events[Send init analytics to Postman (requires login)]' \
129
129
  '(-h --help)'{-h,--help}'[display help for command]' \
@@ -209,7 +209,10 @@ _postman_collection() {
209
209
  lint) _postman_collection_lint ;;
210
210
  ai-readiness) _postman_collection_ai_readiness ;;
211
211
  get) _postman_collection_get ;;
212
+ generate) _postman_collection_generate ;;
213
+ sync) _postman_collection_sync ;;
212
214
  request) _postman_collection_request ;;
215
+ folder) _postman_collection_folder ;;
213
216
  list) _postman_collection_list ;;
214
217
  run) _postman_collection_run ;;
215
218
  esac
@@ -225,7 +228,10 @@ _postman_collection_commands() {
225
228
  'lint:Run linting on a local v3 collection at the given file or directory path.'
226
229
  'ai-readiness:Score a Postman collection for AI readiness by ID, local file path, or local-mode directory.'
227
230
  'get:Fetch a Postman collection in the V3 format and print it.'
231
+ 'generate:Generate artifacts from a collection.'
232
+ 'sync:Sync artifacts generated from a collection.'
228
233
  'request:Add, update, or remove requests in a local v3 collection.'
234
+ 'folder:Add, update, or remove folders in a local v3 collection.'
229
235
  'list:List collections\: your local project'\''s collections by default, or a Postman cloud workspace'\''s collections with --workspace.'
230
236
  'run:Initiate a Postman collection run from a given ID or path.'
231
237
  )
@@ -260,6 +266,7 @@ _postman_collection_lint() {
260
266
  _postman_collection_ai_readiness() {
261
267
  _arguments \
262
268
  '(-o --output)'{-o,--output}'[Output format for the results. \[choices\: "cli", "json", "html"\]]:value' \
269
+ '--export[Write the report to this file instead of stdout. A directory receives the report under a name derived from the collection. Requires --output html.]:path:_files -g "*.json"' \
263
270
  '--min-score[Exit with a non-zero code if the overall score is below this threshold (0-100).]:n' \
264
271
  '(-h --help)'{-h,--help}'[display help for command]' \
265
272
  '*:collectionId/Path:_files -g "*.json"'
@@ -273,6 +280,72 @@ _postman_collection_get() {
273
280
  '*:id:'
274
281
  }
275
282
 
283
+ _postman_collection_generate() {
284
+ local context state state_descr line
285
+ typeset -A opt_args
286
+ _arguments -C \
287
+ '(-h --help)'{-h,--help}'[display help for command]' \
288
+ '1: :_postman_collection_generate_commands' \
289
+ '*::arg:->args'
290
+ case $state in
291
+ args)
292
+ case $words[1] in
293
+ spec) _postman_collection_generate_spec ;;
294
+ esac
295
+ ;;
296
+ esac
297
+ }
298
+
299
+ _postman_collection_generate_commands() {
300
+ local -a sub
301
+ sub=(
302
+ 'spec:Generate an OpenAPI specification from a Postman collection.'
303
+ )
304
+ _describe -t commands 'generate command' sub
305
+ }
306
+
307
+ _postman_collection_generate_spec() {
308
+ _arguments \
309
+ '(-n --name)'{-n,--name}'[Specification name / title]:name' \
310
+ '--spec-version[Target OpenAPI version\: 3.1, 3.0, or 2.0 (default\: 3.1) (default\: "3.1")]:ver' \
311
+ '(-f --format)'{-f,--format}'[Output format\: yaml or json (default\: yaml) (default\: "yaml")]:fmt' \
312
+ '--api-key[Postman API key]:key:_files -g "*.(pem|crt|key)"' \
313
+ '(-h --help)'{-h,--help}'[display help for command]' \
314
+ '*:collection:_files -g "*.json"'
315
+ }
316
+
317
+ _postman_collection_sync() {
318
+ local context state state_descr line
319
+ typeset -A opt_args
320
+ _arguments -C \
321
+ '(-h --help)'{-h,--help}'[display help for command]' \
322
+ '1: :_postman_collection_sync_commands' \
323
+ '*::arg:->args'
324
+ case $state in
325
+ args)
326
+ case $words[1] in
327
+ spec) _postman_collection_sync_spec ;;
328
+ esac
329
+ ;;
330
+ esac
331
+ }
332
+
333
+ _postman_collection_sync_commands() {
334
+ local -a sub
335
+ sub=(
336
+ 'spec:Sync a specification from a linked collection (local path or cloud UUID).'
337
+ )
338
+ _describe -t commands 'sync command' sub
339
+ }
340
+
341
+ _postman_collection_sync_spec() {
342
+ _arguments \
343
+ '--spec-id[Specification ID to sync (required for cloud mode)]:id' \
344
+ '--api-key[Postman API key]:key:_files -g "*.(pem|crt|key)"' \
345
+ '(-h --help)'{-h,--help}'[display help for command]' \
346
+ '*:collection:_files -g "*.json"'
347
+ }
348
+
276
349
  _postman_collection_request() {
277
350
  local context state state_descr line
278
351
  typeset -A opt_args
@@ -345,6 +418,70 @@ _postman_collection_request_rm() {
345
418
  '*:request:'
346
419
  }
347
420
 
421
+ _postman_collection_folder() {
422
+ local context state state_descr line
423
+ typeset -A opt_args
424
+ _arguments -C \
425
+ '(-h --help)'{-h,--help}'[display help for command]' \
426
+ '1: :_postman_collection_folder_commands' \
427
+ '*::arg:->args'
428
+ case $state in
429
+ args)
430
+ case $words[1] in
431
+ add) _postman_collection_folder_add ;;
432
+ update) _postman_collection_folder_update ;;
433
+ rm|remove) _postman_collection_folder_rm ;;
434
+ esac
435
+ ;;
436
+ esac
437
+ }
438
+
439
+ _postman_collection_folder_commands() {
440
+ local -a sub
441
+ sub=(
442
+ 'add:Add an empty folder to a local v3 collection (set its details later with `update`).'
443
+ 'update:Update a folder in a v3 collection (only the fields you pass).'
444
+ 'rm:Remove a folder from a v3 collection (recursive\: removes everything inside it).'
445
+ 'remove:Alias for rm'
446
+ )
447
+ _describe -t commands 'folder command' sub
448
+ }
449
+
450
+ _postman_collection_folder_add() {
451
+ _arguments \
452
+ '--collection[Target collection\: name, directory, id, cloud id, or path. Required.]:id|name' \
453
+ '--folder[Parent folder within the collection, e.g. "Users/Admin". Defaults to the root.]:id|name|path' \
454
+ '(-w --workspace)'{-w,--workspace}'[Target a Postman cloud workspace by id (cloud mode).]:id' \
455
+ '--json[JSON output.]' \
456
+ '(-h --help)'{-h,--help}'[display help for command]' \
457
+ '*:folder-name:'
458
+ }
459
+
460
+ _postman_collection_folder_update() {
461
+ _arguments \
462
+ '--collection[Target collection\: name, directory, id, cloud id, or path (cloud\: id only). Required.]:id|name' \
463
+ '--folder[Parent folder to scope the selector, e.g. "Users" (local\: name/path; cloud\: id).]:id|name|path' \
464
+ '--name[Rename the folder (moves its directory).]:name' \
465
+ '--description[Folder description.]:text' \
466
+ '--auth[Folder auth\: none, inherit, bearer\:TOKEN, basic\:USER\:PASS, apikey\:KEY\:VALUE\[\:header|query\], oauth2\:TOKEN.]:spec' \
467
+ '--scripts[Replace folder scripts. event is prerequest or test; script is @file, - for stdin, or inline. Repeatable. (default\: \[\])]:event\:script' \
468
+ '(-w --workspace)'{-w,--workspace}'[Target a Postman cloud workspace by id (cloud mode).]:id' \
469
+ '--json[JSON output.]' \
470
+ '(-h --help)'{-h,--help}'[display help for command]' \
471
+ '*:folder:'
472
+ }
473
+
474
+ _postman_collection_folder_rm() {
475
+ _arguments \
476
+ '--collection[Target collection\: name, directory, id, cloud id, or path (cloud\: id only). Required.]:id|name' \
477
+ '--folder[Parent folder to scope the selector, e.g. "Users" (local\: name/path; cloud\: id).]:id|name|path' \
478
+ '(-y --yes)'{-y,--yes}'[Skip the confirmation prompt (required when stdout is not a TTY).]' \
479
+ '(-w --workspace)'{-w,--workspace}'[Target a Postman cloud workspace by id (cloud mode).]:id' \
480
+ '--json[JSON output.]' \
481
+ '(-h --help)'{-h,--help}'[display help for command]' \
482
+ '*:folder:'
483
+ }
484
+
348
485
  _postman_collection_list() {
349
486
  _arguments \
350
487
  '(-w --workspace)'{-w,--workspace}'[List a Postman cloud workspace'\''s collections by id. Omit to list the local project'\''s collections.]:workspaceId' \
@@ -397,6 +534,9 @@ _postman_collection_run() {
397
534
  '--port[Port for the --mock server (e.g. 4010), or "auto" for a free one. Defaults to the mock'\''s configured port. Only valid with --mock.]:port' \
398
535
  '--use-mock[Redirect requests for a URL or {{variable}} to a mock during the run. Format\: "<url> mock|mock-server\:<path|id> \[scenario\]". Repeat the flag to redirect several URLs (one --use-mock each). Use "mock\:<path>" for a mock in your repository (path relative or absolute, e.g. ./postman/mocks/orders), "mock\:<id>" for a mock in Postman cloud (fetched then run locally), or "mock-server\:<id>" to send requests to a deployed mock server. An id needs `postman login` (or --postman-api-key). The optional third field picks a scenario (defaults to "default"). (default\: \[\])]:mapping' \
399
536
  '--simulate[Start mock servers with fault-injection scenarios from a .sim.yaml file]:path:_files -g "*.(sim.yaml|yaml|yml)"' \
537
+ '--simulation[Simulation id to record start history against when using --simulate.]:id' \
538
+ '--simulate-workspace[Workspace that owns the --simulate run, for recording its start history.]:id' \
539
+ '--no-simulate-history[Do not record the --simulate run in the simulation'\''s start history.]' \
400
540
  '--report-events[Upload results for git-native v3 collection runs. Analytics are sent by default]' \
401
541
  '--no-report-events[Do not send analytics to Postman]' \
402
542
  '(-h --help)'{-h,--help}'[display help for command]' \
@@ -695,6 +835,7 @@ _postman_spec() {
695
835
  file) _postman_spec_file ;;
696
836
  create) _postman_spec_create ;;
697
837
  generate) _postman_spec_generate ;;
838
+ sync) _postman_spec_sync ;;
698
839
  esac
699
840
  ;;
700
841
  esac
@@ -710,6 +851,7 @@ _postman_spec_commands() {
710
851
  'file:Add, update, or remove files in a spec (cloud ID or local directory).'
711
852
  'create:Create a new spec in a workspace, or (with path) scaffold a local spec file.'
712
853
  'generate:Generate artifacts from a specification.'
854
+ 'sync:Sync a generated collection with its source specification.'
713
855
  )
714
856
  _describe -t commands 'spec command' sub
715
857
  }
@@ -728,6 +870,7 @@ _postman_spec_lint() {
728
870
  _postman_spec_ai_readiness() {
729
871
  _arguments \
730
872
  '(-o --output)'{-o,--output}'[Output format for the results. \[choices\: "cli", "json", "html"\]]:value' \
873
+ '--export[Write the report to this file instead of stdout. A directory receives the report under a name derived from the specification. Requires --output html.]:path:_files -g "*.json"' \
731
874
  '--min-score[Exit with a non-zero code if the overall score is below this threshold (0-100).]:n' \
732
875
  '(-h --help)'{-h,--help}'[display help for command]' \
733
876
  '*:spec:'
@@ -849,6 +992,38 @@ _postman_spec_generate_collection() {
849
992
  '*:spec:'
850
993
  }
851
994
 
995
+ _postman_spec_sync() {
996
+ local context state state_descr line
997
+ typeset -A opt_args
998
+ _arguments -C \
999
+ '(-h --help)'{-h,--help}'[display help for command]' \
1000
+ '1: :_postman_spec_sync_commands' \
1001
+ '*::arg:->args'
1002
+ case $state in
1003
+ args)
1004
+ case $words[1] in
1005
+ collection) _postman_spec_sync_collection ;;
1006
+ esac
1007
+ ;;
1008
+ esac
1009
+ }
1010
+
1011
+ _postman_spec_sync_commands() {
1012
+ local -a sub
1013
+ sub=(
1014
+ 'collection:Sync a collection from a linked specification (local path or cloud UUID).'
1015
+ )
1016
+ _describe -t commands 'sync command' sub
1017
+ }
1018
+
1019
+ _postman_spec_sync_collection() {
1020
+ _arguments \
1021
+ '--collection-id[Collection ID to sync (required for cloud mode)]:id' \
1022
+ '--api-key[Postman API key]:key:_files -g "*.(pem|crt|key)"' \
1023
+ '(-h --help)'{-h,--help}'[display help for command]' \
1024
+ '*:spec:'
1025
+ }
1026
+
852
1027
  _postman_monitor() {
853
1028
  local context state state_descr line
854
1029
  typeset -A opt_args
@@ -1122,8 +1297,10 @@ _postman_workspace() {
1122
1297
  lint) _postman_workspace_lint ;;
1123
1298
  get) _postman_workspace_get ;;
1124
1299
  create) _postman_workspace_create ;;
1300
+ delete) _postman_workspace_delete ;;
1125
1301
  pull) _postman_workspace_pull ;;
1126
1302
  connect-git) _postman_workspace_connect_git ;;
1303
+ disconnect-git) _postman_workspace_disconnect_git ;;
1127
1304
  diff) _postman_workspace_diff ;;
1128
1305
  esac
1129
1306
  ;;
@@ -1139,8 +1316,10 @@ _postman_workspace_commands() {
1139
1316
  'lint:Lint the current local Postman workspace\: its configuration (.postman/resources.yaml) plus every discovered entity. Use --meta to lint only the configuration.'
1140
1317
  'get:Read a workspace'\''s metadata, and optionally the ids of what it holds.'
1141
1318
  'create:Create a Postman workspace and bind it to this git repository.'
1319
+ 'delete:Permanently delete a workspace and everything in it. Prompts for confirmation unless --yes is passed.'
1142
1320
  'pull:Pull workspace entities from a Postman workspace into the local git-native folder.'
1143
1321
  'connect-git:Connect a Postman workspace to a local git repository.'
1322
+ 'disconnect-git:Disconnect a Postman workspace from its local git repository.'
1144
1323
  'diff:Preview local-vs-cloud drift before pushing. Read-only\: nothing is created, updated or deleted.'
1145
1324
  )
1146
1325
  _describe -t commands 'workspace command' sub
@@ -1205,6 +1384,16 @@ _postman_workspace_create() {
1205
1384
  '(-h --help)'{-h,--help}'[display help for command]'
1206
1385
  }
1207
1386
 
1387
+ _postman_workspace_delete() {
1388
+ _arguments \
1389
+ '(-y --yes)'{-y,--yes}'[Skip the confirmation prompt]' \
1390
+ '--json[Print the outcome as machine-readable JSON]' \
1391
+ '--verbose[Show detailed logging]' \
1392
+ '--timeout[Abort the run after this many milliseconds. Defaults to 30000.]:ms' \
1393
+ '(-h --help)'{-h,--help}'[display help for command]' \
1394
+ '*:workspaceId:'
1395
+ }
1396
+
1208
1397
  _postman_workspace_pull() {
1209
1398
  _arguments \
1210
1399
  '(-y --yes)'{-y,--yes}'[Skip all confirmation prompts]' \
@@ -1221,12 +1410,20 @@ _postman_workspace_connect_git() {
1221
1410
  '*:path:_files -g "*.json"'
1222
1411
  }
1223
1412
 
1413
+ _postman_workspace_disconnect_git() {
1414
+ _arguments \
1415
+ '(-y --yes)'{-y,--yes}'[Skip all confirmation prompts]' \
1416
+ '--verbose[Show detailed logging]' \
1417
+ '(-h --help)'{-h,--help}'[display help for command]' \
1418
+ '*:workspaceId:'
1419
+ }
1420
+
1224
1421
  _postman_workspace_diff() {
1225
1422
  _arguments \
1226
1423
  '--push-strategy[Strategy to preview. "force-sync" also shows cloud entities that would be DELETED. Defaults to "force-sync".]:strategy' \
1227
1424
  '--summary[Skip content comparison. Faster, but updates are listed without checking whether they changed.]' \
1228
1425
  '--json[Print the diff as machine-readable JSON.]' \
1229
- '--exit-code[Exit with code 1 when drift is found (for CI gates).]' \
1426
+ '--exit-code[Exit with code 1 when a verified difference is found (for CI gates). Entity types with no comparison path are reported but do not fail the gate.]' \
1230
1427
  '--verbose[Show detailed logging]' \
1231
1428
  '--timeout[Abort the run after this many milliseconds. Defaults to 120000.]:ms' \
1232
1429
  '(-h --help)'{-h,--help}'[display help for command]' \
@@ -1295,12 +1492,18 @@ _postman_performance_run() {
1295
1492
  _arguments \
1296
1493
  '(-e --environment)'{-e,--environment}'[Specify an Id to a Postman Environment]:id' \
1297
1494
  '(-g --globals)'{-g,--globals}'[Specify an Id to a Postman Globals]:id' \
1298
- '--setup-collection[Collection UID to run before the Postman Cloud performance test]:id' \
1299
- '--teardown-collection[Collection UID to run after the Postman Cloud performance test]:id' \
1495
+ '--setup-collection[Collection UID to run before the performance test]:id' \
1496
+ '--teardown-collection[Collection UID to run after the performance test]:id' \
1300
1497
  '--vu-count[Number of virtual users (default\: 20)]:count' \
1301
1498
  '(-d --duration)'{-d,--duration}'[Duration of the performance test in minutes (default\: 1)]:minutes' \
1302
1499
  '(-p --load-profile)'{-p,--load-profile}'[Load profile type\: fixed, ramp-up, spike, peak (default\: "ramp-up")]:profile' \
1303
1500
  '--data-file[Path to a JSON or CSV data file to use with the collection]:path:_files -g "*.json"' \
1501
+ '--ssl-client-cert-list[Path to a client certificates configuration file (JSON). Local runner only.]:path:_files -g "*.(pem|crt|key)"' \
1502
+ '--ssl-client-cert[Path to a client certificate (PEM) for mTLS targets. Local runner only.]:path:_files -g "*.(pem|crt|key)"' \
1503
+ '--ssl-client-key[Path to the client certificate private key. Local runner only.]:path:_files -g "*.(pem|crt|key)"' \
1504
+ '--ssl-client-passphrase[Client certificate passphrase (for a protected key). Local runner only.]:passphrase' \
1505
+ '(-k --insecure)'{-k,--insecure}'[Disable SSL certificate verification for the target. Local runner only.]' \
1506
+ '--ssl-extra-ca-certs[Path to additionally trusted CA certificates (PEM) for the target. Local runner only.]:path:_files -g "*.(pem|crt|key)"' \
1304
1507
  '--dataset-id[Use a Postman Dataset as iteration data (with --dataset-view-id)]:id' \
1305
1508
  '--dataset-view-id[Dataset view to execute for iteration data (requires --dataset-id)]:id' \
1306
1509
  '--dataset-distribution[How rows map to VUs\: round-robin (default), fixed, random]:strategy' \
@@ -1717,10 +1920,12 @@ _postman_mock_generate() {
1717
1920
 
1718
1921
  _postman_mock_run() {
1719
1922
  _arguments \
1720
- '(-e --environment)'{-e,--environment}'[Path to a file of environment variables for the mock. Relative or absolute, e.g. ./postman/environments/dev.json]:path:_files -g "*.json"' \
1923
+ '(-e --environment)'{-e,--environment}'[Path to a file of environment variables for the mock. Relative or absolute, e.g. ./postman/environments/dev.environment.yaml]:path:_files -g "*.json"' \
1721
1924
  '(-g --globals)'{-g,--globals}'[Path to a file of global variables for the mock. Relative or absolute, e.g. ./globals.json]:path:_files -g "*.json"' \
1722
1925
  '(-p --port)'{-p,--port}'[Port to run on (e.g. 4010), or "auto" for a free one. Defaults to the mock'\''s configured port.]:port' \
1723
1926
  '--api-key[Postman API key, used with a Postman cloud id (defaults to your `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
1927
+ '(-w --workspace)'{-w,--workspace}'[Workspace that owns the run, for recording its start history. Auto-resolved for a Postman cloud id; required to record history for a path.]:id' \
1928
+ '--no-history[Do not record this run in the mock'\''s start history.]' \
1724
1929
  '(-h --help)'{-h,--help}'[display help for command]' \
1725
1930
  '*:mockIdOrPath:_files -g "*.json"'
1726
1931
  }
@@ -1873,6 +2078,10 @@ _postman_simulate_commands() {
1873
2078
 
1874
2079
  _postman_simulate_run() {
1875
2080
  _arguments \
2081
+ '(-w --workspace)'{-w,--workspace}'[Workspace that owns the run, for recording its simulation start history.]:id' \
2082
+ '--simulation[Simulation id to record start history against (a local .sim.yaml has only a name). Required, with --workspace, to record history.]:id' \
2083
+ '--api-key[Postman API key for recording start history (defaults to your `postman login` session).]:key:_files -g "*.(pem|crt|key)"' \
2084
+ '--no-history[Do not record this run in the simulation'\''s start history.]' \
1876
2085
  '(-h --help)'{-h,--help}'[display help for command]' \
1877
2086
  '*:filepath:_files -g "*.json"'
1878
2087
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "postman-cli-completion",
3
- "version": "1.62.0",
3
+ "version": "1.65.0",
4
4
  "description": "Shell completions for the Postman CLI (zsh, bash, fish)",
5
5
  "type": "module",
6
6
  "bin": {