postman-cli-completion 1.77.0 → 1.82.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 +42 -10
- package/completions/fish/postman.fish +73 -36
- package/completions/zsh/_postman +65 -15
- 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.82.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="api collection dataset environment flows fl globals mock monitor request runner sdk spec workspace ws context-graph describe init search skills login logout signup whoami application app dependency feedback performance secret simulation team update webhook"
|
|
25
|
+
local top_commands="api collection dataset environment flows fl globals mock monitor request runner sdk spec workspace ws context-graph describe init search skills login logout signup whoami application app dependency feedback performance secret simulation status team update webhook"
|
|
26
26
|
local global_flags="--color -h --help --silent -v --version -h --help"
|
|
27
27
|
|
|
28
28
|
local i cmd="" subcmd=""
|
|
@@ -74,6 +74,7 @@ _postman() {
|
|
|
74
74
|
performance) _postman_performance ;;
|
|
75
75
|
secret) _postman_secret ;;
|
|
76
76
|
simulation) _postman_simulation ;;
|
|
77
|
+
status) _postman_status ;;
|
|
77
78
|
team) _postman_team ;;
|
|
78
79
|
update) _postman_update ;;
|
|
79
80
|
webhook) _postman_webhook ;;
|
|
@@ -993,11 +994,12 @@ _postman_flows() {
|
|
|
993
994
|
if [[ "$cur" == -* ]]; then
|
|
994
995
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
995
996
|
else
|
|
996
|
-
COMPREPLY=( $(compgen -W "list trigger deploy run update delete list-runs get-run" -- "$cur") )
|
|
997
|
+
COMPREPLY=( $(compgen -W "create list trigger deploy run update delete list-runs get-run" -- "$cur") )
|
|
997
998
|
fi
|
|
998
999
|
return 0
|
|
999
1000
|
fi
|
|
1000
1001
|
case "$subcmd" in
|
|
1002
|
+
create) _postman_flows_create ;;
|
|
1001
1003
|
list) _postman_flows_list ;;
|
|
1002
1004
|
trigger) _postman_flows_trigger ;;
|
|
1003
1005
|
deploy) _postman_flows_deploy ;;
|
|
@@ -1009,6 +1011,15 @@ _postman_flows() {
|
|
|
1009
1011
|
esac
|
|
1010
1012
|
}
|
|
1011
1013
|
|
|
1014
|
+
_postman_flows_create() {
|
|
1015
|
+
if [[ "$cur" == -* ]]; then
|
|
1016
|
+
COMPREPLY=( $(compgen -W "-n --name --verbose --debug --json -h --help" -- "$cur") )
|
|
1017
|
+
return 0
|
|
1018
|
+
fi
|
|
1019
|
+
case "$prev" in
|
|
1020
|
+
esac
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1012
1023
|
_postman_flows_list() {
|
|
1013
1024
|
if [[ "$cur" == -* ]]; then
|
|
1014
1025
|
COMPREPLY=( $(compgen -W "-w --workspace -p --paginate -f --filter -s --sort --verbose --debug --json -h --help" -- "$cur") )
|
|
@@ -1225,13 +1236,16 @@ _postman_mock() {
|
|
|
1225
1236
|
|
|
1226
1237
|
_postman_mock_generate() {
|
|
1227
1238
|
if [[ "$cur" == -* ]]; then
|
|
1228
|
-
COMPREPLY=( $(compgen -W "-o --output -n --name --port --stateful --force -u --update -w --workspace --deploy --public -s --slug --
|
|
1239
|
+
COMPREPLY=( $(compgen -W "-o --output -n --name --port --mode --stateful --instructions --spec --collection --dataset --force -u --update -w --workspace --deploy --public -s --slug --timeout --api-key --json -x --suppress-exit-code -h --help" -- "$cur") )
|
|
1229
1240
|
return 0
|
|
1230
1241
|
fi
|
|
1231
1242
|
case "$prev" in
|
|
1232
1243
|
-o|--output)
|
|
1233
1244
|
_postman_filematch '!*.@(json)' "$cur"
|
|
1234
1245
|
return 0 ;;
|
|
1246
|
+
--collection)
|
|
1247
|
+
_postman_filematch '!*.@(json)' "$cur"
|
|
1248
|
+
return 0 ;;
|
|
1235
1249
|
-u|--update)
|
|
1236
1250
|
_postman_filematch '!*.@(json)' "$cur"
|
|
1237
1251
|
return 0 ;;
|
|
@@ -1980,7 +1994,7 @@ _postman_workspace() {
|
|
|
1980
1994
|
if [[ "$cur" == -* ]]; then
|
|
1981
1995
|
COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
|
|
1982
1996
|
else
|
|
1983
|
-
COMPREPLY=( $(compgen -W "list prepare push lint get activity create delete share pull connect-git disconnect-git diff" -- "$cur") )
|
|
1997
|
+
COMPREPLY=( $(compgen -W "list prepare push lint get context activity create delete share pull connect-git disconnect-git diff" -- "$cur") )
|
|
1984
1998
|
fi
|
|
1985
1999
|
return 0
|
|
1986
2000
|
fi
|
|
@@ -1990,6 +2004,7 @@ _postman_workspace() {
|
|
|
1990
2004
|
push) _postman_workspace_push ;;
|
|
1991
2005
|
lint) _postman_workspace_lint ;;
|
|
1992
2006
|
get) _postman_workspace_get ;;
|
|
2007
|
+
context) _postman_workspace_context ;;
|
|
1993
2008
|
activity) _postman_workspace_activity ;;
|
|
1994
2009
|
create) _postman_workspace_create ;;
|
|
1995
2010
|
delete) _postman_workspace_delete ;;
|
|
@@ -2019,7 +2034,7 @@ _postman_workspace_prepare() {
|
|
|
2019
2034
|
|
|
2020
2035
|
_postman_workspace_push() {
|
|
2021
2036
|
if [[ "$cur" == -* ]]; then
|
|
2022
|
-
COMPREPLY=( $(compgen -W "--no-prepare -y --yes --push-strategy --json --verbose --report-events --no-report-events -h --help" -- "$cur") )
|
|
2037
|
+
COMPREPLY=( $(compgen -W "--no-prepare -y --yes --push-strategy -m --message --json --verbose --report-events --no-report-events -h --help" -- "$cur") )
|
|
2023
2038
|
return 0
|
|
2024
2039
|
fi
|
|
2025
2040
|
case "$prev" in
|
|
@@ -2044,9 +2059,18 @@ _postman_workspace_get() {
|
|
|
2044
2059
|
esac
|
|
2045
2060
|
}
|
|
2046
2061
|
|
|
2062
|
+
_postman_workspace_context() {
|
|
2063
|
+
if [[ "$cur" == -* ]]; then
|
|
2064
|
+
COMPREPLY=( $(compgen -W "--section --limit --type --contributor --cursor --markdown --brief --json --text --timeout -h --help" -- "$cur") )
|
|
2065
|
+
return 0
|
|
2066
|
+
fi
|
|
2067
|
+
case "$prev" in
|
|
2068
|
+
esac
|
|
2069
|
+
}
|
|
2070
|
+
|
|
2047
2071
|
_postman_workspace_activity() {
|
|
2048
2072
|
if [[ "$cur" == -* ]]; then
|
|
2049
|
-
COMPREPLY=( $(compgen -W "--type --contributor --cursor --limit --markdown --json --timeout -h --help" -- "$cur") )
|
|
2073
|
+
COMPREPLY=( $(compgen -W "--type --contributor --cursor --limit --markdown --json --brief --timeout -h --help" -- "$cur") )
|
|
2050
2074
|
return 0
|
|
2051
2075
|
fi
|
|
2052
2076
|
case "$prev" in
|
|
@@ -2509,7 +2533,7 @@ _postman_skills_update() {
|
|
|
2509
2533
|
|
|
2510
2534
|
_postman_login() {
|
|
2511
2535
|
if [[ "$cur" == -* ]]; then
|
|
2512
|
-
COMPREPLY=( $(compgen -W "--alias --with-api-key --region --verbose -h --help" -- "$cur") )
|
|
2536
|
+
COMPREPLY=( $(compgen -W "--alias --with-api-key --region --migrate-guest-workspace --no-migrate-guest-workspace --verbose -h --help" -- "$cur") )
|
|
2513
2537
|
return 0
|
|
2514
2538
|
fi
|
|
2515
2539
|
case "$prev" in
|
|
@@ -2700,7 +2724,7 @@ _postman_performance() {
|
|
|
2700
2724
|
|
|
2701
2725
|
_postman_performance_run() {
|
|
2702
2726
|
if [[ "$cur" == -* ]]; then
|
|
2703
|
-
COMPREPLY=( $(compgen -W "-e --environment -g --globals --setup-collection --teardown-collection --peak-vu --vu-count --base-vu -d --duration -p --load-profile -s --load-segments --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 --disable-unicode --pass-if --use-mock --dataset -h --help" -- "$cur") )
|
|
2727
|
+
COMPREPLY=( $(compgen -W "-e --environment -g --globals --setup-collection --teardown-collection --peak-vu --vu-count --base-vu -d --duration -p --load-profile -s --load-segments --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 --disable-unicode --pass-if --use-mock --dataset --workspace-id -h --help" -- "$cur") )
|
|
2704
2728
|
return 0
|
|
2705
2729
|
fi
|
|
2706
2730
|
case "$prev" in
|
|
@@ -2851,7 +2875,7 @@ _postman_simulation_get() {
|
|
|
2851
2875
|
|
|
2852
2876
|
_postman_simulation_run() {
|
|
2853
2877
|
if [[ "$cur" == -* ]]; then
|
|
2854
|
-
COMPREPLY=( $(compgen -W "-e --environment -g --globals -p --port --dataset -w --workspace --simulation --api-key --no-history --output --verbose --proxy --proxy-port --scenario --session --log-format --log-body --doctor -h --help" -- "$cur") )
|
|
2878
|
+
COMPREPLY=( $(compgen -W "-e --environment -g --globals -p --port --dataset -w --workspace --simulation --api-key --no-history --output --verbose --proxy --proxy-port --scenario --session --log-format --log-body --doctor --lift -h --help" -- "$cur") )
|
|
2855
2879
|
return 0
|
|
2856
2880
|
fi
|
|
2857
2881
|
case "$prev" in
|
|
@@ -2937,6 +2961,14 @@ _postman_simulation_delete() {
|
|
|
2937
2961
|
esac
|
|
2938
2962
|
}
|
|
2939
2963
|
|
|
2964
|
+
_postman_status() {
|
|
2965
|
+
if [[ "$cur" == -* ]]; then
|
|
2966
|
+
COMPREPLY=( $(compgen -W "--json -h --help" -- "$cur") )
|
|
2967
|
+
return 0
|
|
2968
|
+
fi
|
|
2969
|
+
COMPREPLY=( $(compgen -d -- "$cur") )
|
|
2970
|
+
}
|
|
2971
|
+
|
|
2940
2972
|
_postman_team() {
|
|
2941
2973
|
if [[ -z "$subcmd" ]]; then
|
|
2942
2974
|
if [[ "$cur" == -* ]]; then
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
# Fish completion for Postman CLI (postman v1.
|
|
1
|
+
# Fish completion for Postman CLI (postman v1.82.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 api collection dataset environment flows fl globals mock monitor request runner sdk spec workspace ws context-graph describe init search skills login logout signup whoami application app dependency feedback performance secret simulation team update webhook
|
|
7
|
+
not __fish_seen_subcommand_from api collection dataset environment flows fl globals mock monitor request runner sdk spec workspace ws context-graph describe init search skills login logout signup whoami application app dependency feedback performance secret simulation status team update webhook
|
|
8
8
|
end
|
|
9
9
|
|
|
10
10
|
function __postman_using_subcommand
|
|
@@ -52,6 +52,7 @@ complete -c postman -n __postman_no_subcommand -a feedback -d 'Submit feedback a
|
|
|
52
52
|
complete -c postman -n __postman_no_subcommand -a performance -d 'Manage performance tests on your collections'
|
|
53
53
|
complete -c postman -n __postman_no_subcommand -a secret -d 'Create and manage Postman secrets in a team\'s shared vault'
|
|
54
54
|
complete -c postman -n __postman_no_subcommand -a simulation -d 'Create, run and manage simulations'
|
|
55
|
+
complete -c postman -n __postman_no_subcommand -a status -d 'Show details about the Postman CLI and Postman resources and authentication relevant to a directory'
|
|
55
56
|
complete -c postman -n __postman_no_subcommand -a team -d 'Work with the teams inside your organisation'
|
|
56
57
|
complete -c postman -n __postman_no_subcommand -a update -d 'Update Postman CLI using the original installation method'
|
|
57
58
|
complete -c postman -n __postman_no_subcommand -a webhook -d 'Create and manage Postman webhooks'
|
|
@@ -88,7 +89,7 @@ complete -c postman -n '__postman_using_subcommand collection new migrate lint a
|
|
|
88
89
|
complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get delete publish generate sync share request folder example import list run' -a request -d 'Add, get, update, or remove requests in a local v3 collection.'
|
|
89
90
|
complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get delete publish generate sync share request folder example import list run' -a folder -d 'Add, get, update, or remove folders in a local v3 collection.'
|
|
90
91
|
complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get delete publish generate sync share request folder example import list run' -a example -d 'Add, update, remove, get, or list examples (saved responses) under a request.'
|
|
91
|
-
complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get delete publish generate sync share request folder example import list run' -a import -d 'Import a cURL or
|
|
92
|
+
complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get delete publish generate sync share request folder example import list run' -a import -d 'Import a cURL, HAR, or JMeter (.jmx) source into a v3 collection (local, or cloud with --workspace).'
|
|
92
93
|
complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get delete publish generate sync share request folder example import list run' -a list -d 'List collections: your local project\'s collections by default, or a Postman cloud workspace\'s collections with --workspace.'
|
|
93
94
|
complete -c postman -n '__postman_using_subcommand collection new migrate lint ai-readiness get delete publish generate sync share request folder example import list run' -a run -d 'Initiate a Postman collection run from a given ID or path.'
|
|
94
95
|
complete -c postman -n '__fish_seen_subcommand_from collection' -s h -l help -d 'display help for command'
|
|
@@ -312,7 +313,7 @@ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_
|
|
|
312
313
|
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from example; and __fish_seen_subcommand_from list' -l json -d 'JSON output.'
|
|
313
314
|
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from example; and __fish_seen_subcommand_from list' -s h -l help -d 'display help for command'
|
|
314
315
|
# ---------- collection import ----------
|
|
315
|
-
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from import' -l type -d 'Source format: curl or
|
|
316
|
+
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from import' -l type -d 'Source format: curl, har, or jmeter. Auto-detected from the extension/content when omitted.' -x
|
|
316
317
|
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from import' -l name -d 'Collection display name. Defaults to a per-format fallback.' -x
|
|
317
318
|
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from import' -s o -l output -d 'Output directory for the local collection (default: postman/collections/<name>).' -r
|
|
318
319
|
complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from import' -s w -l workspace -d 'Create the collection in a Postman cloud workspace by id (cloud mode).' -x
|
|
@@ -647,15 +648,22 @@ complete -c postman -n '__fish_seen_subcommand_from environment; and __fish_seen
|
|
|
647
648
|
complete -c postman -n '__fish_seen_subcommand_from environment; and __fish_seen_subcommand_from lint' -r -k -a '(__fish_complete_suffix .json)'
|
|
648
649
|
|
|
649
650
|
# ---------- flows ----------
|
|
650
|
-
complete -c postman -n '__postman_using_subcommand flows list trigger deploy run update delete list-runs get-run' -a
|
|
651
|
-
complete -c postman -n '__postman_using_subcommand flows list trigger deploy run update delete list-runs get-run' -a
|
|
652
|
-
complete -c postman -n '__postman_using_subcommand flows list trigger deploy run update delete list-runs get-run' -a
|
|
653
|
-
complete -c postman -n '__postman_using_subcommand flows list trigger deploy run update delete list-runs get-run' -a
|
|
654
|
-
complete -c postman -n '__postman_using_subcommand flows list trigger deploy run update delete list-runs get-run' -a
|
|
655
|
-
complete -c postman -n '__postman_using_subcommand flows list trigger deploy run update delete list-runs get-run' -a
|
|
656
|
-
complete -c postman -n '__postman_using_subcommand flows list trigger deploy run update delete list-runs get-run' -a
|
|
657
|
-
complete -c postman -n '__postman_using_subcommand flows list trigger deploy run update delete list-runs get-run' -a
|
|
651
|
+
complete -c postman -n '__postman_using_subcommand flows create list trigger deploy run update delete list-runs get-run' -a create -d 'Create a flow in the current repository, the same way "New flow" does in the Postman app. Run it from the root of a repository connected to a Postman workspace.'
|
|
652
|
+
complete -c postman -n '__postman_using_subcommand flows create list trigger deploy run update delete list-runs get-run' -a list -d 'List all flows'
|
|
653
|
+
complete -c postman -n '__postman_using_subcommand flows create list trigger deploy run update delete list-runs get-run' -a trigger -d 'Trigger a deployed flow'
|
|
654
|
+
complete -c postman -n '__postman_using_subcommand flows create list trigger deploy run update delete list-runs get-run' -a deploy -d 'Deploy a flow (required to trigger it)'
|
|
655
|
+
complete -c postman -n '__postman_using_subcommand flows create list trigger deploy run update delete list-runs get-run' -a run -d 'Run a single flow from a file (e.g. ./path/to/flow.json)'
|
|
656
|
+
complete -c postman -n '__postman_using_subcommand flows create list trigger deploy run update delete list-runs get-run' -a update -d 'Update settings for a deployed flow'
|
|
657
|
+
complete -c postman -n '__postman_using_subcommand flows create list trigger deploy run update delete list-runs get-run' -a delete -d 'Delete a flow. A flow id deletes the cloud flow; a local flow file path deletes that file only. Prompts for confirmation unless --yes is passed.'
|
|
658
|
+
complete -c postman -n '__postman_using_subcommand flows create list trigger deploy run update delete list-runs get-run' -a list-runs -d 'List run history for a deployed flow'
|
|
659
|
+
complete -c postman -n '__postman_using_subcommand flows create list trigger deploy run update delete list-runs get-run' -a get-run -d 'Analyze a specific flow run'
|
|
658
660
|
complete -c postman -n '__fish_seen_subcommand_from flows' -s h -l help -d 'display help for command'
|
|
661
|
+
# ---------- flows create ----------
|
|
662
|
+
complete -c postman -n '__fish_seen_subcommand_from flows; and __fish_seen_subcommand_from create' -s n -l name -d 'Specify the flow name (default: "New flow")' -x
|
|
663
|
+
complete -c postman -n '__fish_seen_subcommand_from flows; and __fish_seen_subcommand_from create' -l verbose -d 'Verbose output'
|
|
664
|
+
complete -c postman -n '__fish_seen_subcommand_from flows; and __fish_seen_subcommand_from create' -l debug -d 'Debug output'
|
|
665
|
+
complete -c postman -n '__fish_seen_subcommand_from flows; and __fish_seen_subcommand_from create' -l json -d 'JSON output'
|
|
666
|
+
complete -c postman -n '__fish_seen_subcommand_from flows; and __fish_seen_subcommand_from create' -s h -l help -d 'display help for command'
|
|
659
667
|
# ---------- flows list ----------
|
|
660
668
|
complete -c postman -n '__fish_seen_subcommand_from flows; and __fish_seen_subcommand_from list' -s w -l workspace -d 'Specify the workspace ID to list flows from' -x
|
|
661
669
|
complete -c postman -n '__fish_seen_subcommand_from flows; and __fish_seen_subcommand_from list' -s p -l paginate -d 'Paginates the list of flows'
|
|
@@ -784,7 +792,7 @@ complete -c postman -n '__fish_seen_subcommand_from globals; and __fish_seen_sub
|
|
|
784
792
|
complete -c postman -n '__fish_seen_subcommand_from globals; and __fish_seen_subcommand_from lint' -r -k -a '(__fish_complete_suffix .json)'
|
|
785
793
|
|
|
786
794
|
# ---------- mock ----------
|
|
787
|
-
complete -c postman -n '__postman_using_subcommand mock generate run push deploy get list log delete' -a generate -d 'Generate a mock from a Postman collection
|
|
795
|
+
complete -c postman -n '__postman_using_subcommand mock generate run push deploy get list log delete' -a generate -d 'Generate a mock from a Postman collection, an OpenAPI file or a dataset, or from a built-in sample shopping-cart mock (POST /cart/items, GET /cart, POST /checkout). Writes a local mock by default, or a cloud mock with --workspace. Add --deploy to also make it a live mock server.'
|
|
788
796
|
complete -c postman -n '__postman_using_subcommand mock generate run push deploy get list log delete' -a run -d 'Start a mock using its path if it lives in your repository, or its id if it lives in Postman cloud (fetched and run locally).'
|
|
789
797
|
complete -c postman -n '__postman_using_subcommand mock generate run push deploy get list log delete' -a push -d 'Upload a mock from your repository to Postman cloud (creates it the first time, updates it after).'
|
|
790
798
|
complete -c postman -n '__postman_using_subcommand mock generate run push deploy get list log delete' -a deploy -d 'Turn a mock in Postman cloud into a live mock server others can call over the internet.'
|
|
@@ -797,15 +805,21 @@ complete -c postman -n '__fish_seen_subcommand_from mock' -s h -l help -d 'displ
|
|
|
797
805
|
complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from generate' -s o -l output -d 'Folder to save the mock in. Relative or absolute, e.g. ./postman/mocks/orders. Defaults to postman/mocks/<name>.' -r
|
|
798
806
|
complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from generate' -s n -l name -d 'Name for the mock. Taken from the source when you provide one; required for the sample.' -x
|
|
799
807
|
complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from generate' -l port -d 'Port the mock runs on (e.g. 4010) (default: 4500)' -x
|
|
800
|
-
complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from generate' -l
|
|
808
|
+
complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from generate' -l mode -d 'How the mock behaves: static (replays examples, the default), stateful (keeps records: create, read, list, update, delete), or ai (stateful, plus realistic data and business rules; generated by Postman, needs `postman login`).' -x
|
|
809
|
+
complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from generate' -l stateful -d 'Same as --mode stateful. Generated offline for a local file, by Postman with --workspace, --spec, --collection or --dataset (validated, with seed data). Endpoints that are not CRUD-shaped stay static.'
|
|
810
|
+
complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from generate' -l instructions -d 'With --mode ai: guidance for the AI, e.g. "Orders can only be cancelled before they ship".' -x
|
|
811
|
+
complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from generate' -l spec -d 'Generate from a spec in Postman (by id) instead of a local file. With --workspace, the mock stays linked to it and is regenerated when it changes.' -x
|
|
812
|
+
complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from generate' -l collection -d 'Generate from a collection in Postman (by id) instead of a local file. With --workspace, the mock stays linked to it and is regenerated when it changes.' -r
|
|
813
|
+
complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from generate' -l dataset -d 'Generate from a dataset: its tables become resources and their first 20 rows the records. A dataset in Postman (by id) or a local .dataset.yaml (CSV and JSON sources). Generated by Postman in stateful (the default) or ai mode; AI sees the column names and types, never the rows.' -x
|
|
801
814
|
complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from generate' -l force -d 'Overwrite the mock\'s files if the target folder already has one'
|
|
802
|
-
complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from generate' -s u -l update -d '
|
|
815
|
+
complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from generate' -s u -l update -d 'Regenerate an existing mock in place, e.g. ./postman/mocks/orders. Without a source or --mode, it uses the ones the mock recorded. Cannot be used with --output.' -r
|
|
803
816
|
complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from generate' -s w -l workspace -d 'Save the mock to this Postman cloud workspace (by id) instead of your repository. Cannot be used with --output, --force, or --update, except with --deploy, where it only picks the workspace.' -x
|
|
804
817
|
complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from generate' -l deploy -d 'After generating, upload the mock to Postman cloud and deploy it to a live mock server (private by default). Uses --workspace, else the workspace linked to this project.'
|
|
805
818
|
complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from generate' -l public -d 'With --deploy, let anyone with the link reach the server (default: callers need an API key)'
|
|
806
819
|
complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from generate' -s s -l slug -d 'With --deploy, the short label used in the server\'s web address' -x
|
|
807
|
-
complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from generate' -l
|
|
808
|
-
complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from generate' -l api-key -d 'Postman API key
|
|
820
|
+
complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from generate' -l timeout -d 'How long to wait for Postman to generate the mock, in milliseconds (default 75000).' -x
|
|
821
|
+
complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from generate' -l api-key -d 'Postman API key for anything Postman generates, saves or deploys (defaults to your `postman login` session)' -r
|
|
822
|
+
complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from generate' -l json -d 'Print the result as machine-readable data instead of a summary: the generated mock, or with --deploy the live server details'
|
|
809
823
|
complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from generate' -s x -l suppress-exit-code -d 'Always exit with code 0, even on failure'
|
|
810
824
|
complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from generate' -s h -l help -d 'display help for command'
|
|
811
825
|
# ---------- mock run ----------
|
|
@@ -1207,7 +1221,7 @@ complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcom
|
|
|
1207
1221
|
complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcommand_from list' -r -k -a '(__fish_complete_suffix .json)'
|
|
1208
1222
|
# ---------- spec get ----------
|
|
1209
1223
|
complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcommand_from get' -l api-key -d 'Postman API key' -r
|
|
1210
|
-
complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcommand_from get' -l json -d 'Output as JSON
|
|
1224
|
+
complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcommand_from get' -l json -d 'Output as JSON; a local OpenAPI spec also includes its parsed, $ref-resolved definition'
|
|
1211
1225
|
complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcommand_from get' -s h -l help -d 'display help for command'
|
|
1212
1226
|
# ---------- spec file ----------
|
|
1213
1227
|
complete -c postman -n '__postman_using_subcommand file get add update rm' -a get -d 'Show a file in a spec: its path, size and content.'
|
|
@@ -1270,19 +1284,20 @@ complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcom
|
|
|
1270
1284
|
complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcommand_from delete' -s h -l help -d 'display help for command'
|
|
1271
1285
|
|
|
1272
1286
|
# ---------- workspace ----------
|
|
1273
|
-
complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get activity create delete share pull connect-git disconnect-git diff' -a list -d 'List all available Postman Workspaces'
|
|
1274
|
-
complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get activity create delete share pull connect-git disconnect-git diff' -a prepare -d 'Prepare local collections and environments for push by validating and regenerating IDs if needed.'
|
|
1275
|
-
complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get activity create delete share pull connect-git disconnect-git diff' -a push -d 'Push local workspace entities (collections, environments, specifications, mocks and more) to Postman workspace.'
|
|
1276
|
-
complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get activity create delete share 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.'
|
|
1277
|
-
complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get activity create delete share pull connect-git disconnect-git diff' -a get -d 'Read a workspace\'s metadata, and optionally the ids of what it holds.'
|
|
1278
|
-
complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get activity create delete share pull connect-git disconnect-git diff' -a
|
|
1279
|
-
complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get activity create delete share pull connect-git disconnect-git diff' -a
|
|
1280
|
-
complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get activity create delete share pull connect-git disconnect-git diff' -a
|
|
1281
|
-
complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get activity create delete share pull connect-git disconnect-git diff' -a
|
|
1282
|
-
complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get activity create delete share pull connect-git disconnect-git diff' -a
|
|
1283
|
-
complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get activity create delete share pull connect-git disconnect-git diff' -a
|
|
1284
|
-
complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get activity create delete share pull connect-git disconnect-git diff' -a
|
|
1285
|
-
complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get activity create delete share pull connect-git disconnect-git diff' -a
|
|
1287
|
+
complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get context activity create delete share pull connect-git disconnect-git diff' -a list -d 'List all available Postman Workspaces'
|
|
1288
|
+
complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get context activity create delete share pull connect-git disconnect-git diff' -a prepare -d 'Prepare local collections and environments for push by validating and regenerating IDs if needed.'
|
|
1289
|
+
complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get context activity create delete share pull connect-git disconnect-git diff' -a push -d 'Push local workspace entities (collections, environments, specifications, mocks and more) to Postman workspace.'
|
|
1290
|
+
complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get context activity create delete share 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.'
|
|
1291
|
+
complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get context activity create delete share pull connect-git disconnect-git diff' -a get -d 'Read a workspace\'s metadata, and optionally the ids of what it holds.'
|
|
1292
|
+
complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get context activity create delete share pull connect-git disconnect-git diff' -a context -d 'Everything about a workspace: collections, environments, monitors, mocks, specs and flows, and how they relate (which monitor runs which collection). Add `--section activity` for the change feed. Prints JSON when piped.'
|
|
1293
|
+
complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get context activity create delete share pull connect-git disconnect-git diff' -a activity -d 'Shorthand for `workspace context --section activity`: who changed what, and the messages left on pushes.'
|
|
1294
|
+
complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get context activity create delete share pull connect-git disconnect-git diff' -a create -d 'Create a Postman workspace and bind it to this git repository.'
|
|
1295
|
+
complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get context activity create delete share pull connect-git disconnect-git diff' -a delete -d 'Permanently delete a workspace and everything in it. Prompts for confirmation unless --yes is passed.'
|
|
1296
|
+
complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get context activity create delete share pull connect-git disconnect-git diff' -a share -d 'Grant a role on a workspace to one or more people.'
|
|
1297
|
+
complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get context activity create delete share pull connect-git disconnect-git diff' -a pull -d 'Pull workspace entities from a Postman workspace into the local folder.'
|
|
1298
|
+
complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get context activity create delete share pull connect-git disconnect-git diff' -a connect-git -d 'Connect a Postman workspace to a local git repository.'
|
|
1299
|
+
complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get context activity create delete share pull connect-git disconnect-git diff' -a disconnect-git -d 'Disconnect a Postman workspace from its local git repository.'
|
|
1300
|
+
complete -c postman -n '__postman_using_subcommand workspace list prepare push lint get context activity create delete share pull connect-git disconnect-git diff' -a diff -d 'Preview local-vs-cloud drift before pushing. Read-only: nothing is created, updated or deleted.'
|
|
1286
1301
|
complete -c postman -n '__fish_seen_subcommand_from workspace' -s h -l help -d 'display help for command'
|
|
1287
1302
|
# ---------- workspace list ----------
|
|
1288
1303
|
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
|
|
@@ -1300,6 +1315,7 @@ complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_s
|
|
|
1300
1315
|
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'
|
|
1301
1316
|
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from push' -s y -l yes -d 'Skip all confirmation prompts'
|
|
1302
1317
|
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
|
|
1318
|
+
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from push' -s m -l message -d 'Short note on what changed, like a commit message (max 500 characters). Shown on the workspace activity feed. Recorded only when the push changes something.' -x
|
|
1303
1319
|
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from push' -l json -d 'Print the outcome as machine-readable JSON. Implies non-interactive: use --yes to actually push.'
|
|
1304
1320
|
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from push' -l verbose -d 'Show detailed logging'
|
|
1305
1321
|
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from push' -l report-events -d 'Dispatch events to the API Catalog and Application Inventory ingestion pipelines (on by default)'
|
|
@@ -1317,13 +1333,26 @@ complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_s
|
|
|
1317
1333
|
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from get' -l json -d 'Print the workspace as machine-readable JSON.'
|
|
1318
1334
|
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from get' -l timeout -d 'Milliseconds to wait for the API (default 30000).' -x
|
|
1319
1335
|
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from get' -s h -l help -d 'display help for command'
|
|
1336
|
+
# ---------- workspace context ----------
|
|
1337
|
+
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from context' -l section -d 'Comma-separated sections to show (collection, environment, monitor, mock, spec, flow, activity). Default: everything but activity. Counts are always reported for every inventory section.' -x
|
|
1338
|
+
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from context' -l limit -d 'Max items per section, or entries for activity (default 25 items). A cut section says how many were left out.' -x
|
|
1339
|
+
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from context' -l type -d 'Activity only: comma-separated element types, e.g. "api,collection". Use "workspacePush" for the messages left with `workspace push -m`.' -x
|
|
1340
|
+
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from context' -l contributor -d 'Activity only: comma-separated user ids.' -x
|
|
1341
|
+
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from context' -l cursor -d 'Activity only: the page of entries that follows this cursor.' -x
|
|
1342
|
+
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from context' -l markdown -d 'Activity only: ask the API for a human-readable description of each entry.'
|
|
1343
|
+
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from context' -l brief -d 'With only `--section activity`: one plain line per entry (time, who, message).'
|
|
1344
|
+
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from context' -l json -d 'Print JSON (schemaVersion 1.0). This is already the default when piped.'
|
|
1345
|
+
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from context' -l text -d 'Print prose even when piped.'
|
|
1346
|
+
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from context' -l timeout -d 'Milliseconds to wait for the API (default 30000).' -x
|
|
1347
|
+
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from context' -s h -l help -d 'display help for command'
|
|
1320
1348
|
# ---------- workspace activity ----------
|
|
1321
|
-
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from activity' -l type -d 'Comma-separated element types to filter on, e.g. "api,collection".' -x
|
|
1349
|
+
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from activity' -l type -d 'Comma-separated element types to filter on, e.g. "api,collection". Use "workspacePush" for the messages left with `workspace push -m`.' -x
|
|
1322
1350
|
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from activity' -l contributor -d 'Comma-separated user ids to filter on.' -x
|
|
1323
1351
|
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from activity' -l cursor -d 'Fetch the page of entries that follows this cursor.' -x
|
|
1324
1352
|
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from activity' -l limit -d 'Max entries to return.' -x
|
|
1325
1353
|
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from activity' -l markdown -d 'Ask the API for a human-readable description of each entry.'
|
|
1326
1354
|
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from activity' -l json -d 'Print the feed as machine-readable JSON.'
|
|
1355
|
+
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from activity' -l brief -d 'Print one plain line per entry (time, who, message), for a prompt or a log. Prints nothing when there are no entries.'
|
|
1327
1356
|
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from activity' -l timeout -d 'Milliseconds to wait for the API (default 30000).' -x
|
|
1328
1357
|
complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from activity' -s h -l help -d 'display help for command'
|
|
1329
1358
|
# ---------- workspace create ----------
|
|
@@ -1537,6 +1566,8 @@ complete -c postman -n '__fish_seen_subcommand_from skills; and __fish_seen_subc
|
|
|
1537
1566
|
complete -c postman -n '__fish_seen_subcommand_from login' -l alias -d 'Specify the alias of the API key to fetch your resources using it. (This option is discontinued and will be removed in a future release.)' -x
|
|
1538
1567
|
complete -c postman -n '__fish_seen_subcommand_from login' -l with-api-key -d 'Specify the API key directly.' -x
|
|
1539
1568
|
complete -c postman -n '__fish_seen_subcommand_from login' -l region -d 'Specify the region for authentication. Use "eu" for EU region.' -x -a 'us eu'
|
|
1569
|
+
complete -c postman -n '__fish_seen_subcommand_from login' -l migrate-guest-workspace -d 'Copy this repository\'s local work into a new workspace in the account you sign in to, even when this session is no longer a guest (for example after a logout).'
|
|
1570
|
+
complete -c postman -n '__fish_seen_subcommand_from login' -l no-migrate-guest-workspace -d 'Do not copy a guest\'s local work into the account you sign in to. By default a guest\'s local work is copied.'
|
|
1540
1571
|
complete -c postman -n '__fish_seen_subcommand_from login' -l verbose -d 'Show detailed error information'
|
|
1541
1572
|
complete -c postman -n '__fish_seen_subcommand_from login' -s h -l help -d 'display help for command'
|
|
1542
1573
|
|
|
@@ -1663,6 +1694,7 @@ complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen
|
|
|
1663
1694
|
complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -l pass-if -d 'Pass condition in format: function(metric, value) (repeatable; all conditions must hold). Functions: less_than, greater_than, less_than_eq, greater_than_eq. Metrics: avg, p90, p95, p99, error_rate, rps. Example: less_than(p95, 500)' -x
|
|
1664
1695
|
complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -l use-mock -d 'Redirect a variable/host to a local code mock or cloud Mock Server (repeatable). Format: "<{{var}}|host> mock|mock-server:<path|id> [scenario]" (default: [])' -x
|
|
1665
1696
|
complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -l dataset -d 'Pass --dataset multiple times to load several .dataset.yaml files (or directories containing them). Each is made available to the handlers of the local mocks started by --use-mock as pm.datasets(<id>). Local runner only. (default: [])' -r
|
|
1697
|
+
complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -l workspace-id -d 'Workspace that owns the shared vault for the collection\'s v12 secret variables. Required on cloud runs to resolve those secrets; omit if the run uses no vault secrets.' -x
|
|
1666
1698
|
complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -s h -l help -d 'display help for command'
|
|
1667
1699
|
complete -c postman -n '__fish_seen_subcommand_from performance; and __fish_seen_subcommand_from run' -r -k -a '(__fish_complete_suffix .json)'
|
|
1668
1700
|
# ---------- performance list ----------
|
|
@@ -1735,7 +1767,7 @@ complete -c postman -n '__fish_seen_subcommand_from simulation; and __fish_seen_
|
|
|
1735
1767
|
# ---------- simulation run ----------
|
|
1736
1768
|
complete -c postman -n '__fish_seen_subcommand_from simulation; and __fish_seen_subcommand_from run' -s e -l environment -d 'Path to a file of environment variables for the mocks (relative or absolute)' -r
|
|
1737
1769
|
complete -c postman -n '__fish_seen_subcommand_from simulation; and __fish_seen_subcommand_from run' -s g -l globals -d 'Path to a file of global variables for the mocks (relative or absolute)' -r
|
|
1738
|
-
complete -c postman -n '__fish_seen_subcommand_from simulation; and __fish_seen_subcommand_from run' -s p -l port -d 'Port to serve on (e.g. 4010), or "auto" for a free one
|
|
1770
|
+
complete -c postman -n '__fish_seen_subcommand_from simulation; and __fish_seen_subcommand_from run' -s p -l port -d 'Port to serve on (e.g. 4010), or "auto" for a free one. Omitted, it prefers 3000 but falls back to a free port when that one is busy, so an omitted port is not guaranteed: pass one to pin it, or read the bound port from --output ndjson\'s "listening" event. Binds 127.0.0.1 only, so a caller in a container or VM cannot reach it.' -x
|
|
1739
1771
|
complete -c postman -n '__fish_seen_subcommand_from simulation; and __fish_seen_subcommand_from run' -l dataset -d 'Dataset file or folder to load for pm.datasets (repeatable) (default: [])' -r
|
|
1740
1772
|
complete -c postman -n '__fish_seen_subcommand_from simulation; and __fish_seen_subcommand_from run' -s w -l workspace -d 'Workspace for recording start history. Derived from a simulation id or the linked project; needed only for an unlinked .sim.yaml path.' -x
|
|
1741
1773
|
complete -c postman -n '__fish_seen_subcommand_from simulation; and __fish_seen_subcommand_from run' -l simulation -d 'Simulation id to record start history against for a .sim.yaml path (a local file has only a name). Not needed when running by simulation id, or when the file is linked to a cloud simulation (via workspace push).' -x
|
|
@@ -1744,12 +1776,13 @@ complete -c postman -n '__fish_seen_subcommand_from simulation; and __fish_seen_
|
|
|
1744
1776
|
complete -c postman -n '__fish_seen_subcommand_from simulation; and __fish_seen_subcommand_from run' -l output -d 'Live output format: auto (default, human-readable logs) or ndjson (one JSON event per line on stdout, ending with a "summary" event — for CI or other non-interactive use) (default: "auto")' -x
|
|
1745
1777
|
complete -c postman -n '__fish_seen_subcommand_from simulation; and __fish_seen_subcommand_from run' -l verbose -d 'Show request and response headers and bodies for each request. By default each request prints one line, plus any applied scenario or error.'
|
|
1746
1778
|
complete -c postman -n '__fish_seen_subcommand_from simulation; and __fish_seen_subcommand_from run' -l proxy -d 'Serve the mocks behind a local HTTP(S) forward proxy instead of one routed port, so a repo under test can point HTTP_PROXY/HTTPS_PROXY at it and reach each mock by hostname without code changes. Each mock is reached on the hostnames its `origin:` declares; a request to any other host reaches the real host unchanged.'
|
|
1747
|
-
complete -c postman -n '__fish_seen_subcommand_from simulation; and __fish_seen_subcommand_from run' -l proxy-port -d 'Port for the proxy server. Distinct from --port, which is the one-port run\'s own port.
|
|
1748
|
-
complete -c postman -n '__fish_seen_subcommand_from simulation; and __fish_seen_subcommand_from run' -l scenario -d 'Scenario each mock serves, sent as both pm-mock-scenario and x-mock-scenario. (default: "default")' -x
|
|
1779
|
+
complete -c postman -n '__fish_seen_subcommand_from simulation; and __fish_seen_subcommand_from run' -l proxy-port -d 'Port for the proxy server, or "auto" for a free one. Omitted, it prefers 7001 but falls back to a free port when that one is busy, so an omitted port is not guaranteed: pass one to pin it, or read the bound port from the startup banner. A port passed here exits 1 when it is busy. Distinct from --port, which is the one-port run\'s own port. Bound to 127.0.0.1, so point clients there rather than at "localhost" — a client that resolves localhost to ::1 first will not reach it.' -x
|
|
1780
|
+
complete -c postman -n '__fish_seen_subcommand_from simulation; and __fish_seen_subcommand_from run' -l scenario -d 'Scenario each mock serves, sent as both pm-mock-scenario and x-mock-scenario. A member that defines no scenario by this name serves its default. (default: "default")' -x
|
|
1749
1781
|
complete -c postman -n '__fish_seen_subcommand_from simulation; and __fish_seen_subcommand_from run' -l session -d 'Session id to select via the x-mock-session header (default: a generated id).' -x
|
|
1750
|
-
complete -c postman -n '__fish_seen_subcommand_from simulation; and __fish_seen_subcommand_from run' -l log-format -d 'Proxy request log format: text or json. (default: "text")' -x
|
|
1782
|
+
complete -c postman -n '__fish_seen_subcommand_from simulation; and __fish_seen_subcommand_from run' -l log-format -d 'Proxy request log format: text or json. Each line carries the method, host, path, destination (a routeKey, or "passthrough"), status and duration; json adds a timestamp, the scenario and the session. (default: "text")' -x
|
|
1751
1783
|
complete -c postman -n '__fish_seen_subcommand_from simulation; and __fish_seen_subcommand_from run' -l log-body -d 'Also log each response body (truncated). Buffers full responses in memory; meant for temporary debugging, not left on by default.'
|
|
1752
1784
|
complete -c postman -n '__fish_seen_subcommand_from simulation; and __fish_seen_subcommand_from run' -l doctor -d 'Start the proxy, probe each available HTTP client (fetch/undici/axios/node-fetch) to confirm it honors HTTP_PROXY/HTTPS_PROXY, then exit.'
|
|
1785
|
+
complete -c postman -n '__fish_seen_subcommand_from simulation; and __fish_seen_subcommand_from run' -l lift -d 'Start this command behind the proxy with HTTP_PROXY, HTTPS_PROXY and NODE_EXTRA_CA_CERTS already set in its environment, instead of printing them for you to export by hand. Runs as a child process, so the variables reach the code making the calls rather than the CLI. The proxy lives exactly as long as the command and exits with its exit code.' -x
|
|
1753
1786
|
complete -c postman -n '__fish_seen_subcommand_from simulation; and __fish_seen_subcommand_from run' -s h -l help -d 'display help for command'
|
|
1754
1787
|
# ---------- simulation push ----------
|
|
1755
1788
|
complete -c postman -n '__fish_seen_subcommand_from simulation; and __fish_seen_subcommand_from push' -s w -l workspace -d 'Postman cloud workspace to upload to, by id (defaults to the workspace already linked to this project)' -x
|
|
@@ -1792,6 +1825,10 @@ complete -c postman -n '__fish_seen_subcommand_from simulation; and __fish_seen_
|
|
|
1792
1825
|
complete -c postman -n '__fish_seen_subcommand_from simulation; and __fish_seen_subcommand_from delete' -l json -d 'Print the result as machine-readable data (requires --yes)'
|
|
1793
1826
|
complete -c postman -n '__fish_seen_subcommand_from simulation; and __fish_seen_subcommand_from delete' -s h -l help -d 'display help for command'
|
|
1794
1827
|
|
|
1828
|
+
# ---------- status ----------
|
|
1829
|
+
complete -c postman -n '__fish_seen_subcommand_from status' -l json -d 'Print status as machine-readable JSON.'
|
|
1830
|
+
complete -c postman -n '__fish_seen_subcommand_from status' -s h -l help -d 'display help for command'
|
|
1831
|
+
|
|
1795
1832
|
# ---------- team ----------
|
|
1796
1833
|
complete -c postman -n '__postman_using_subcommand team list' -a list -d 'List the teams inside your organisation.'
|
|
1797
1834
|
complete -c postman -n '__fish_seen_subcommand_from team' -s h -l help -d 'display help for command'
|
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.82.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
|
|
@@ -48,6 +48,7 @@ _postman() {
|
|
|
48
48
|
performance) _postman_performance ;;
|
|
49
49
|
secret) _postman_secret ;;
|
|
50
50
|
simulation) _postman_simulation ;;
|
|
51
|
+
status) _postman_status ;;
|
|
51
52
|
team) _postman_team ;;
|
|
52
53
|
update) _postman_update ;;
|
|
53
54
|
webhook) _postman_webhook ;;
|
|
@@ -90,6 +91,7 @@ _postman_commands() {
|
|
|
90
91
|
'performance:Manage performance tests on your collections'
|
|
91
92
|
'secret:Create and manage Postman secrets in a team'\''s shared vault'
|
|
92
93
|
'simulation:Create, run and manage simulations'
|
|
94
|
+
'status:Show details about the Postman CLI and Postman resources and authentication relevant to a directory'
|
|
93
95
|
'team:Work with the teams inside your organisation'
|
|
94
96
|
'update:Update Postman CLI using the original installation method'
|
|
95
97
|
'webhook:Create and manage Postman webhooks'
|
|
@@ -191,7 +193,7 @@ _postman_collection_commands() {
|
|
|
191
193
|
'request:Add, get, update, or remove requests in a local v3 collection.'
|
|
192
194
|
'folder:Add, get, update, or remove folders in a local v3 collection.'
|
|
193
195
|
'example:Add, update, remove, get, or list examples (saved responses) under a request.'
|
|
194
|
-
'import:Import a cURL or
|
|
196
|
+
'import:Import a cURL, HAR, or JMeter (.jmx) source into a v3 collection (local, or cloud with --workspace).'
|
|
195
197
|
'list:List collections\: your local project'\''s collections by default, or a Postman cloud workspace'\''s collections with --workspace.'
|
|
196
198
|
'run:Initiate a Postman collection run from a given ID or path.'
|
|
197
199
|
)
|
|
@@ -619,7 +621,7 @@ _postman_collection_example_list() {
|
|
|
619
621
|
|
|
620
622
|
_postman_collection_import() {
|
|
621
623
|
_arguments \
|
|
622
|
-
'--type[Source format\: curl or
|
|
624
|
+
'--type[Source format\: curl, har, or jmeter. Auto-detected from the extension/content when omitted.]:format' \
|
|
623
625
|
'--name[Collection display name. Defaults to a per-format fallback.]:name' \
|
|
624
626
|
'(-o --output)'{-o,--output}'[Output directory for the local collection (default\: postman/collections/<name>).]:dir:_files -g "*.json"' \
|
|
625
627
|
'(-w --workspace)'{-w,--workspace}'[Create the collection in a Postman cloud workspace by id (cloud mode).]:id' \
|
|
@@ -1206,6 +1208,7 @@ _postman_flows() {
|
|
|
1206
1208
|
case $state in
|
|
1207
1209
|
args)
|
|
1208
1210
|
case $words[1] in
|
|
1211
|
+
create) _postman_flows_create ;;
|
|
1209
1212
|
list) _postman_flows_list ;;
|
|
1210
1213
|
trigger) _postman_flows_trigger ;;
|
|
1211
1214
|
deploy) _postman_flows_deploy ;;
|
|
@@ -1222,6 +1225,7 @@ _postman_flows() {
|
|
|
1222
1225
|
_postman_flows_commands() {
|
|
1223
1226
|
local -a sub
|
|
1224
1227
|
sub=(
|
|
1228
|
+
'create:Create a flow in the current repository, the same way "New flow" does in the Postman app. Run it from the root of a repository connected to a Postman workspace.'
|
|
1225
1229
|
'list:List all flows'
|
|
1226
1230
|
'trigger:Trigger a deployed flow'
|
|
1227
1231
|
'deploy:Deploy a flow (required to trigger it)'
|
|
@@ -1234,6 +1238,15 @@ _postman_flows_commands() {
|
|
|
1234
1238
|
_describe -t commands 'flows command' sub
|
|
1235
1239
|
}
|
|
1236
1240
|
|
|
1241
|
+
_postman_flows_create() {
|
|
1242
|
+
_arguments \
|
|
1243
|
+
'(-n --name)'{-n,--name}'[Specify the flow name (default\: "New flow")]:name' \
|
|
1244
|
+
'--verbose[Verbose output]' \
|
|
1245
|
+
'--debug[Debug output]' \
|
|
1246
|
+
'--json[JSON output]' \
|
|
1247
|
+
'(-h --help)'{-h,--help}'[display help for command]'
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1237
1250
|
_postman_flows_list() {
|
|
1238
1251
|
_arguments \
|
|
1239
1252
|
'(-w --workspace)'{-w,--workspace}'[Specify the workspace ID to list flows from]:workspaceId' \
|
|
@@ -1475,7 +1488,7 @@ _postman_mock() {
|
|
|
1475
1488
|
_postman_mock_commands() {
|
|
1476
1489
|
local -a sub
|
|
1477
1490
|
sub=(
|
|
1478
|
-
'generate:Generate a mock from a Postman collection
|
|
1491
|
+
'generate:Generate a mock from a Postman collection, an OpenAPI file or a dataset, or from a built-in sample shopping-cart mock (POST /cart/items, GET /cart, POST /checkout). Writes a local mock by default, or a cloud mock with --workspace. Add --deploy to also make it a live mock server.'
|
|
1479
1492
|
'run:Start a mock using its path if it lives in your repository, or its id if it lives in Postman cloud (fetched and run locally).'
|
|
1480
1493
|
'push:Upload a mock from your repository to Postman cloud (creates it the first time, updates it after).'
|
|
1481
1494
|
'deploy:Turn a mock in Postman cloud into a live mock server others can call over the internet.'
|
|
@@ -1492,15 +1505,21 @@ _postman_mock_generate() {
|
|
|
1492
1505
|
'(-o --output)'{-o,--output}'[Folder to save the mock in. Relative or absolute, e.g. ./postman/mocks/orders. Defaults to postman/mocks/<name>.]:dir:_files -g "*.json"' \
|
|
1493
1506
|
'(-n --name)'{-n,--name}'[Name for the mock. Taken from the source when you provide one; required for the sample.]:name' \
|
|
1494
1507
|
'--port[Port the mock runs on (e.g. 4010) (default\: 4500)]:port' \
|
|
1495
|
-
'--
|
|
1508
|
+
'--mode[How the mock behaves\: static (replays examples, the default), stateful (keeps records\: create, read, list, update, delete), or ai (stateful, plus realistic data and business rules; generated by Postman, needs `postman login`).]:mode' \
|
|
1509
|
+
'--stateful[Same as --mode stateful. Generated offline for a local file, by Postman with --workspace, --spec, --collection or --dataset (validated, with seed data). Endpoints that are not CRUD-shaped stay static.]' \
|
|
1510
|
+
'--instructions[With --mode ai\: guidance for the AI, e.g. "Orders can only be cancelled before they ship".]:text' \
|
|
1511
|
+
'--spec[Generate from a spec in Postman (by id) instead of a local file. With --workspace, the mock stays linked to it and is regenerated when it changes.]:specId' \
|
|
1512
|
+
'--collection[Generate from a collection in Postman (by id) instead of a local file. With --workspace, the mock stays linked to it and is regenerated when it changes.]:collectionId:_files -g "*.json"' \
|
|
1513
|
+
'--dataset[Generate from a dataset\: its tables become resources and their first 20 rows the records. A dataset in Postman (by id) or a local .dataset.yaml (CSV and JSON sources). Generated by Postman in stateful (the default) or ai mode; AI sees the column names and types, never the rows.]:datasetIdOrPath' \
|
|
1496
1514
|
'--force[Overwrite the mock'\''s files if the target folder already has one]' \
|
|
1497
|
-
'(-u --update)'{-u,--update}'[
|
|
1515
|
+
'(-u --update)'{-u,--update}'[Regenerate an existing mock in place, e.g. ./postman/mocks/orders. Without a source or --mode, it uses the ones the mock recorded. Cannot be used with --output.]:mockPath:_files -g "*.json"' \
|
|
1498
1516
|
'(-w --workspace)'{-w,--workspace}'[Save the mock to this Postman cloud workspace (by id) instead of your repository. Cannot be used with --output, --force, or --update, except with --deploy, where it only picks the workspace.]:id' \
|
|
1499
1517
|
'--deploy[After generating, upload the mock to Postman cloud and deploy it to a live mock server (private by default). Uses --workspace, else the workspace linked to this project.]' \
|
|
1500
1518
|
'--public[With --deploy, let anyone with the link reach the server (default\: callers need an API key)]' \
|
|
1501
1519
|
'(-s --slug)'{-s,--slug}'[With --deploy, the short label used in the server'\''s web address]:slug' \
|
|
1502
|
-
'--
|
|
1503
|
-
'--api-key[Postman API key
|
|
1520
|
+
'--timeout[How long to wait for Postman to generate the mock, in milliseconds (default 75000).]:ms' \
|
|
1521
|
+
'--api-key[Postman API key for anything Postman generates, saves or deploys (defaults to your `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
1522
|
+
'--json[Print the result as machine-readable data instead of a summary\: the generated mock, or with --deploy the live server details]' \
|
|
1504
1523
|
'(-x --suppress-exit-code)'{-x,--suppress-exit-code}'[Always exit with code 0, even on failure]' \
|
|
1505
1524
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
1506
1525
|
'*:sourcePath:'
|
|
@@ -2202,7 +2221,7 @@ _postman_spec_list() {
|
|
|
2202
2221
|
_postman_spec_get() {
|
|
2203
2222
|
_arguments \
|
|
2204
2223
|
'--api-key[Postman API key]:key:_files -g "*.(pem|crt|key)"' \
|
|
2205
|
-
'--json[Output as JSON
|
|
2224
|
+
'--json[Output as JSON; a local OpenAPI spec also includes its parsed, $ref-resolved definition]' \
|
|
2206
2225
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
2207
2226
|
'*:spec...:'
|
|
2208
2227
|
}
|
|
@@ -2374,6 +2393,7 @@ _postman_workspace() {
|
|
|
2374
2393
|
push) _postman_workspace_push ;;
|
|
2375
2394
|
lint) _postman_workspace_lint ;;
|
|
2376
2395
|
get) _postman_workspace_get ;;
|
|
2396
|
+
context) _postman_workspace_context ;;
|
|
2377
2397
|
activity) _postman_workspace_activity ;;
|
|
2378
2398
|
create) _postman_workspace_create ;;
|
|
2379
2399
|
delete) _postman_workspace_delete ;;
|
|
@@ -2395,7 +2415,8 @@ _postman_workspace_commands() {
|
|
|
2395
2415
|
'push:Push local workspace entities (collections, environments, specifications, mocks and more) to Postman workspace.'
|
|
2396
2416
|
'lint:Lint the current local Postman workspace\: its configuration (.postman/resources.yaml) plus every discovered entity. Use --meta to lint only the configuration.'
|
|
2397
2417
|
'get:Read a workspace'\''s metadata, and optionally the ids of what it holds.'
|
|
2398
|
-
'
|
|
2418
|
+
'context:Everything about a workspace\: collections, environments, monitors, mocks, specs and flows, and how they relate (which monitor runs which collection). Add `--section activity` for the change feed. Prints JSON when piped.'
|
|
2419
|
+
'activity:Shorthand for `workspace context --section activity`\: who changed what, and the messages left on pushes.'
|
|
2399
2420
|
'create:Create a Postman workspace and bind it to this git repository.'
|
|
2400
2421
|
'delete:Permanently delete a workspace and everything in it. Prompts for confirmation unless --yes is passed.'
|
|
2401
2422
|
'share:Grant a role on a workspace to one or more people.'
|
|
@@ -2430,6 +2451,7 @@ _postman_workspace_push() {
|
|
|
2430
2451
|
'--no-prepare[Skip ID validation and auto-fix before pushing]' \
|
|
2431
2452
|
'(-y --yes)'{-y,--yes}'[Skip all confirmation prompts]' \
|
|
2432
2453
|
'--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' \
|
|
2454
|
+
'(-m --message)'{-m,--message}'[Short note on what changed, like a commit message (max 500 characters). Shown on the workspace activity feed. Recorded only when the push changes something.]:text' \
|
|
2433
2455
|
'--json[Print the outcome as machine-readable JSON. Implies non-interactive\: use --yes to actually push.]' \
|
|
2434
2456
|
'--verbose[Show detailed logging]' \
|
|
2435
2457
|
'--report-events[Dispatch events to the API Catalog and Application Inventory ingestion pipelines (on by default)]' \
|
|
@@ -2456,14 +2478,31 @@ _postman_workspace_get() {
|
|
|
2456
2478
|
'*:id:'
|
|
2457
2479
|
}
|
|
2458
2480
|
|
|
2481
|
+
_postman_workspace_context() {
|
|
2482
|
+
_arguments \
|
|
2483
|
+
'--section[Comma-separated sections to show (collection, environment, monitor, mock, spec, flow, activity). Default\: everything but activity. Counts are always reported for every inventory section.]:names' \
|
|
2484
|
+
'--limit[Max items per section, or entries for activity (default 25 items). A cut section says how many were left out.]:n' \
|
|
2485
|
+
'--type[Activity only\: comma-separated element types, e.g. "api,collection". Use "workspacePush" for the messages left with `workspace push -m`.]:types' \
|
|
2486
|
+
'--contributor[Activity only\: comma-separated user ids.]:ids' \
|
|
2487
|
+
'--cursor[Activity only\: the page of entries that follows this cursor.]:cursor' \
|
|
2488
|
+
'--markdown[Activity only\: ask the API for a human-readable description of each entry.]' \
|
|
2489
|
+
'--brief[With only `--section activity`\: one plain line per entry (time, who, message).]' \
|
|
2490
|
+
'--json[Print JSON (schemaVersion 1.0). This is already the default when piped.]' \
|
|
2491
|
+
'--text[Print prose even when piped.]' \
|
|
2492
|
+
'--timeout[Milliseconds to wait for the API (default 30000).]:ms' \
|
|
2493
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
2494
|
+
'*:id:'
|
|
2495
|
+
}
|
|
2496
|
+
|
|
2459
2497
|
_postman_workspace_activity() {
|
|
2460
2498
|
_arguments \
|
|
2461
|
-
'--type[Comma-separated element types to filter on, e.g. "api,collection".]:types' \
|
|
2499
|
+
'--type[Comma-separated element types to filter on, e.g. "api,collection". Use "workspacePush" for the messages left with `workspace push -m`.]:types' \
|
|
2462
2500
|
'--contributor[Comma-separated user ids to filter on.]:ids' \
|
|
2463
2501
|
'--cursor[Fetch the page of entries that follows this cursor.]:cursor' \
|
|
2464
2502
|
'--limit[Max entries to return.]:n' \
|
|
2465
2503
|
'--markdown[Ask the API for a human-readable description of each entry.]' \
|
|
2466
2504
|
'--json[Print the feed as machine-readable JSON.]' \
|
|
2505
|
+
'--brief[Print one plain line per entry (time, who, message), for a prompt or a log. Prints nothing when there are no entries.]' \
|
|
2467
2506
|
'--timeout[Milliseconds to wait for the API (default 30000).]:ms' \
|
|
2468
2507
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
2469
2508
|
'*:id:'
|
|
@@ -3035,6 +3074,8 @@ _postman_login() {
|
|
|
3035
3074
|
'--alias[Specify the alias of the API key to fetch your resources using it. (This option is discontinued and will be removed in a future release.)]:alias' \
|
|
3036
3075
|
'--with-api-key[Specify the API key directly.]:apikey' \
|
|
3037
3076
|
'--region[Specify the region for authentication. Use "eu" for EU region.]:region:(us eu)' \
|
|
3077
|
+
'--migrate-guest-workspace[Copy this repository'\''s local work into a new workspace in the account you sign in to, even when this session is no longer a guest (for example after a logout).]' \
|
|
3078
|
+
'--no-migrate-guest-workspace[Do not copy a guest'\''s local work into the account you sign in to. By default a guest'\''s local work is copied.]' \
|
|
3038
3079
|
'--verbose[Show detailed error information]' \
|
|
3039
3080
|
'(-h --help)'{-h,--help}'[display help for command]'
|
|
3040
3081
|
}
|
|
@@ -3274,6 +3315,7 @@ _postman_performance_run() {
|
|
|
3274
3315
|
'--pass-if[Pass condition in format\: function(metric, value) (repeatable; all conditions must hold). Functions\: less_than, greater_than, less_than_eq, greater_than_eq. Metrics\: avg, p90, p95, p99, error_rate, rps. Example\: less_than(p95, 500)]:condition' \
|
|
3275
3316
|
'--use-mock[Redirect a variable/host to a local code mock or cloud Mock Server (repeatable). Format\: "<{{var}}|host> mock|mock-server\:<path|id> \[scenario\]" (default\: \[\])]:mapping' \
|
|
3276
3317
|
'--dataset[Pass --dataset multiple times to load several .dataset.yaml files (or directories containing them). Each is made available to the handlers of the local mocks started by --use-mock as pm.datasets(<id>). Local runner only. (default\: \[\])]:pathOrDir:_files -g "*.json"' \
|
|
3318
|
+
'--workspace-id[Workspace that owns the shared vault for the collection'\''s v12 secret variables. Required on cloud runs to resolve those secrets; omit if the run uses no vault secrets.]:id' \
|
|
3277
3319
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
3278
3320
|
'*:collectionId:_files -g "*.json"'
|
|
3279
3321
|
}
|
|
@@ -3422,7 +3464,7 @@ _postman_simulation_run() {
|
|
|
3422
3464
|
_arguments \
|
|
3423
3465
|
'(-e --environment)'{-e,--environment}'[Path to a file of environment variables for the mocks (relative or absolute)]:path:_files -g "*.json"' \
|
|
3424
3466
|
'(-g --globals)'{-g,--globals}'[Path to a file of global variables for the mocks (relative or absolute)]:path:_files -g "*.json"' \
|
|
3425
|
-
'(-p --port)'{-p,--port}'[Port to serve on (e.g. 4010), or "auto" for a free one
|
|
3467
|
+
'(-p --port)'{-p,--port}'[Port to serve on (e.g. 4010), or "auto" for a free one. Omitted, it prefers 3000 but falls back to a free port when that one is busy, so an omitted port is not guaranteed\: pass one to pin it, or read the bound port from --output ndjson'\''s "listening" event. Binds 127.0.0.1 only, so a caller in a container or VM cannot reach it.]:port' \
|
|
3426
3468
|
'--dataset[Dataset file or folder to load for pm.datasets (repeatable) (default\: \[\])]:pathOrDir:_files -g "*.json"' \
|
|
3427
3469
|
'(-w --workspace)'{-w,--workspace}'[Workspace for recording start history. Derived from a simulation id or the linked project; needed only for an unlinked .sim.yaml path.]:id' \
|
|
3428
3470
|
'--simulation[Simulation id to record start history against for a .sim.yaml path (a local file has only a name). Not needed when running by simulation id, or when the file is linked to a cloud simulation (via workspace push).]:id' \
|
|
@@ -3431,12 +3473,13 @@ _postman_simulation_run() {
|
|
|
3431
3473
|
'--output[Live output format\: auto (default, human-readable logs) or ndjson (one JSON event per line on stdout, ending with a "summary" event — for CI or other non-interactive use) (default\: "auto")]:format' \
|
|
3432
3474
|
'--verbose[Show request and response headers and bodies for each request. By default each request prints one line, plus any applied scenario or error.]' \
|
|
3433
3475
|
'--proxy[Serve the mocks behind a local HTTP(S) forward proxy instead of one routed port, so a repo under test can point HTTP_PROXY/HTTPS_PROXY at it and reach each mock by hostname without code changes. Each mock is reached on the hostnames its `origin\:` declares; a request to any other host reaches the real host unchanged.]' \
|
|
3434
|
-
'--proxy-port[Port for the proxy server. Distinct from --port, which is the one-port run'\''s own port.
|
|
3435
|
-
'--scenario[Scenario each mock serves, sent as both pm-mock-scenario and x-mock-scenario. (default\: "default")]:name' \
|
|
3476
|
+
'--proxy-port[Port for the proxy server, or "auto" for a free one. Omitted, it prefers 7001 but falls back to a free port when that one is busy, so an omitted port is not guaranteed\: pass one to pin it, or read the bound port from the startup banner. A port passed here exits 1 when it is busy. Distinct from --port, which is the one-port run'\''s own port. Bound to 127.0.0.1, so point clients there rather than at "localhost" — a client that resolves localhost to \:\:1 first will not reach it.]:port' \
|
|
3477
|
+
'--scenario[Scenario each mock serves, sent as both pm-mock-scenario and x-mock-scenario. A member that defines no scenario by this name serves its default. (default\: "default")]:name' \
|
|
3436
3478
|
'--session[Session id to select via the x-mock-session header (default\: a generated id).]:id' \
|
|
3437
|
-
'--log-format[Proxy request log format\: text or json. (default\: "text")]:format' \
|
|
3479
|
+
'--log-format[Proxy request log format\: text or json. Each line carries the method, host, path, destination (a routeKey, or "passthrough"), status and duration; json adds a timestamp, the scenario and the session. (default\: "text")]:format' \
|
|
3438
3480
|
'--log-body[Also log each response body (truncated). Buffers full responses in memory; meant for temporary debugging, not left on by default.]' \
|
|
3439
3481
|
'--doctor[Start the proxy, probe each available HTTP client (fetch/undici/axios/node-fetch) to confirm it honors HTTP_PROXY/HTTPS_PROXY, then exit.]' \
|
|
3482
|
+
'--lift[Start this command behind the proxy with HTTP_PROXY, HTTPS_PROXY and NODE_EXTRA_CA_CERTS already set in its environment, instead of printing them for you to export by hand. Runs as a child process, so the variables reach the code making the calls rather than the CLI. The proxy lives exactly as long as the command and exits with its exit code.]:cmd' \
|
|
3440
3483
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
3441
3484
|
'*:simIdOrPath:'
|
|
3442
3485
|
}
|
|
@@ -3500,6 +3543,13 @@ _postman_simulation_delete() {
|
|
|
3500
3543
|
'*:simIdOrPath:'
|
|
3501
3544
|
}
|
|
3502
3545
|
|
|
3546
|
+
_postman_status() {
|
|
3547
|
+
_arguments \
|
|
3548
|
+
'--json[Print status as machine-readable JSON.]' \
|
|
3549
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
3550
|
+
'*:dir-path:_files -/'
|
|
3551
|
+
}
|
|
3552
|
+
|
|
3503
3553
|
_postman_team() {
|
|
3504
3554
|
local context state state_descr line
|
|
3505
3555
|
typeset -A opt_args
|