postman-cli-completion 1.43.0 → 1.45.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.43.0)
1
+ # Bash completion for Postman CLI (postman v1.45.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
@@ -22,7 +22,7 @@ _postman() {
22
22
  cur="${COMP_WORDS[COMP_CWORD]}"
23
23
  prev="${COMP_WORDS[COMP_CWORD-1]}"
24
24
 
25
- local top_commands="login logout collection api runner spec monitor workspace performance flows fl request sdk mock application app simulate context search webhook dataset"
25
+ local top_commands="login logout collection api runner spec monitor workspace ws performance flows fl request sdk mock application app simulate context search webhook dataset"
26
26
  local global_flags="-v --version --silent --color -h --help -h --help"
27
27
 
28
28
  local i cmd="" subcmd=""
@@ -53,7 +53,7 @@ _postman() {
53
53
  runner) _postman_runner ;;
54
54
  spec) _postman_spec ;;
55
55
  monitor) _postman_monitor ;;
56
- workspace) _postman_workspace ;;
56
+ workspace|ws) _postman_workspace ;;
57
57
  performance) _postman_performance ;;
58
58
  flows|fl) _postman_flows ;;
59
59
  request) _postman_request ;;
@@ -332,43 +332,39 @@ _postman_workspace() {
332
332
  if [[ "$cur" == -* ]]; then
333
333
  COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
334
334
  else
335
- COMPREPLY=( $(compgen -W "prepare push" -- "$cur") )
335
+ COMPREPLY=( $(compgen -W "list prepare push" -- "$cur") )
336
336
  fi
337
337
  return 0
338
338
  fi
339
339
  case "$subcmd" in
340
+ list) _postman_workspace_list ;;
340
341
  prepare) _postman_workspace_prepare ;;
341
342
  push) _postman_workspace_push ;;
342
343
  esac
343
344
  }
344
345
 
345
- _postman_workspace_prepare() {
346
+ _postman_workspace_list() {
346
347
  if [[ "$cur" == -* ]]; then
347
- COMPREPLY=( $(compgen -W "--collections-dir --environments-dir --verbose -h --help" -- "$cur") )
348
+ COMPREPLY=( $(compgen -W "-f --filter -t --type --verbose --debug --json -h --help" -- "$cur") )
348
349
  return 0
349
350
  fi
350
351
  case "$prev" in
351
- --collections-dir)
352
- COMPREPLY=( $(compgen -d -- "$cur") )
353
- return 0 ;;
354
- --environments-dir)
355
- COMPREPLY=( $(compgen -d -- "$cur") )
356
- return 0 ;;
357
352
  esac
358
353
  }
359
354
 
355
+ _postman_workspace_prepare() {
356
+ if [[ "$cur" == -* ]]; then
357
+ COMPREPLY=( $(compgen -W "--verbose -h --help" -- "$cur") )
358
+ return 0
359
+ fi
360
+ }
361
+
360
362
  _postman_workspace_push() {
361
363
  if [[ "$cur" == -* ]]; then
362
- COMPREPLY=( $(compgen -W "--collections-dir --environments-dir --no-prepare -y --yes --verbose --report-events -h --help" -- "$cur") )
364
+ COMPREPLY=( $(compgen -W "--no-prepare -y --yes --push-strategy --verbose --report-events -h --help" -- "$cur") )
363
365
  return 0
364
366
  fi
365
367
  case "$prev" in
366
- --collections-dir)
367
- COMPREPLY=( $(compgen -d -- "$cur") )
368
- return 0 ;;
369
- --environments-dir)
370
- COMPREPLY=( $(compgen -d -- "$cur") )
371
- return 0 ;;
372
368
  esac
373
369
  }
374
370
 
@@ -1160,46 +1156,64 @@ _postman_dataset() {
1160
1156
 
1161
1157
  _postman_dataset_list() {
1162
1158
  if [[ "$cur" == -* ]]; then
1163
- COMPREPLY=( $(compgen -W "--json -h --help" -- "$cur") )
1159
+ COMPREPLY=( $(compgen -W "-w --workspace --api-key --json -h --help" -- "$cur") )
1164
1160
  return 0
1165
1161
  fi
1162
+ case "$prev" in
1163
+ --api-key)
1164
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
1165
+ return 0 ;;
1166
+ esac
1166
1167
  _postman_filematch '!*.@(json)' "$cur"
1167
1168
  }
1168
1169
 
1169
1170
  _postman_dataset_get() {
1170
1171
  if [[ "$cur" == -* ]]; then
1171
- COMPREPLY=( $(compgen -W "--json -h --help" -- "$cur") )
1172
+ COMPREPLY=( $(compgen -W "--api-key --no-populate --json -h --help" -- "$cur") )
1172
1173
  return 0
1173
1174
  fi
1174
- _postman_filematch '!*.@(json)' "$cur"
1175
+ case "$prev" in
1176
+ --api-key)
1177
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
1178
+ return 0 ;;
1179
+ esac
1175
1180
  }
1176
1181
 
1177
1182
  _postman_dataset_query() {
1178
1183
  if [[ "$cur" == -* ]]; then
1179
- COMPREPLY=( $(compgen -W "-q --query -p --param --json -h --help" -- "$cur") )
1184
+ COMPREPLY=( $(compgen -W "-q --query -p --param --api-key --json -h --help" -- "$cur") )
1180
1185
  return 0
1181
1186
  fi
1182
1187
  case "$prev" in
1188
+ --api-key)
1189
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
1190
+ return 0 ;;
1183
1191
  esac
1184
- _postman_filematch '!*.@(json)' "$cur"
1185
1192
  }
1186
1193
 
1187
1194
  _postman_dataset_create() {
1188
1195
  if [[ "$cur" == -* ]]; then
1189
- COMPREPLY=( $(compgen -W "-n --name -d --description --id --force -h --help" -- "$cur") )
1196
+ COMPREPLY=( $(compgen -W "-n --name -d --description --dataset-id --force -w --workspace --api-key -h --help" -- "$cur") )
1190
1197
  return 0
1191
1198
  fi
1192
1199
  case "$prev" in
1200
+ --api-key)
1201
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
1202
+ return 0 ;;
1193
1203
  esac
1194
1204
  _postman_filematch '!*.@(json)' "$cur"
1195
1205
  }
1196
1206
 
1197
1207
  _postman_dataset_delete() {
1198
1208
  if [[ "$cur" == -* ]]; then
1199
- COMPREPLY=( $(compgen -W "-y --yes --keep-resources -h --help" -- "$cur") )
1209
+ COMPREPLY=( $(compgen -W "-y --yes --keep-resources --api-key -h --help" -- "$cur") )
1200
1210
  return 0
1201
1211
  fi
1202
- _postman_filematch '!*.@(json)' "$cur"
1212
+ case "$prev" in
1213
+ --api-key)
1214
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
1215
+ return 0 ;;
1216
+ esac
1203
1217
  }
1204
1218
 
