postman-cli-completion 1.63.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.
- package/completions/bash/postman.bash +134 -10
- package/completions/fish/postman.fish +86 -29
- package/completions/zsh/_postman +147 -4
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Bash completion for Postman CLI (postman v1.
|
|
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 folder 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,6 +189,8 @@ _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 ;;
|
|
193
195
|
folder) _postman_collection_folder ;;
|
|
194
196
|
list) _postman_collection_list ;;
|
|
@@ -230,10 +232,13 @@ _postman_collection_lint() {
|
|
|
230
232
|
|
|
231
233
|
_postman_collection_ai_readiness() {
|
|
232
234
|
if [[ "$cur" == -* ]]; then
|
|
233
|
-
COMPREPLY=( $(compgen -W "-o --output --min-score -h --help" -- "$cur") )
|
|
235
|
+
COMPREPLY=( $(compgen -W "-o --output --export --min-score -h --help" -- "$cur") )
|
|
234
236
|
return 0
|
|
235
237
|
fi
|
|
236
238
|
case "$prev" in
|
|
239
|
+
--export)
|
|
240
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
241
|
+
return 0 ;;
|
|
237
242
|
esac
|
|
238
243
|
_postman_filematch '!*.@(json)' "$cur"
|
|
239
244
|
}
|
|
@@ -250,6 +255,60 @@ _postman_collection_get() {
|
|
|
250
255
|
esac
|
|
251
256
|
}
|
|
252
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
|
+
|
|
253
312
|
_postman_collection_request() {
|
|
254
313
|
if [[ -z "$subcmd" ]]; then
|
|
255
314
|
if [[ "$cur" == -* ]]; then
|
|
@@ -353,7 +412,7 @@ _postman_collection_list() {
|
|
|
353
412
|
|
|
354
413
|
_postman_collection_run() {
|
|
355
414
|
if [[ "$cur" == -* ]]; then
|
|
356
|
-
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") )
|
|
357
416
|
return 0
|
|
358
417
|
fi
|
|
359
418
|
case "$prev" in
|
|
@@ -649,7 +708,7 @@ _postman_spec() {
|
|
|
649
708
|
if [[ "$cur" == -* ]]; then
|
|
650
709
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
651
710
|
else
|
|
652
|
-
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") )
|
|
653
712
|
fi
|
|
654
713
|
return 0
|
|
655
714
|
fi
|
|
@@ -661,6 +720,7 @@ _postman_spec() {
|
|
|
661
720
|
file) _postman_spec_file ;;
|
|
662
721
|
create) _postman_spec_create ;;
|
|
663
722
|
generate) _postman_spec_generate ;;
|
|
723
|
+
sync) _postman_spec_sync ;;
|
|
664
724
|
esac
|
|
665
725
|
}
|
|
666
726
|
|
|
@@ -675,10 +735,13 @@ _postman_spec_lint() {
|
|
|
675
735
|
|
|
676
736
|
_postman_spec_ai_readiness() {
|
|
677
737
|
if [[ "$cur" == -* ]]; then
|
|
678
|
-
COMPREPLY=( $(compgen -W "-o --output --min-score -h --help" -- "$cur") )
|
|
738
|
+
COMPREPLY=( $(compgen -W "-o --output --export --min-score -h --help" -- "$cur") )
|
|
679
739
|
return 0
|
|
680
740
|
fi
|
|
681
741
|
case "$prev" in
|
|
742
|
+
--export)
|
|
743
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
744
|
+
return 0 ;;
|
|
682
745
|
esac
|
|
683
746
|
}
|
|
684
747
|
|
|
@@ -801,6 +864,32 @@ _postman_spec_generate_collection() {
|
|
|
801
864
|
esac
|
|
802
865
|
}
|
|
803
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
|
+
|
|
804
893
|
_postman_monitor() {
|
|
805
894
|
if [[ -z "$subcmd" ]]; then
|
|
806
895
|
if [[ "$cur" == -* ]]; then
|
|
@@ -1003,7 +1092,7 @@ _postman_workspace() {
|
|
|
1003
1092
|
if [[ "$cur" == -* ]]; then
|
|
1004
1093
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
1005
1094
|
else
|
|
1006
|
-
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") )
|
|
1007
1096
|
fi
|
|
1008
1097
|
return 0
|
|
1009
1098
|
fi
|
|
@@ -1014,8 +1103,10 @@ _postman_workspace() {
|
|
|
1014
1103
|
lint) _postman_workspace_lint ;;
|
|
1015
1104
|
get) _postman_workspace_get ;;
|
|
1016
1105
|
create) _postman_workspace_create ;;
|
|
1106
|
+
delete) _postman_workspace_delete ;;
|
|
1017
1107
|
pull) _postman_workspace_pull ;;
|
|
1018
1108
|
connect-git) _postman_workspace_connect_git ;;
|
|
1109
|
+
disconnect-git) _postman_workspace_disconnect_git ;;
|
|
1019
1110
|
diff) _postman_workspace_diff ;;
|
|
1020
1111
|
esac
|
|
1021
1112
|
}
|
|
@@ -1075,6 +1166,15 @@ _postman_workspace_create() {
|
|
|
1075
1166
|
esac
|
|
1076
1167
|
}
|
|
1077
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
|
+
|
|
1078
1178
|
_postman_workspace_pull() {
|
|
1079
1179
|
if [[ "$cur" == -* ]]; then
|
|
1080
1180
|
COMPREPLY=( $(compgen -W "-y --yes --source-workspace --verbose -h --help" -- "$cur") )
|
|
@@ -1092,6 +1192,13 @@ _postman_workspace_connect_git() {
|
|
|
1092
1192
|
_postman_filematch '!*.@(json)' "$cur"
|
|
1093
1193
|
}
|
|
1094
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
|
+
|
|
1095
1202
|
_postman_workspace_diff() {
|
|
1096
1203
|
if [[ "$cur" == -* ]]; then
|
|
1097
1204
|
COMPREPLY=( $(compgen -W "--push-strategy --summary --json --exit-code --verbose --timeout -h --help" -- "$cur") )
|
|
@@ -1141,13 +1248,25 @@ _postman_performance() {
|
|
|
1141
1248
|
|
|
1142
1249
|
_postman_performance_run() {
|
|
1143
1250
|
if [[ "$cur" == -* ]]; then
|
|
1144
|
-
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") )
|
|
1145
1252
|
return 0
|
|
1146
1253
|
fi
|
|
1147
1254
|
case "$prev" in
|
|
1148
1255
|
--data-file)
|
|
1149
1256
|
_postman_filematch '!*.@(json)' "$cur"
|
|
1150
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 ;;
|
|
1151
1270
|
esac
|
|
1152
1271
|
_postman_filematch '!*.@(json)' "$cur"
|
|
1153
1272
|
}
|
|
@@ -1447,7 +1566,7 @@ _postman_mock_generate() {
|
|
|
1447
1566
|
|
|
1448
1567
|
_postman_mock_run() {
|
|
1449
1568
|
if [[ "$cur" == -* ]]; then
|
|
1450
|
-
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") )
|
|
1451
1570
|
return 0
|
|
1452
1571
|
fi
|
|
1453
1572
|
case "$prev" in
|
|
@@ -1616,9 +1735,14 @@ _postman_simulate() {
|
|
|
1616
1735
|
|
|
1617
1736
|
_postman_simulate_run() {
|
|
1618
1737
|
if [[ "$cur" == -* ]]; then
|
|
1619
|
-
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
1738
|
+
COMPREPLY=( $(compgen -W "-w --workspace --simulation --api-key --no-history -h --help" -- "$cur") )
|
|
1620
1739
|
return 0
|
|
1621
1740
|
fi
|
|
1741
|
+
case "$prev" in
|
|
1742
|
+
--api-key)
|
|
1743
|
+
_postman_filematch '!*.@(pem|crt|key)' "$cur"
|
|
1744
|
+
return 0 ;;
|
|
1745
|
+
esac
|
|
1622
1746
|
_postman_filematch '!*.@(json)' "$cur"
|
|
1623
1747
|
}
|
|
1624
1748
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Fish completion for Postman CLI (postman v1.
|
|
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
|
|
@@ -113,15 +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 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 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 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 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 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 request folder list run' -a
|
|
122
|
-
complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get request folder list run' -a
|
|
123
|
-
complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get request folder list run' -a
|
|
124
|
-
complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get request folder list run' -a
|
|
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.'
|
|
125
127
|
complete -c postman -n '__fish_seen_subcommand_from collection' -s h -l help -d 'display help for command'
|
|
126
128
|
# ---------- collection new ----------
|
|
127
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
|
|
@@ -140,6 +142,7 @@ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_
|
|
|
140
142
|
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from lint' -r -k -a '(__fish_complete_suffix .json)'
|
|
141
143
|
# ---------- collection ai-readiness ----------
|
|
142
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
|
|
143
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
|
|
144
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'
|
|
145
148
|
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from ai-readiness' -r -k -a '(__fish_complete_suffix .json)'
|
|
@@ -147,6 +150,24 @@ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_
|
|
|
147
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
|
|
148
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'
|
|
149
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)'
|
|
150
171
|
# ---------- collection request ----------
|
|
151
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`).'
|
|
152
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).'
|
|
@@ -261,6 +282,9 @@ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_
|
|
|
261
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
|
|
262
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
|
|
263
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.'
|
|
264
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'
|
|
265
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'
|
|
266
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'
|
|
@@ -388,13 +412,14 @@ complete -c postman -n '__fish_seen_subcommand_from runner; and __fish_seen_subc
|
|
|
388
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'
|
|
389
413
|
|
|
390
414
|
# ---------- spec ----------
|
|
391
|
-
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.'
|
|
392
|
-
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.'
|
|
393
|
-
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.'
|
|
394
|
-
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.'
|
|
395
|
-
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).'
|
|
396
|
-
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.'
|
|
397
|
-
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.'
|
|
398
423
|
complete -c postman -n '__fish_seen_subcommand_from spec' -s h -l help -d 'display help for command'
|
|
399
424
|
# ---------- spec lint ----------
|
|
400
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
|
|
@@ -405,6 +430,7 @@ complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcom
|
|
|
405
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'
|
|
406
431
|
# ---------- spec ai-readiness ----------
|
|
407
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
|
|
408
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
|
|
409
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'
|
|
410
436
|
# ---------- spec list ----------
|
|
@@ -456,6 +482,13 @@ complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcom
|
|
|
456
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
|
|
457
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
|
|
458
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'
|
|
459
492
|
|
|
460
493
|
# ---------- monitor ----------
|
|
461
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.'
|
|
@@ -596,15 +629,17 @@ complete -c postman -n '__fish_seen_subcommand_from monitor; and __fish_seen_sub
|
|
|
596
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'
|
|
597
630
|
|
|
598
631
|
# ---------- workspace ----------
|
|
599
|
-
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'
|
|
600
|
-
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.'
|
|
601
|
-
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.'
|
|
602
|
-
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.'
|
|
603
|
-
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.'
|
|
604
|
-
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.'
|
|
605
|
-
complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get create pull connect-git diff' -a
|
|
606
|
-
complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get create pull connect-git diff' -a
|
|
607
|
-
complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get create pull connect-git diff' -a
|
|
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.'
|
|
608
643
|
complete -c postman -n '__fish_seen_subcommand_from workspace' -s h -l help -d 'display help for command'
|
|
609
644
|
# ---------- workspace list ----------
|
|
610
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
|
|
@@ -646,6 +681,12 @@ complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_s
|
|
|
646
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'
|
|
647
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'
|
|
648
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'
|
|
649
690
|
# ---------- workspace pull ----------
|
|
650
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'
|
|
651
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
|
|
@@ -655,11 +696,15 @@ complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_s
|
|
|
655
696
|
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from connect-git' -l verbose -d 'Show detailed logging'
|
|
656
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'
|
|
657
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'
|
|
658
703
|
# ---------- workspace diff ----------
|
|
659
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
|
|
660
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.'
|
|
661
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.'
|
|
662
|
-
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from diff' -l exit-code -d 'Exit with code 1 when
|
|
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.'
|
|
663
708
|
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from diff' -l verbose -d 'Show detailed logging'
|
|
664
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
|
|
665
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'
|
|
@@ -680,12 +725,18 @@ complete -c postman -n '__fish_seen_subcommand_from performance' -s h -l help -d
|
|
|
680
725
|
# ---------- performance run ----------
|
|
681
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
|
|
682
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
|
|
683
|
-
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
|
|
684
|
-
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
|
|
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
|
|
685
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
|
|
686
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
|
|
687
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
|
|
688
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
|
|
689
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
|
|
690
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
|
|
691
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
|
|
@@ -937,6 +988,8 @@ complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcom
|
|
|
937
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
|
|
938
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
|
|
939
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.'
|
|
940
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'
|
|
941
994
|
complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from run' -r -k -a '(__fish_complete_suffix .json)'
|
|
942
995
|
# ---------- mock push ----------
|
|
@@ -1017,6 +1070,10 @@ complete -c postman -n '__fish_seen_subcommand_from application; and __fish_seen
|
|
|
1017
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'
|
|
1018
1071
|
complete -c postman -n '__fish_seen_subcommand_from simulate' -s h -l help -d 'display help for command'
|
|
1019
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.'
|
|
1020
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'
|
|
1021
1078
|
complete -c postman -n '__fish_seen_subcommand_from simulate; and __fish_seen_subcommand_from run' -r -k -a '(__fish_complete_suffix .json)'
|
|
1022
1079
|
|
package/completions/zsh/_postman
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#compdef postman
|
|
2
2
|
compdef _postman postman
|
|
3
|
-
# Zsh completion for Postman CLI (postman v1.
|
|
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
|
|
@@ -209,6 +209,8 @@ _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 ;;
|
|
213
215
|
folder) _postman_collection_folder ;;
|
|
214
216
|
list) _postman_collection_list ;;
|
|
@@ -226,6 +228,8 @@ _postman_collection_commands() {
|
|
|
226
228
|
'lint:Run linting on a local v3 collection at the given file or directory path.'
|
|
227
229
|
'ai-readiness:Score a Postman collection for AI readiness by ID, local file path, or local-mode directory.'
|
|
228
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.'
|
|
229
233
|
'request:Add, update, or remove requests in a local v3 collection.'
|
|
230
234
|
'folder:Add, update, or remove folders in a local v3 collection.'
|
|
231
235
|
'list:List collections\: your local project'\''s collections by default, or a Postman cloud workspace'\''s collections with --workspace.'
|
|
@@ -262,6 +266,7 @@ _postman_collection_lint() {
|
|
|
262
266
|
_postman_collection_ai_readiness() {
|
|
263
267
|
_arguments \
|
|
264
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"' \
|
|
265
270
|
'--min-score[Exit with a non-zero code if the overall score is below this threshold (0-100).]:n' \
|
|
266
271
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
267
272
|
'*:collectionId/Path:_files -g "*.json"'
|
|
@@ -275,6 +280,72 @@ _postman_collection_get() {
|
|
|
275
280
|
'*:id:'
|
|
276
281
|
}
|
|
277
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
|
+
|
|
278
349
|
_postman_collection_request() {
|
|
279
350
|
local context state state_descr line
|
|
280
351
|
typeset -A opt_args
|
|
@@ -463,6 +534,9 @@ _postman_collection_run() {
|
|
|
463
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' \
|
|
464
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' \
|
|
465
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.]' \
|
|
466
540
|
'--report-events[Upload results for git-native v3 collection runs. Analytics are sent by default]' \
|
|
467
541
|
'--no-report-events[Do not send analytics to Postman]' \
|
|
468
542
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
@@ -761,6 +835,7 @@ _postman_spec() {
|
|
|
761
835
|
file) _postman_spec_file ;;
|
|
762
836
|
create) _postman_spec_create ;;
|
|
763
837
|
generate) _postman_spec_generate ;;
|
|
838
|
+
sync) _postman_spec_sync ;;
|
|
764
839
|
esac
|
|
765
840
|
;;
|
|
766
841
|
esac
|
|
@@ -776,6 +851,7 @@ _postman_spec_commands() {
|
|
|
776
851
|
'file:Add, update, or remove files in a spec (cloud ID or local directory).'
|
|
777
852
|
'create:Create a new spec in a workspace, or (with path) scaffold a local spec file.'
|
|
778
853
|
'generate:Generate artifacts from a specification.'
|
|
854
|
+
'sync:Sync a generated collection with its source specification.'
|
|
779
855
|
)
|
|
780
856
|
_describe -t commands 'spec command' sub
|
|
781
857
|
}
|
|
@@ -794,6 +870,7 @@ _postman_spec_lint() {
|
|
|
794
870
|
_postman_spec_ai_readiness() {
|
|
795
871
|
_arguments \
|
|
796
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"' \
|
|
797
874
|
'--min-score[Exit with a non-zero code if the overall score is below this threshold (0-100).]:n' \
|
|
798
875
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
799
876
|
'*:spec:'
|
|
@@ -915,6 +992,38 @@ _postman_spec_generate_collection() {
|
|
|
915
992
|
'*:spec:'
|
|
916
993
|
}
|
|
917
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
|
+
|
|
918
1027
|
_postman_monitor() {
|
|
919
1028
|
local context state state_descr line
|
|
920
1029
|
typeset -A opt_args
|
|
@@ -1188,8 +1297,10 @@ _postman_workspace() {
|
|
|
1188
1297
|
lint) _postman_workspace_lint ;;
|
|
1189
1298
|
get) _postman_workspace_get ;;
|
|
1190
1299
|
create) _postman_workspace_create ;;
|
|
1300
|
+
delete) _postman_workspace_delete ;;
|
|
1191
1301
|
pull) _postman_workspace_pull ;;
|
|
1192
1302
|
connect-git) _postman_workspace_connect_git ;;
|
|
1303
|
+
disconnect-git) _postman_workspace_disconnect_git ;;
|
|
1193
1304
|
diff) _postman_workspace_diff ;;
|
|
1194
1305
|
esac
|
|
1195
1306
|
;;
|
|
@@ -1205,8 +1316,10 @@ _postman_workspace_commands() {
|
|
|
1205
1316
|
'lint:Lint the current local Postman workspace\: its configuration (.postman/resources.yaml) plus every discovered entity. Use --meta to lint only the configuration.'
|
|
1206
1317
|
'get:Read a workspace'\''s metadata, and optionally the ids of what it holds.'
|
|
1207
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.'
|
|
1208
1320
|
'pull:Pull workspace entities from a Postman workspace into the local git-native folder.'
|
|
1209
1321
|
'connect-git:Connect a Postman workspace to a local git repository.'
|
|
1322
|
+
'disconnect-git:Disconnect a Postman workspace from its local git repository.'
|
|
1210
1323
|
'diff:Preview local-vs-cloud drift before pushing. Read-only\: nothing is created, updated or deleted.'
|
|
1211
1324
|
)
|
|
1212
1325
|
_describe -t commands 'workspace command' sub
|
|
@@ -1271,6 +1384,16 @@ _postman_workspace_create() {
|
|
|
1271
1384
|
'(-h --help)'{-h,--help}'[display help for command]'
|
|
1272
1385
|
}
|
|
1273
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
|
+
|
|
1274
1397
|
_postman_workspace_pull() {
|
|
1275
1398
|
_arguments \
|
|
1276
1399
|
'(-y --yes)'{-y,--yes}'[Skip all confirmation prompts]' \
|
|
@@ -1287,12 +1410,20 @@ _postman_workspace_connect_git() {
|
|
|
1287
1410
|
'*:path:_files -g "*.json"'
|
|
1288
1411
|
}
|
|
1289
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
|
+
|
|
1290
1421
|
_postman_workspace_diff() {
|
|
1291
1422
|
_arguments \
|
|
1292
1423
|
'--push-strategy[Strategy to preview. "force-sync" also shows cloud entities that would be DELETED. Defaults to "force-sync".]:strategy' \
|
|
1293
1424
|
'--summary[Skip content comparison. Faster, but updates are listed without checking whether they changed.]' \
|
|
1294
1425
|
'--json[Print the diff as machine-readable JSON.]' \
|
|
1295
|
-
'--exit-code[Exit with code 1 when
|
|
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.]' \
|
|
1296
1427
|
'--verbose[Show detailed logging]' \
|
|
1297
1428
|
'--timeout[Abort the run after this many milliseconds. Defaults to 120000.]:ms' \
|
|
1298
1429
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
@@ -1361,12 +1492,18 @@ _postman_performance_run() {
|
|
|
1361
1492
|
_arguments \
|
|
1362
1493
|
'(-e --environment)'{-e,--environment}'[Specify an Id to a Postman Environment]:id' \
|
|
1363
1494
|
'(-g --globals)'{-g,--globals}'[Specify an Id to a Postman Globals]:id' \
|
|
1364
|
-
'--setup-collection[Collection UID to run before the
|
|
1365
|
-
'--teardown-collection[Collection UID to run after the
|
|
1495
|
+
'--setup-collection[Collection UID to run before the performance test]:id' \
|
|
1496
|
+
'--teardown-collection[Collection UID to run after the performance test]:id' \
|
|
1366
1497
|
'--vu-count[Number of virtual users (default\: 20)]:count' \
|
|
1367
1498
|
'(-d --duration)'{-d,--duration}'[Duration of the performance test in minutes (default\: 1)]:minutes' \
|
|
1368
1499
|
'(-p --load-profile)'{-p,--load-profile}'[Load profile type\: fixed, ramp-up, spike, peak (default\: "ramp-up")]:profile' \
|
|
1369
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)"' \
|
|
1370
1507
|
'--dataset-id[Use a Postman Dataset as iteration data (with --dataset-view-id)]:id' \
|
|
1371
1508
|
'--dataset-view-id[Dataset view to execute for iteration data (requires --dataset-id)]:id' \
|
|
1372
1509
|
'--dataset-distribution[How rows map to VUs\: round-robin (default), fixed, random]:strategy' \
|
|
@@ -1787,6 +1924,8 @@ _postman_mock_run() {
|
|
|
1787
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"' \
|
|
1788
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' \
|
|
1789
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.]' \
|
|
1790
1929
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
1791
1930
|
'*:mockIdOrPath:_files -g "*.json"'
|
|
1792
1931
|
}
|
|
@@ -1939,6 +2078,10 @@ _postman_simulate_commands() {
|
|
|
1939
2078
|
|
|
1940
2079
|
_postman_simulate_run() {
|
|
1941
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.]' \
|
|
1942
2085
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
1943
2086
|
'*:filepath:_files -g "*.json"'
|
|
1944
2087
|
}
|