1205
1219
  _postman_dataset_source() {
@@ -1221,41 +1235,55 @@ _postman_dataset_source() {
1221
1235
 
1222
1236
  _postman_dataset_source_list() {
1223
1237
  if [[ "$cur" == -* ]]; then
1224
- COMPREPLY=( $(compgen -W "--json -h --help" -- "$cur") )
1238
+ COMPREPLY=( $(compgen -W "-d --dataset --api-key --json -h --help" -- "$cur") )
1225
1239
  return 0
1226
1240
  fi
1227
- _postman_filematch '!*.@(json)' "$cur"
1241
+ case "$prev" in
1242
+ --api-key)
1243
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
1244
+ return 0 ;;
1245
+ esac
1228
1246
  }
1229
1247
 
1230
1248
  _postman_dataset_source_add() {
1231
1249
  if [[ "$cur" == -* ]]; then
1232
- COMPREPLY=( $(compgen -W "-n --name --id --format --type --file --ref-only --force --url --host --port --user --password --database --table --slug -h --help" -- "$cur") )
1250
+ COMPREPLY=( $(compgen -W "-d --dataset -n --name --source-id --format --type --file --ref-only --force --upload --url --host --port --user --password --database --table --slug --api-key -h --help" -- "$cur") )
1233
1251
  return 0
1234
1252
  fi
1235
1253
  case "$prev" in
1236
1254
  --file)
1237
1255
  _postman_filematch '!*.@(json)' "$cur"
1238
1256
  return 0 ;;
1257
+ --api-key)
1258
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
1259
+ return 0 ;;
1239
1260
  esac
1240
- _postman_filematch '!*.@(json)' "$cur"
1241
1261
  }
1242
1262
 
1243
1263
  _postman_dataset_source_remove() {
1244
1264
  if [[ "$cur" == -* ]]; then
1245
- COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
1265
+ COMPREPLY=( $(compgen -W "-d --dataset --api-key -h --help" -- "$cur") )
1246
1266
  return 0
1247
1267
  fi
1268
+ case "$prev" in
1269
+ --api-key)
1270
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
1271
+ return 0 ;;
1272
+ esac
1248
1273
  }
1249
1274
 
1250
1275
  _postman_dataset_source_update() {
1251
1276
  if [[ "$cur" == -* ]]; then
1252
- COMPREPLY=( $(compgen -W "-n --name --format --file --ref-only --force --url --host --port --user --password --database --table --slug -h --help" -- "$cur") )
1277
+ COMPREPLY=( $(compgen -W "-d --dataset -n --name --format --file --ref-only --force --url --host --port --user --password --database --table --slug --api-key -h --help" -- "$cur") )
1253
1278
  return 0
1254
1279
  fi
1255
1280
  case "$prev" in
1256
1281
  --file)
1257
1282
  _postman_filematch '!*.@(json)' "$cur"
1258
1283
  return 0 ;;
1284
+ --api-key)
1285
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
1286
+ return 0 ;;
1259
1287
  esac
1260
1288
  }
1261
1289
 
@@ -1279,44 +1307,61 @@ _postman_dataset_view() {
1279
1307
 
1280
1308
  _postman_dataset_view_list() {
1281
1309
  if [[ "$cur" == -* ]]; then
1282
- COMPREPLY=( $(compgen -W "--json -h --help" -- "$cur") )
1310
+ COMPREPLY=( $(compgen -W "-d --dataset --api-key --json -h --help" -- "$cur") )
1283
1311
  return 0
1284
1312
  fi
1285
- _postman_filematch '!*.@(json)' "$cur"
1313
+ case "$prev" in
1314
+ --api-key)
1315
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
1316
+ return 0 ;;
1317
+ esac
1286
1318
  }
1287
1319
 
1288
1320
  _postman_dataset_view_run() {
1289
1321
  if [[ "$cur" == -* ]]; then
1290
- COMPREPLY=( $(compgen -W "-p --param --json -h --help" -- "$cur") )
1322
+ COMPREPLY=( $(compgen -W "-d --dataset -p --param --api-key --json -h --help" -- "$cur") )
1291
1323
  return 0
1292
1324
  fi
1293
1325
  case "$prev" in
1326
+ --api-key)
1327
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
1328
+ return 0 ;;
1294
1329
  esac
1295
1330
  }
1296
1331
 
1297
1332
  _postman_dataset_view_create() {
1298
1333
  if [[ "$cur" == -* ]]; then
1299
- COMPREPLY=( $(compgen -W "-n --name -q --query --id -h --help" -- "$cur") )
1334
+ COMPREPLY=( $(compgen -W "-d --dataset -n --name -q --query --view-id --api-key -h --help" -- "$cur") )
1300
1335
  return 0
1301
1336
  fi
1302
1337
  case "$prev" in
1338
+ --api-key)
1339
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
1340
+ return 0 ;;
1303
1341
  esac
1304
- _postman_filematch '!*.@(json)' "$cur"
1305
1342
  }
1306
1343
 
1307
1344
  _postman_dataset_view_delete() {
1308
1345
  if [[ "$cur" == -* ]]; then
1309
- COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
1346
+ COMPREPLY=( $(compgen -W "-d --dataset --api-key -h --help" -- "$cur") )
1310
1347
  return 0
1311
1348
  fi
1349
+ case "$prev" in
1350
+ --api-key)
1351
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
1352
+ return 0 ;;
1353
+ esac
1312
1354
  }
1313
1355
 
1314
1356
  _postman_dataset_view_update() {
1315
1357
  if [[ "$cur" == -* ]]; then
1316
- COMPREPLY=( $(compgen -W "-n --name -q --query -h --help" -- "$cur") )
1358
+ COMPREPLY=( $(compgen -W "-d --dataset -n --name -q --query --api-key -h --help" -- "$cur") )
1317
1359
  return 0
1318
1360
  fi
1319
1361
  case "$prev" in
1362
+ --api-key)
1363
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
1364
+ return 0 ;;
1320
1365
  esac
1321
1366
  }
1322
1367
 
@@ -1,10 +1,10 @@
1
- # Fish completion for Postman CLI (postman v1.43.0)
1
+ # Fish completion for Postman CLI (postman v1.45.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
5
5
 
6
6
  function __postman_no_subcommand
7
- not __fish_seen_subcommand_from login logout collection api runner spec monitor workspace performance flows fl request sdk mock application app simulate context search webhook dataset
7
+ not __fish_seen_subcommand_from login logout collection api runner spec monitor workspace ws performance flows fl request sdk mock application app simulate context search webhook dataset
8
8
  end
9
9
 
10
10
  function __postman_using_subcommand
@@ -29,6 +29,7 @@ complete -c postman -n __postman_no_subcommand -a runner -d 'Run runners on your
29
29
  complete -c postman -n __postman_no_subcommand -a spec -d 'Lint and validate Specifications from the command line'
30
30
  complete -c postman -n __postman_no_subcommand -a monitor -d 'Invoke a monitor run and display results'
31
31
  complete -c postman -n __postman_no_subcommand -a workspace -d 'Manage workspace resources.'
32
+ complete -c postman -n __postman_no_subcommand -a ws -d 'Alias for workspace'
32
33
  complete -c postman -n __postman_no_subcommand -a performance -d 'Manage performance tests on your collections.'
33
34
  complete -c postman -n __postman_no_subcommand -a flows -d 'Manage and interact with flows.'
34
35
  complete -c postman -n __postman_no_subcommand -a fl -d 'Alias for flows'
@@ -82,9 +83,9 @@ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_
82
83
  complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -l reporter-json-structure -d '[Optional] Generate JSON report using the Newman schema. By default, JSON reports use the native structure of Postman CLI.'
83
84
  complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -s n -l iteration-count -d 'Define the number of iterations to run' -x
84
85
  complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -s d -l iteration-data -d 'Specify a data file to use for iterations (either JSON or CSV)' -r
85
- complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -l iteration-data-dataset -d '[BETA] Path to a .dataset.yaml whose view drives the iteration data. Mutually exclusive with --iteration-data. Requires --iteration-data-view.' -r
86
+ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -l iteration-data-dataset -d '[BETA] Path to a .dataset.yaml (local collection) or a cloud dataset id (cloud collection) whose view drives the iteration data. Mutually exclusive with --iteration-data. Requires --iteration-data-view.' -r
86
87
  complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -l iteration-data-view -d '[BETA] Name or id of the view to execute (within --iteration-data-dataset). The view\'s result set drives one iteration per row.' -x
87
- complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -l dataset -d '[BETA] Pass --dataset multiple times to load several .dataset.yaml files (or directories containing them). Each is made available to scripts as pm.datasets(<id>). When provided, auto-discovery of .dataset.yaml files from the collection\'s parent repo is disabled. (default: [])' -r
88
+ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -l dataset -d '[BETA] Pass --dataset multiple times to load several .dataset.yaml files (or directories containing them). Each is made available to scripts as pm.datasets(<id>). When provided, auto-discovery of .dataset.yaml files from the collection\'s parent repo is disabled. For a cloud collection, scripts address cloud datasets by id via pm.datasets(<id>) (resolved from your `postman login` session). SECURITY: for a cloud collection this does NOT scope access — a script can pm.datasets(<anyId>) for any dataset your session can read. Only run collections you trust against a logged-in cloud session. (default: [])' -r
88
89
  complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -s i -d 'Specify the request/folder id, name, or path to run from the collection. Use a path (e.g. "FolderName/RequestName") to disambiguate items with the same name. Can be specified multiple times to run multiple items (default: [])' -x
89
90
  complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -l global-var -d 'Allows the specification of global variables via the command line, in a key=value format' -x
90
91
  complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -l env-var -d 'Allows the specification of environment variables via the command line, in a key=value format (default: [])' -x
@@ -186,19 +187,24 @@ complete -c postman -n '__fish_seen_subcommand_from monitor; and __fish_seen_sub
186
187
  complete -c postman -n '__fish_seen_subcommand_from monitor; and __fish_seen_subcommand_from run' -s h -l help -d 'display help for command'
187
188
 
188
189
  # ---------- workspace ----------
189
- complete -c postman -n '__postman_using_subcommand workspace prepare push' -a prepare -d 'Prepare local collections and environments for push by validating and regenerating IDs if needed.'
190
- complete -c postman -n '__postman_using_subcommand workspace prepare push' -a push -d 'Push local collection, environment, specification, mock, and simulation changes to Postman workspace.'
190
+ complete -c postman -n '__postman_using_subcommand workspace list prepare push' -a list -d 'List all available Postman Workspaces'
191
+ 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.'
192
+ 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.'
191
193
  complete -c postman -n '__fish_seen_subcommand_from workspace' -s h -l help -d 'display help for command'
194
+ # ---------- workspace list ----------
195
+ 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
196
+ complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from list' -s t -l type -d 'Filter workspaces by visibility type: team, public, private, personal.' -x
197
+ complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from list' -l verbose -d 'Verbose output'
198
+ complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from list' -l debug -d 'Debug output'
199
+ complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from list' -l json -d 'JSON output'
200
+ complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from list' -s h -l help -d 'display help for command'
192
201
  # ---------- workspace prepare ----------
193
- complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from prepare' -l collections-dir -d 'Path to the collections directory (default: "postman/collections")' -x
194
- complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from prepare' -l environments-dir -d 'Path to the environments directory (default: "postman/environments")' -x
195
202
  complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from prepare' -l verbose -d 'Show detailed logging'
196
203
  complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from prepare' -s h -l help -d 'display help for command'
197
204
  # ---------- workspace push ----------
198
- complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from push' -l collections-dir -d 'Path to the collections directory (default: "postman/collections")' -x
199
- complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from push' -l environments-dir -d 'Path to the environments directory (default: "postman/environments")' -x
200
205
  complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from push' -l no-prepare -d 'Skip ID validation and auto-fix before pushing'
201
206
  complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from push' -s y -l yes -d 'Skip all confirmation prompts'
207
+ complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from push' -l push-strategy -d 'Push strategy. "force-sync": mirror the whole workspace — also DELETE cloud entities that have no local counterpart (destructive). Defaults to "default" (create/update only).' -x
202
208
  complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from push' -l verbose -d 'Show detailed logging'
203
209
  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'
204
210
  complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from push' -s h -l help -d 'display help for command'
@@ -347,7 +353,7 @@ complete -c postman -n '__fish_seen_subcommand_from request' -l auth-apikey-in -
347
353
 
348
354
  # ---------- sdk ----------
349
355
  complete -c postman -n '__postman_using_subcommand sdk init generate build track list ls fetch get connect connections' -a init -d 'Create or update .postman/config.json with an SDK configuration stub.'
350
- complete -c postman -n '__postman_using_subcommand sdk init generate build track list ls fetch get connect connections' -a generate -d 'Generate a new SDK from a Postman collection or specification.'
356
+ complete -c postman -n '__postman_using_subcommand sdk init generate build track list ls fetch get connect connections' -a generate -d 'Generate a new SDK from a Postman collection or specification (OpenAPI or AsyncAPI).'
351
357
  complete -c postman -n '__postman_using_subcommand sdk init generate build track list ls fetch get connect connections' -a build -d 'Alias for generate'
352
358
  complete -c postman -n '__postman_using_subcommand sdk init generate build track list ls fetch get connect connections' -a track -d 'Enable change tracking for a generated SDK. Adds file hashes to .manifest.json so that the next `sdk generate` can detect your edits and preserve them via 3-way merge.'
353
359
  complete -c postman -n '__postman_using_subcommand sdk init generate build track list ls fetch get connect connections' -a list -d 'List SDK builds for a collection, extensible collection, or specification.'
@@ -605,71 +611,82 @@ complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_sub
605
611
  complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from forward' -s h -l help -d 'display help for command'
606
612
 
607
613
  # ---------- dataset ----------
608
- complete -c postman -n '__postman_using_subcommand dataset list get query create delete source view' -a list -d '[BETA] List dataset YAMLs under the given directory, or print summary for a single YAML file.'
609
- complete -c postman -n '__postman_using_subcommand dataset list get query create delete source view' -a get -d '[BETA] Print a dataset\'s metadata and structure summary.'
610
- complete -c postman -n '__postman_using_subcommand dataset list get query create delete source view' -a query -d '[BETA] Run an ad-hoc SQL query against a dataset.'
611
- complete -c postman -n '__postman_using_subcommand dataset list get query create delete source view' -a create -d '[BETA] Scaffold a new empty .dataset.yaml file at <path>.'
612
- complete -c postman -n '__postman_using_subcommand dataset list get query create delete source view' -a delete -d '[BETA] Permanently remove a dataset\'s .dataset.yaml file and its .resources/ directory.'
614
+ complete -c postman -n '__postman_using_subcommand dataset list get query create delete source view' -a list -d '[BETA] List local dataset YAMLs under a path, or (no path) a workspace\'s cloud datasets.'
615
+ complete -c postman -n '__postman_using_subcommand dataset list get query create delete source view' -a get -d '[BETA] Print a dataset\'s metadata and structure summary (local YAML path or cloud id).'
616
+ complete -c postman -n '__postman_using_subcommand dataset list get query create delete source view' -a query -d '[BETA] Run an ad-hoc SQL query against a dataset (local YAML path or cloud id).'
617
+ complete -c postman -n '__postman_using_subcommand dataset list get query create delete source view' -a create -d '[BETA] Scaffold a new .dataset.yaml at <path>, or (no path, with -w) create a cloud dataset.'
618
+ complete -c postman -n '__postman_using_subcommand dataset list get query create delete source view' -a delete -d '[BETA] Permanently remove a dataset: a local .dataset.yaml (+ .resources/) or a cloud dataset id.'
613
619
  complete -c postman -n '__postman_using_subcommand dataset list get query create delete source view' -a source -d '[BETA] Inspect and manage a dataset\'s datasources.'
614
620
  complete -c postman -n '__postman_using_subcommand dataset list get query create delete source view' -a view -d '[BETA] Inspect and manage saved views on a dataset.'
615
621
  complete -c postman -n '__fish_seen_subcommand_from dataset' -s h -l help -d 'display help for command'
616
622
  # ---------- dataset list ----------
623
+ complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from list' -s w -l workspace -d 'Postman workspace ID (cloud list)' -x
624
+ complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from list' -l api-key -d 'Postman API key (defaults to the `postman login` session)' -r
617
625
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from list' -l json -d 'Output as JSON instead of a table'
618
626
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from list' -s h -l help -d 'display help for command'
619
627
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from list' -r -k -a '(__fish_complete_suffix .json)'
620
628
  # ---------- dataset get ----------
621
- complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from get' -l json -d 'Output the full parsed YAML as JSON'
629
+ complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from get' -l api-key -d 'Postman API key (defaults to the `postman login` session)' -r
630
+ complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from get' -l no-populate -d 'Skip fetching datasources/views for a cloud dataset'
631
+ complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from get' -l json -d 'Output the full dataset as JSON'
622
632
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from get' -s h -l help -d 'display help for command'
623
- complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from get' -r -k -a '(__fish_complete_suffix .json)'
624
633
  # ---------- dataset query ----------
625
634
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from query' -s q -l query -d 'SQL query to execute (e.g. "SELECT * FROM source_users LIMIT 10")' -x
626
635
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from query' -s p -l param -d 'Positional parameter values for $1, $2, ... bindings; repeatable' -x
636
+ complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from query' -l api-key -d 'Postman API key (defaults to the `postman login` session)' -r
627
637
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from query' -l json -d 'Output rows as JSON instead of a table'
628
638
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from query' -s h -l help -d 'display help for command'
629
- complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from query' -r -k -a '(__fish_complete_suffix .json)'
630
639
  # ---------- dataset create ----------
631
640
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from create' -s n -l name -d 'Human-readable name for the dataset' -x
632
641
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from create' -s d -l description -d 'Optional description' -x
633
- complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from create' -l id -d 'Override the generated dataset id (defaults to a random v4 UUID)' -x
642
+ complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from create' -l dataset-id -d 'Override the generated dataset id (local only; defaults to a random v4 UUID)' -x
634
643
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from create' -l force -d 'Overwrite an existing file at <path>'
644
+ complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from create' -s w -l workspace -d 'Postman workspace ID (create a cloud dataset)' -x
645
+ complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from create' -l api-key -d 'Postman API key (defaults to the `postman login` session)' -r
635
646
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from create' -s h -l help -d 'display help for command'
636
647
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from create' -r -k -a '(__fish_complete_suffix .json)'
637
648
  # ---------- dataset delete ----------
638
649
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from delete' -s y -l yes -d 'Skip the confirmation prompt'
639
- complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from delete' -l keep-resources -d 'Delete only the YAML file; leave the .resources/ directory intact'
650
+ complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from delete' -l keep-resources -d 'Delete only the YAML file; leave the .resources/ directory intact (local only)'
651
+ complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from delete' -l api-key -d 'Postman API key (defaults to the `postman login` session)' -r
640
652
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from delete' -s h -l help -d 'display help for command'
641
- complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from delete' -r -k -a '(__fish_complete_suffix .json)'
642
653
  # ---------- dataset source ----------
643
- complete -c postman -n '__postman_using_subcommand source list add remove update' -a list -d '[BETA] List the datasources defined on a dataset.'
654
+ complete -c postman -n '__postman_using_subcommand source list add remove update' -a list -d '[BETA] List the datasources defined on a dataset (local YAML path or cloud id).'
644
655
  complete -c postman -n '__postman_using_subcommand source list add remove update' -a add -d '[BETA] Add a datasource to a dataset.'
645
- complete -c postman -n '__postman_using_subcommand source list add remove update' -a remove -d '[BETA] Remove a datasource from a dataset.'
656
+ complete -c postman -n '__postman_using_subcommand source list add remove update' -a remove -d '[BETA] Remove a datasource from a dataset (local YAML path or cloud id).'
646
657
  complete -c postman -n '__postman_using_subcommand source list add remove update' -a update -d '[BETA] Update fields on an existing datasource. Only the flags you provide are changed.'
647
658
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source' -s h -l help -d 'display help for command'
648
659
  # ---------- dataset source list ----------
660
+ complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from list' -s d -l dataset -d 'Dataset whose sources to list — a local .dataset.yaml path or a cloud dataset id' -x
661
+ complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from list' -l api-key -d 'Postman API key (defaults to the `postman login` session)' -r
649
662
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from list' -l json -d 'Output sources as JSON instead of a table'
650
663
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from list' -s h -l help -d 'display help for command'
651
- complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from list' -r -k -a '(__fish_complete_suffix .json)'
652
664
  # ---------- dataset source add ----------
665
+ complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -s d -l dataset -d 'Dataset to add the source to — a local .dataset.yaml path or a cloud dataset id' -x
653
666
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -s n -l name -d 'Logical name for the source (becomes the SQL table name)' -x
654
- complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -l id -d 'Override the generated source id' -x
667
+ complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -l source-id -d 'Override the generated source id' -x
655
668
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -l format -d 'Override the inferred format' -x
656
669
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -l type -d 'Source kind; inferred from --file/--url when omitted' -x
657
670
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -l file -d 'Path to a local CSV/JSON file (absolute or cwd-relative)' -r
658
- complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -l ref-only -d 'Reference the file in place; do NOT copy into data_dir'
659
- complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -l force -d 'When copying, overwrite an existing file at the destination'
671
+ complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -l ref-only -d 'Reference the file in place; do NOT copy into data_dir (local dataset)'
672
+ complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -l force -d 'When copying, overwrite an existing file at the destination (local dataset)'
673
+ complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -l upload -d 'Cloud dataset only: upload --file as a postmancloudfile source (runs via /exec). Without --upload, --file is registered as a local_filesystem csv/json source read by the local engine.'
660
674
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -l url -d 'HTTP(S) URL to a remote CSV/JSON file' -x
661
675
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -l host -d 'DB host (mysql/postgresql)' -x
662
676
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -l port -d 'DB port' -x
663
677
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -l user -d 'DB user (warning: stored as plaintext in the YAML).' -x
664
- complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -l password -d 'DB password (warning: stored as plaintext in the YAML).' -x
678
+ complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -l password -d 'DB password. WARNING: passing it here exposes it in `ps` output and shell history, and it is stored as plaintext in the dataset YAML (local) or sent in the request body (cloud). Prefer a restricted DB user; secure input (prompt / stdin / env) is planned.' -x
665
679
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -l database -d 'DB database name' -x
666
680
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -l table -d 'DB table name (optional)' -x
667
681
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -l slug -d 'Optional slug for the source' -x
682
+ complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -l api-key -d 'Postman API key (defaults to the `postman login` session)' -r
668
683
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -s h -l help -d 'display help for command'
669
- complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from add' -r -k -a '(__fish_complete_suffix .json)'
670
684
  # ---------- dataset source remove ----------
685
+ complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from remove' -s d -l dataset -d 'Dataset the source belongs to — a local .dataset.yaml path or a cloud dataset id' -x
686
+ complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from remove' -l api-key -d 'Postman API key (defaults to the `postman login` session)' -r
671
687
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from remove' -s h -l help -d 'display help for command'
672
688
  # ---------- dataset source update ----------
689
+ complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from update' -s d -l dataset -d 'Dataset the source belongs to — a local .dataset.yaml path or a cloud dataset id' -x
673
690
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from update' -s n -l name -d 'Rename the source' -x
674
691
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from update' -l format -d 'Change the format' -x
675
692
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from update' -l file -d 'Replace the source\'s file (local-filesystem only)' -r
@@ -679,35 +696,44 @@ complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_sub
679
696
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from update' -l host -d 'Update DB host (mysql/postgresql)' -x
680
697
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from update' -l port -d 'Update DB port' -x
681
698
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from update' -l user -d 'Update DB user (warning: stored as plaintext in the YAML).' -x
682
- complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from update' -l password -d 'Update DB password (warning: stored as plaintext in the YAML).' -x
699
+ complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from update' -l password -d 'Update DB password. WARNING: passing it here exposes it in `ps` output and shell history, and it is stored as plaintext in the dataset YAML (local) or sent in the request body (cloud). Prefer a restricted DB user; secure input (prompt / stdin / env) is planned.' -x
683
700
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from update' -l database -d 'Update DB database name' -x
684
701
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from update' -l table -d 'Update DB table name' -x
685
702
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from update' -l slug -d 'Update slug' -x
703
+ complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from update' -l api-key -d 'Postman API key (defaults to the `postman login` session)' -r
686
704
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from source; and __fish_seen_subcommand_from update' -s h -l help -d 'display help for command'
687
705
  # ---------- dataset view ----------
688
- complete -c postman -n '__postman_using_subcommand view list run create delete update' -a list -d '[BETA] List the saved views defined on a dataset.'
706
+ complete -c postman -n '__postman_using_subcommand view list run create delete update' -a list -d '[BETA] List the saved views defined on a dataset (local YAML path or cloud id).'
689
707
  complete -c postman -n '__postman_using_subcommand view list run create delete update' -a run -d '[BETA] Execute a saved view against a dataset and print the rows.'
690
- complete -c postman -n '__postman_using_subcommand view list run create delete update' -a create -d '[BETA] Add a saved view to a dataset.'
691
- complete -c postman -n '__postman_using_subcommand view list run create delete update' -a delete -d '[BETA] Remove a saved view from a dataset.'
692
- complete -c postman -n '__postman_using_subcommand view list run create delete update' -a update -d '[BETA] Update name and/or query on an existing view.'
708
+ complete -c postman -n '__postman_using_subcommand view list run create delete update' -a create -d '[BETA] Add a saved view to a dataset (local YAML path or cloud id).'
709
+ complete -c postman -n '__postman_using_subcommand view list run create delete update' -a delete -d '[BETA] Remove a saved view from a dataset (local YAML path or cloud id).'
710
+ complete -c postman -n '__postman_using_subcommand view list run create delete update' -a update -d '[BETA] Update name and/or query on an existing view (local YAML path or cloud id).'
693
711
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view' -s h -l help -d 'display help for command'
694
712
  # ---------- dataset view list ----------
713
+ complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from list' -s d -l dataset -d 'Dataset whose views to list — a local .dataset.yaml path or a cloud dataset id' -x
714
+ complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from list' -l api-key -d 'Postman API key (defaults to the `postman login` session)' -r
695
715
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from list' -l json -d 'Output views as JSON instead of a table'
696
716
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from list' -s h -l help -d 'display help for command'
697
- complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from list' -r -k -a '(__fish_complete_suffix .json)'
698
717
  # ---------- dataset view run ----------
718
+ complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from run' -s d -l dataset -d 'Dataset the view belongs to — a local .dataset.yaml path or a cloud dataset id' -x
699
719
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from run' -s p -l param -d 'Positional parameter values for $1, $2, ... bindings; repeatable' -x
720
+ complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from run' -l api-key -d 'Postman API key (defaults to the `postman login` session)' -r
700
721
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from run' -l json -d 'Output rows as JSON instead of a table'
701
722
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from run' -s h -l help -d 'display help for command'
702
723
  # ---------- dataset view create ----------
724
+ complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from create' -s d -l dataset -d 'Dataset to add the view to — a local .dataset.yaml path or a cloud dataset id' -x
703
725
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from create' -s n -l name -d 'View name' -x
704
726
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from create' -s q -l query -d 'SQL query the view executes' -x
705
- complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from create' -l id -d 'Override the generated view id' -x
727
+ complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from create' -l view-id -d 'Override the generated view id (local only; cloud assigns its own)' -x
728
+ complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from create' -l api-key -d 'Postman API key (defaults to the `postman login` session)' -r
706
729
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from create' -s h -l help -d 'display help for command'
707
- complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from create' -r -k -a '(__fish_complete_suffix .json)'
708
730
  # ---------- dataset view delete ----------
731
+ complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from delete' -s d -l dataset -d 'Dataset the view belongs to — a local .dataset.yaml path or a cloud dataset id' -x
732
+ complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from delete' -l api-key -d 'Postman API key (defaults to the `postman login` session)' -r
709
733
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from delete' -s h -l help -d 'display help for command'
710
734
  # ---------- dataset view update ----------
735
+ complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from update' -s d -l dataset -d 'Dataset the view belongs to — a local .dataset.yaml path or a cloud dataset id' -x
711
736
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from update' -s n -l name -d 'New view name' -x
712
737
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from update' -s q -l query -d 'New SQL query' -x
738
+ complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from update' -l api-key -d 'Postman API key (defaults to the `postman login` session)' -r
713
739
  complete -c postman -n '__fish_seen_subcommand_from dataset; and __fish_seen_subcommand_from view; and __fish_seen_subcommand_from update' -s h -l help -d 'display help for command'
@@ -1,6 +1,6 @@
1
1
  #compdef postman
2
2
  compdef _postman postman
3
- # Zsh completion for Postman CLI (postman v1.43.0)
3
+ # Zsh completion for Postman CLI (postman v1.45.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
@@ -27,7 +27,7 @@ _postman() {
27
27
  runner) _postman_runner ;;
28
28
  spec) _postman_spec ;;
29
29
  monitor) _postman_monitor ;;
30
- workspace) _postman_workspace ;;
30
+ workspace|ws) _postman_workspace ;;
31
31
  performance) _postman_performance ;;
32
32
  flows|fl) _postman_flows ;;
33
33
  request) _postman_request ;;
@@ -55,6 +55,7 @@ _postman_commands() {
55
55
  'spec:Lint and validate Specifications from the command line'
56
56
  'monitor:Invoke a monitor run and display results'
57
57
  'workspace:Manage workspace resources.'
58
+ 'ws:Alias for workspace'
58
59
  'performance:Manage performance tests on your collections.'
59
60
  'flows:Manage and interact with flows.'
60
61
  'fl:Alias for flows'
@@ -149,9 +150,9 @@ _postman_collection_run() {
149
150
  '--reporter-json-structure[\[Optional\] Generate JSON report using the Newman schema. By default, JSON reports use the native structure of Postman CLI.]' \
150
151
  '(-n --iteration-count)'{-n,--iteration-count}'[Define the number of iterations to run]:n' \
151
152
  '(-d --iteration-data)'{-d,--iteration-data}'[Specify a data file to use for iterations (either JSON or CSV)]:path:_files -g "*.(json|csv)"' \
152
- '--iteration-data-dataset[\[BETA\] Path to a .dataset.yaml whose view drives the iteration data. Mutually exclusive with --iteration-data. Requires --iteration-data-view.]:path:_files -g "*.(json|csv)"' \
153
+ '--iteration-data-dataset[\[BETA\] Path to a .dataset.yaml (local collection) or a cloud dataset id (cloud collection) whose view drives the iteration data. Mutually exclusive with --iteration-data. Requires --iteration-data-view.]:pathOrId:_files -g "*.(json|csv)"' \
153
154
  '--iteration-data-view[\[BETA\] Name or id of the view to execute (within --iteration-data-dataset). The view'\''s result set drives one iteration per row.]:nameOrId' \
154
- '--dataset[\[BETA\] Pass --dataset multiple times to load several .dataset.yaml files (or directories containing them). Each is made available to scripts as pm.datasets(<id>). When provided, auto-discovery of .dataset.yaml files from the collection'\''s parent repo is disabled. (default\: \[\])]:pathOrDir:_files -g "*.json"' \
155
+ '--dataset[\[BETA\] Pass --dataset multiple times to load several .dataset.yaml files (or directories containing them). Each is made available to scripts as pm.datasets(<id>). When provided, auto-discovery of .dataset.yaml files from the collection'\''s parent repo is disabled. For a cloud collection, scripts address cloud datasets by id via pm.datasets(<id>) (resolved from your `postman login` session). SECURITY\: for a cloud collection this does NOT scope access — a script can pm.datasets(<anyId>) for any dataset your session can read. Only run collections you trust against a logged-in cloud session. (default\: \[\])]:pathOrDir:_files -g "*.json"' \
155
156
  '-i[Specify the request/folder id, name, or path to run from the collection. Use a path (e.g. "FolderName/RequestName") to disambiguate items with the same name. Can be specified multiple times to run multiple items (default\: \[\])]:id' \
156
157
  '--global-var[Allows the specification of global variables via the command line, in a key=value format]:value' \
157
158
  '--env-var[Allows the specification of environment variables via the command line, in a key=value format (default\: \[\])]:value' \
@@ -368,6 +369,7 @@ _postman_workspace() {
368
369
  case $state in
369
370
  args)
370
371
  case $words[1] in
372
+ list) _postman_workspace_list ;;
371
373
  prepare) _postman_workspace_prepare ;;
372
374
  push) _postman_workspace_push ;;
373
375
  esac
@@ -378,26 +380,34 @@ _postman_workspace() {
378
380
  _postman_workspace_commands() {
379
381
  local -a sub
380
382
  sub=(
383
+ 'list:List all available Postman Workspaces'
381
384
  'prepare:Prepare local collections and environments for push by validating and regenerating IDs if needed.'
382
- 'push:Push local collection, environment, specification, mock, and simulation changes to Postman workspace.'
385
+ 'push:Push local workspace entities (collections, environments, specifications, and more) to Postman workspace.'
383
386
  )
384
387
  _describe -t commands 'workspace command' sub
385
388
  }
386
389
 
390
+ _postman_workspace_list() {
391
+ _arguments \
392
+ '(-f --filter)'{-f,--filter}'[Filter workspaces by name.]:name' \
393
+ '(-t --type)'{-t,--type}'[Filter workspaces by visibility type\: team, public, private, personal.]:type' \
394
+ '--verbose[Verbose output]' \
395
+ '--debug[Debug output]' \
396
+ '--json[JSON output]' \
397
+ '(-h --help)'{-h,--help}'[display help for command]'
398
+ }
399
+
387
400
  _postman_workspace_prepare() {
388
401
  _arguments \
389
- '--collections-dir[Path to the collections directory (default\: "postman/collections")]:path:_files -/' \
390
- '--environments-dir[Path to the environments directory (default\: "postman/environments")]:path:_files -/' \
391
402
  '--verbose[Show detailed logging]' \
392
403
  '(-h --help)'{-h,--help}'[display help for command]'
393
404
  }
394
405
 
395
406
  _postman_workspace_push() {
396
407
  _arguments \
397
- '--collections-dir[Path to the collections directory (default\: "postman/collections")]:path:_files -/' \
398
- '--environments-dir[Path to the environments directory (default\: "postman/environments")]:path:_files -/' \
399
408
  '--no-prepare[Skip ID validation and auto-fix before pushing]' \
400
409
  '(-y --yes)'{-y,--yes}'[Skip all confirmation prompts]' \
410
+ '--push-strategy[Push strategy. "force-sync"\: mirror the whole workspace — also DELETE cloud entities that have no local counterpart (destructive). Defaults to "default" (create/update only).]:strategy' \
401
411
  '--verbose[Show detailed logging]' \
402
412
  '--report-events[Send workspace push events to Postman]' \
403
413
  '(-h --help)'{-h,--help}'[display help for command]'
@@ -647,7 +657,7 @@ _postman_sdk_commands() {
647
657
  local -a sub
648
658
  sub=(
649
659
  'init:Create or update .postman/config.json with an SDK configuration stub.'
650
- 'generate:Generate a new SDK from a Postman collection or specification.'
660
+ 'generate:Generate a new SDK from a Postman collection or specification (OpenAPI or AsyncAPI).'
651
661
  'build:Alias for generate'
652
662
  'track:Enable change tracking for a generated SDK. Adds file hashes to .manifest.json so that the next `sdk generate` can detect your edits and preserve them via 3-way merge.'
653
663
  'list:List SDK builds for a collection, extensible collection, or specification.'
@@ -1377,11 +1387,11 @@ _postman_dataset() {
1377
1387
  _postman_dataset_commands() {
1378
1388
  local -a sub
1379
1389
  sub=(
1380
- 'list:\[BETA\] List dataset YAMLs under the given directory, or print summary for a single YAML file.'
1381
- 'get:\[BETA\] Print a dataset'\''s metadata and structure summary.'
1382
- 'query:\[BETA\] Run an ad-hoc SQL query against a dataset.'
1383
- 'create:\[BETA\] Scaffold a new empty .dataset.yaml file at <path>.'
1384
- 'delete:\[BETA\] Permanently remove a dataset'\''s .dataset.yaml file and its .resources/ directory.'
1390
+ 'list:\[BETA\] List local dataset YAMLs under a path, or (no path) a workspace'\''s cloud datasets.'
1391
+ 'get:\[BETA\] Print a dataset'\''s metadata and structure summary (local YAML path or cloud id).'
1392
+ 'query:\[BETA\] Run an ad-hoc SQL query against a dataset (local YAML path or cloud id).'
1393
+ 'create:\[BETA\] Scaffold a new .dataset.yaml at <path>, or (no path, with -w) create a cloud dataset.'
1394
+ 'delete:\[BETA\] Permanently remove a dataset\: a local .dataset.yaml (+ .resources/) or a cloud dataset id.'
1385
1395
  'source:\[BETA\] Inspect and manage a dataset'\''s datasources.'
1386
1396
  'view:\[BETA\] Inspect and manage saved views on a dataset.'
1387
1397
  )
@@ -1390,6 +1400,8 @@ _postman_dataset_commands() {
1390
1400
 
1391
1401
  _postman_dataset_list() {
1392
1402
  _arguments \
1403
+ '(-w --workspace)'{-w,--workspace}'[Postman workspace ID (cloud list)]:id' \
1404
+ '--api-key[Postman API key (defaults to the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
1393
1405
  '--json[Output as JSON instead of a table]' \
1394
1406
  '(-h --help)'{-h,--help}'[display help for command]' \
1395
1407
  '*:pathOrDir:_files -g "*.json"'
@@ -1397,26 +1409,31 @@ _postman_dataset_list() {
1397
1409
 
1398
1410
  _postman_dataset_get() {
1399
1411
  _arguments \
1400
- '--json[Output the full parsed YAML as JSON]' \
1412
+ '--api-key[Postman API key (defaults to the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
1413
+ '--no-populate[Skip fetching datasources/views for a cloud dataset]' \
1414
+ '--json[Output the full dataset as JSON]' \
1401
1415
  '(-h --help)'{-h,--help}'[display help for command]' \
1402
- '*:path:_files -g "*.json"'
1416
+ '*:datasetPathOrId:'
1403
1417
  }
1404
1418
 
1405
1419
  _postman_dataset_query() {
1406
1420
  _arguments \
1407
1421
  '(-q --query)'{-q,--query}'[SQL query to execute (e.g. "SELECT * FROM source_users LIMIT 10")]:sql' \
1408
1422
  '(-p --param)'{-p,--param}'[Positional parameter values for $1, $2, ... bindings; repeatable]:value...' \
1423
+ '--api-key[Postman API key (defaults to the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
1409
1424
  '--json[Output rows as JSON instead of a table]' \
1410
1425
  '(-h --help)'{-h,--help}'[display help for command]' \
1411
- '*:path:_files -g "*.json"'
1426
+ '*:datasetPathOrId:'
1412
1427
  }
1413
1428
 
1414
1429
  _postman_dataset_create() {
1415
1430
  _arguments \
1416
1431
  '(-n --name)'{-n,--name}'[Human-readable name for the dataset]:name' \
1417
1432
  '(-d --description)'{-d,--description}'[Optional description]:desc' \
1418
- '--id[Override the generated dataset id (defaults to a random v4 UUID)]:uuid' \
1433
+ '--dataset-id[Override the generated dataset id (local only; defaults to a random v4 UUID)]:uuid' \
1419
1434
  '--force[Overwrite an existing file at <path>]' \
1435
+ '(-w --workspace)'{-w,--workspace}'[Postman workspace ID (create a cloud dataset)]:id' \
1436
+ '--api-key[Postman API key (defaults to the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
1420
1437
  '(-h --help)'{-h,--help}'[display help for command]' \
1421
1438
  '*:path:_files -g "*.json"'
1422
1439
  }
@@ -1424,9 +1441,10 @@ _postman_dataset_create() {
1424
1441
  _postman_dataset_delete() {
1425
1442
  _arguments \
1426
1443
  '(-y --yes)'{-y,--yes}'[Skip the confirmation prompt]' \
1427
- '--keep-resources[Delete only the YAML file; leave the .resources/ directory intact]' \
1444
+ '--keep-resources[Delete only the YAML file; leave the .resources/ directory intact (local only)]' \
1445
+ '--api-key[Postman API key (defaults to the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
1428
1446
  '(-h --help)'{-h,--help}'[display help for command]' \
1429
- '*:path:_files -g "*.json"'
1447
+ '*:datasetPathOrId:'
1430
1448
  }
1431
1449
 
1432
1450
  _postman_dataset_source() {
@@ -1451,9 +1469,9 @@ _postman_dataset_source() {
1451
1469
  _postman_dataset_source_commands() {
1452
1470
  local -a sub
1453
1471
  sub=(
1454
- 'list:\[BETA\] List the datasources defined on a dataset.'
1472
+ 'list:\[BETA\] List the datasources defined on a dataset (local YAML path or cloud id).'
1455
1473
  'add:\[BETA\] Add a datasource to a dataset.'
1456
- 'remove:\[BETA\] Remove a datasource from a dataset.'
1474
+ 'remove:\[BETA\] Remove a datasource from a dataset (local YAML path or cloud id).'
1457
1475
  'update:\[BETA\] Update fields on an existing datasource. Only the flags you provide are changed.'
1458
1476
  )
1459
1477
  _describe -t commands 'source command' sub
@@ -1461,40 +1479,46 @@ _postman_dataset_source_commands() {
1461
1479
 
1462
1480
  _postman_dataset_source_list() {
1463
1481
  _arguments \
1482
+ '(-d --dataset)'{-d,--dataset}'[Dataset whose sources to list — a local .dataset.yaml path or a cloud dataset id]:datasetPathOrId' \
1483
+ '--api-key[Postman API key (defaults to the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
1464
1484
  '--json[Output sources as JSON instead of a table]' \
1465
- '(-h --help)'{-h,--help}'[display help for command]' \
1466
- '*:path:_files -g "*.json"'
1485
+ '(-h --help)'{-h,--help}'[display help for command]'
1467
1486
  }
1468
1487
 
1469
1488
  _postman_dataset_source_add() {
1470
1489
  _arguments \
1490
+ '(-d --dataset)'{-d,--dataset}'[Dataset to add the source to — a local .dataset.yaml path or a cloud dataset id]:datasetPathOrId' \
1471
1491
  '(-n --name)'{-n,--name}'[Logical name for the source (becomes the SQL table name)]:name' \
1472
- '--id[Override the generated source id]:uuid' \
1492
+ '--source-id[Override the generated source id]:uuid' \
1473
1493
  '--format[Override the inferred format]:csv|json|mysql|postgres' \
1474
1494
  '--type[Source kind; inferred from --file/--url when omitted]:local|remote-url|mysql|postgresql' \
1475
1495
  '--file[Path to a local CSV/JSON file (absolute or cwd-relative)]:path:_files -g "*.json"' \
1476
- '--ref-only[Reference the file in place; do NOT copy into data_dir]' \
1477
- '--force[When copying, overwrite an existing file at the destination]' \
1496
+ '--ref-only[Reference the file in place; do NOT copy into data_dir (local dataset)]' \
1497
+ '--force[When copying, overwrite an existing file at the destination (local dataset)]' \
1498
+ '--upload[Cloud dataset only\: upload --file as a postmancloudfile source (runs via /exec). Without --upload, --file is registered as a local_filesystem csv/json source read by the local engine.]' \
1478
1499
  '--url[HTTP(S) URL to a remote CSV/JSON file]:url' \
1479
1500
  '--host[DB host (mysql/postgresql)]:host' \
1480
1501
  '--port[DB port]:port' \
1481
1502
  '--user[DB user (warning\: stored as plaintext in the YAML).]:user' \
1482
- '--password[DB password (warning\: stored as plaintext in the YAML).]:password' \
1503
+ '--password[DB password. WARNING\: passing it here exposes it in `ps` output and shell history, and it is stored as plaintext in the dataset YAML (local) or sent in the request body (cloud). Prefer a restricted DB user; secure input (prompt / stdin / env) is planned.]:password' \
1483
1504
  '--database[DB database name]:db' \
1484
1505
  '--table[DB table name (optional)]:table' \
1485
1506
  '--slug[Optional slug for the source]:slug' \
1486
- '(-h --help)'{-h,--help}'[display help for command]' \
1487
- '*:pathOrId:_files -g "*.json"'
1507
+ '--api-key[Postman API key (defaults to the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
1508
+ '(-h --help)'{-h,--help}'[display help for command]'
1488
1509
  }
1489
1510
 
1490
1511
  _postman_dataset_source_remove() {
1491
1512
  _arguments \
1513
+ '(-d --dataset)'{-d,--dataset}'[Dataset the source belongs to — a local .dataset.yaml path or a cloud dataset id]:datasetPathOrId' \
1514
+ '--api-key[Postman API key (defaults to the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
1492
1515
  '(-h --help)'{-h,--help}'[display help for command]' \
1493
1516
  '*:sourceNameOrId:'
1494
1517
  }
1495
1518
 
1496
1519
  _postman_dataset_source_update() {
1497
1520
  _arguments \
1521
+ '(-d --dataset)'{-d,--dataset}'[Dataset the source belongs to — a local .dataset.yaml path or a cloud dataset id]:datasetPathOrId' \
1498
1522
  '(-n --name)'{-n,--name}'[Rename the source]:name' \
1499
1523
  '--format[Change the format]:csv|json|mysql|postgres' \
1500
1524
  '--file[Replace the source'\''s file (local-filesystem only)]:path:_files -g "*.json"' \
@@ -1504,10 +1528,11 @@ _postman_dataset_source_update() {
1504
1528
  '--host[Update DB host (mysql/postgresql)]:host' \
1505
1529
  '--port[Update DB port]:port' \
1506
1530
  '--user[Update DB user (warning\: stored as plaintext in the YAML).]:user' \
1507
- '--password[Update DB password (warning\: stored as plaintext in the YAML).]:password' \
1531
+ '--password[Update DB password. WARNING\: passing it here exposes it in `ps` output and shell history, and it is stored as plaintext in the dataset YAML (local) or sent in the request body (cloud). Prefer a restricted DB user; secure input (prompt / stdin / env) is planned.]:password' \
1508
1532
  '--database[Update DB database name]:db' \
1509
1533
  '--table[Update DB table name]:table' \
1510
1534
  '--slug[Update slug]:slug' \
1535
+ '--api-key[Postman API key (defaults to the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
1511
1536
  '(-h --help)'{-h,--help}'[display help for command]' \
1512
1537
  '*:sourceNameOrId:'
1513
1538
  }
@@ -1535,25 +1560,28 @@ _postman_dataset_view() {
1535
1560
  _postman_dataset_view_commands() {
1536
1561
  local -a sub
1537
1562
  sub=(
1538
- 'list:\[BETA\] List the saved views defined on a dataset.'
1563
+ 'list:\[BETA\] List the saved views defined on a dataset (local YAML path or cloud id).'
1539
1564
  'run:\[BETA\] Execute a saved view against a dataset and print the rows.'
1540
- 'create:\[BETA\] Add a saved view to a dataset.'
1541
- 'delete:\[BETA\] Remove a saved view from a dataset.'
1542
- 'update:\[BETA\] Update name and/or query on an existing view.'
1565
+ 'create:\[BETA\] Add a saved view to a dataset (local YAML path or cloud id).'
1566
+ 'delete:\[BETA\] Remove a saved view from a dataset (local YAML path or cloud id).'
1567
+ 'update:\[BETA\] Update name and/or query on an existing view (local YAML path or cloud id).'
1543
1568
  )
1544
1569
  _describe -t commands 'view command' sub
1545
1570
  }
1546
1571
 
1547
1572
  _postman_dataset_view_list() {
1548
1573
  _arguments \
1574
+ '(-d --dataset)'{-d,--dataset}'[Dataset whose views to list — a local .dataset.yaml path or a cloud dataset id]:datasetPathOrId' \
1575
+ '--api-key[Postman API key (defaults to the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
1549
1576
  '--json[Output views as JSON instead of a table]' \
1550
- '(-h --help)'{-h,--help}'[display help for command]' \
1551
- '*:path:_files -g "*.json"'
1577
+ '(-h --help)'{-h,--help}'[display help for command]'
1552
1578
  }
1553
1579
 
1554
1580
  _postman_dataset_view_run() {
1555
1581
  _arguments \
1582
+ '(-d --dataset)'{-d,--dataset}'[Dataset the view belongs to — a local .dataset.yaml path or a cloud dataset id]:datasetPathOrId' \
1556
1583
  '(-p --param)'{-p,--param}'[Positional parameter values for $1, $2, ... bindings; repeatable]:value...' \
1584
+ '--api-key[Postman API key (defaults to the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
1557
1585
  '--json[Output rows as JSON instead of a table]' \
1558
1586
  '(-h --help)'{-h,--help}'[display help for command]' \
1559
1587
  '*:viewNameOrId:'
@@ -1561,23 +1589,28 @@ _postman_dataset_view_run() {
1561
1589
 
1562
1590
  _postman_dataset_view_create() {
1563
1591
  _arguments \
1592
+ '(-d --dataset)'{-d,--dataset}'[Dataset to add the view to — a local .dataset.yaml path or a cloud dataset id]:datasetPathOrId' \
1564
1593
  '(-n --name)'{-n,--name}'[View name]:name' \
1565
1594
  '(-q --query)'{-q,--query}'[SQL query the view executes]:sql' \
1566
- '--id[Override the generated view id]:uuid' \
1567
- '(-h --help)'{-h,--help}'[display help for command]' \
1568
- '*:path:_files -g "*.json"'
1595
+ '--view-id[Override the generated view id (local only; cloud assigns its own)]:uuid' \
1596
+ '--api-key[Postman API key (defaults to the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
1597
+ '(-h --help)'{-h,--help}'[display help for command]'
1569
1598
  }
1570
1599
 
1571
1600
  _postman_dataset_view_delete() {
1572
1601
  _arguments \
1602
+ '(-d --dataset)'{-d,--dataset}'[Dataset the view belongs to — a local .dataset.yaml path or a cloud dataset id]:datasetPathOrId' \
1603
+ '--api-key[Postman API key (defaults to the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
1573
1604
  '(-h --help)'{-h,--help}'[display help for command]' \
1574
1605
  '*:viewNameOrId:'
1575
1606
  }
1576
1607
 
1577
1608
  _postman_dataset_view_update() {
1578
1609
  _arguments \
1610
+ '(-d --dataset)'{-d,--dataset}'[Dataset the view belongs to — a local .dataset.yaml path or a cloud dataset id]:datasetPathOrId' \
1579
1611
  '(-n --name)'{-n,--name}'[New view name]:name' \
1580
1612
  '(-q --query)'{-q,--query}'[New SQL query]:sql' \
1613
+ '--api-key[Postman API key (defaults to the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
1581
1614
  '(-h --help)'{-h,--help}'[display help for command]' \
1582
1615
  '*:viewNameOrId:'
1583
1616
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "postman-cli-completion",
3
- "version": "1.43.0",
3
+ "version": "1.45.0",
4
4
  "description": "Shell completions for the Postman CLI (zsh, bash, fish)",
5
5
  "type": "module",
6
6
  "bin": {