postman-cli-completion 1.90.0 → 1.93.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- # Bash completion for Postman CLI (postman v1.90.0)
1
+ # Bash completion for Postman CLI (postman v1.93.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 fn globals mock monitor request runner sdk spec workspace ws context-graph describe init search skills login logout signup whoami application app dependency feedback mcp performance secret simulation status team update webhook"
25
+ local top_commands="api collection dataset environment flows fl fn globals mock monitor request runner sdk spec workspace ws agent context-graph describe init search skills login logout signup whoami application app dependency feedback mcp 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=""
@@ -60,6 +60,7 @@ _postman() {
60
60
  sdk) _postman_sdk ;;
61
61
  spec) _postman_spec ;;
62
62
  workspace|ws) _postman_workspace ;;
63
+ agent) _postman_agent ;;
63
64
  context-graph) _postman_context_graph ;;
64
65
  describe) _postman_describe ;;
65
66
  init) _postman_init ;;
@@ -510,7 +511,7 @@ _postman_collection_list() {
510
511
 
511
512
  _postman_collection_run() {
512
513
  if [[ "$cur" == -* ]]; then
513
- COMPREPLY=( $(compgen -W "-e --environment -g --globals --output -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 --allow-stdio --ssl-client-cert-list --ssl-client-cert --ssl-client-key --ssl-client-passphrase --ssl-extra-ca-certs --cookie-jar --export-cookie-jar --verbose --port --use-mock --simulation -w --workspace --report-events --no-report-events -h --help" -- "$cur") )
514
+ COMPREPLY=( $(compgen -W "-e --environment -g --globals --output --upload-request-bodies --no-upload-request-bodies --upload-response-bodies --no-upload-response-bodies --upload-headers --no-upload-headers --upload-payloads-on-failure-only --no-upload-payloads-on-failure-only --upload-all-headers-and-bodies --no-upload-all-headers-and-bodies -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 --allow-stdio --ssl-client-cert-list --ssl-client-cert --ssl-client-key --ssl-client-passphrase --ssl-extra-ca-certs --cookie-jar --export-cookie-jar --verbose --port --use-mock --simulation -w --workspace --report-events --no-report-events -h --help" -- "$cur") )
514
515
  return 0
515
516
  fi
516
517
  case "$prev" in
@@ -1653,12 +1654,13 @@ _postman_request() {
1653
1654
  if [[ "$cur" == -* ]]; then
1654
1655
  COMPREPLY=( $(compgen -W "-H --header -d --body -f --form -e --environment --timeout --redirects-ignore --redirects-max --redirects-follow-method --redirects-remove-referrer -k --insecure --ssl-client-cert-list --ssl-client-cert --ssl-client-key --ssl-client-passphrase --ssl-extra-ca-certs --cookie-jar --export-cookie-jar --retry --retry-delay --script-pre-request --script-post-request --dataset -o --output --verbose --response-only --debug --report-events --no-report-events -h --help --auth-basic-username --auth-basic-password --auth-bearer-token --auth-digest-username --auth-digest-password --auth-oauth1-consumerKey --auth-oauth1-consumerSecret --auth-oauth1-token --auth-oauth1-tokenSecret --auth-oauth2-accessToken --auth-oauth2-tokenType --auth-hawk-authId --auth-hawk-authKey --auth-hawk-algorithm --auth-aws-accessKey --auth-aws-secretKey --auth-aws-region --auth-aws-service --auth-aws-sessionToken --auth-ntlm-username --auth-ntlm-password --auth-ntlm-domain --auth-ntlm-workstation --auth-apikey-key --auth-apikey-value --auth-apikey-in" -- "$cur") )
1655
1656
  else
1656
- COMPREPLY=( $(compgen -W "grpc" -- "$cur") )
1657
+ COMPREPLY=( $(compgen -W "grpc graphql" -- "$cur") )
1657
1658
  fi
1658
1659
  return 0
1659
1660
  fi
1660
1661
  case "$subcmd" in
1661
1662
  grpc) _postman_request_grpc ;;
1663
+ graphql) _postman_request_graphql ;;
1662
1664
  esac
1663
1665
  }
1664
1666
 
@@ -1680,6 +1682,18 @@ _postman_request_grpc() {
1680
1682
  esac
1681
1683
  }
1682
1684
 
1685
+ _postman_request_graphql() {
1686
+ if [[ "$cur" == -* ]]; then
1687
+ COMPREPLY=( $(compgen -W "--url --query --variables --operation-name --introspect --schema --script-before-query --script-after-response --json -h --help" -- "$cur") )
1688
+ return 0
1689
+ fi
1690
+ case "$prev" in
1691
+ --schema)
1692
+ _postman_filematch '!*.@(json)' "$cur"
1693
+ return 0 ;;
1694
+ esac
1695
+ }
1696
+
1683
1697
  _postman_runner() {
1684
1698
  if [[ -z "$subcmd" ]]; then
1685
1699
  if [[ "$cur" == -* ]]; then
@@ -2222,6 +2236,99 @@ _postman_workspace_diff() {
2222
2236
  esac
2223
2237
  }
2224
2238
 
2239
+ _postman_agent() {
2240
+ if [[ -z "$subcmd" ]]; then
2241
+ if [[ "$cur" == -* ]]; then
2242
+ COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
2243
+ else
2244
+ COMPREPLY=( $(compgen -W "discovery-hints plugins" -- "$cur") )
2245
+ fi
2246
+ return 0
2247
+ fi
2248
+ case "$subcmd" in
2249
+ discovery-hints) _postman_agent_discovery_hints ;;
2250
+ plugins) _postman_agent_plugins ;;
2251
+ esac
2252
+ }
2253
+
2254
+ _postman_agent_discovery_hints() {
2255
+ if [[ -z "$subcmd" ]]; then
2256
+ if [[ "$cur" == -* ]]; then
2257
+ COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
2258
+ else
2259
+ COMPREPLY=( $(compgen -W "add status remove" -- "$cur") )
2260
+ fi
2261
+ return 0
2262
+ fi
2263
+ case "$subcmd" in
2264
+ add) _postman_agent_discovery_hints_add ;;
2265
+ status) _postman_agent_discovery_hints_status ;;
2266
+ remove) _postman_agent_discovery_hints_remove ;;
2267
+ esac
2268
+ }
2269
+
2270
+ _postman_agent_discovery_hints_add() {
2271
+ if [[ "$cur" == -* ]]; then
2272
+ COMPREPLY=( $(compgen -W "--json -h --help" -- "$cur") )
2273
+ return 0
2274
+ fi
2275
+ }
2276
+
2277
+ _postman_agent_discovery_hints_status() {
2278
+ if [[ "$cur" == -* ]]; then
2279
+ COMPREPLY=( $(compgen -W "--json -h --help" -- "$cur") )
2280
+ return 0
2281
+ fi
2282
+ }
2283
+
2284
+ _postman_agent_discovery_hints_remove() {
2285
+ if [[ "$cur" == -* ]]; then
2286
+ COMPREPLY=( $(compgen -W "--json -h --help" -- "$cur") )
2287
+ return 0
2288
+ fi
2289
+ }
2290
+
2291
+ _postman_agent_plugins() {
2292
+ if [[ -z "$subcmd" ]]; then
2293
+ if [[ "$cur" == -* ]]; then
2294
+ COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
2295
+ else
2296
+ COMPREPLY=( $(compgen -W "install status remove" -- "$cur") )
2297
+ fi
2298
+ return 0
2299
+ fi
2300
+ case "$subcmd" in
2301
+ install) _postman_agent_plugins_install ;;
2302
+ status) _postman_agent_plugins_status ;;
2303
+ remove) _postman_agent_plugins_remove ;;
2304
+ esac
2305
+ }
2306
+
2307
+ _postman_agent_plugins_install() {
2308
+ if [[ "$cur" == -* ]]; then
2309
+ COMPREPLY=( $(compgen -W "--agent -y --yes --dry-run --timeout -h --help" -- "$cur") )
2310
+ return 0
2311
+ fi
2312
+ case "$prev" in
2313
+ esac
2314
+ }
2315
+
2316
+ _postman_agent_plugins_status() {
2317
+ if [[ "$cur" == -* ]]; then
2318
+ COMPREPLY=( $(compgen -W "--json -h --help" -- "$cur") )
2319
+ return 0
2320
+ fi
2321
+ }
2322
+
2323
+ _postman_agent_plugins_remove() {
2324
+ if [[ "$cur" == -* ]]; then
2325
+ COMPREPLY=( $(compgen -W "--agent -y --yes --dry-run --timeout -h --help" -- "$cur") )
2326
+ return 0
2327
+ fi
2328
+ case "$prev" in
2329
+ esac
2330
+ }
2331
+
2225
2332
  _postman_context_graph() {
2226
2333
  if [[ -z "$subcmd" ]]; then
2227
2334
  if [[ "$cur" == -* ]]; then
@@ -2507,7 +2614,7 @@ _postman_search() {
2507
2614
  if [[ "$cur" == -* ]]; then
2508
2615
  COMPREPLY=( $(compgen -W "--ownership -n --limit --cursor -o --output --filter --filter-json -h --help" -- "$cur") )
2509
2616
  else
2510
- COMPREPLY=( $(compgen -W "requests collections workspaces flows specs mocks environments documents" -- "$cur") )
2617
+ COMPREPLY=( $(compgen -W "requests collections workspaces flows specs mocks environments documents datasets" -- "$cur") )
2511
2618
  fi
2512
2619
  return 0
2513
2620
  fi
@@ -2520,6 +2627,7 @@ _postman_search() {
2520
2627
  mocks) _postman_search_mocks ;;
2521
2628
  environments) _postman_search_environments ;;
2522
2629
  documents) _postman_search_documents ;;
2630
+ datasets) _postman_search_datasets ;;
2523
2631
  esac
2524
2632
  }
2525
2633
 
@@ -2579,6 +2687,13 @@ _postman_search_documents() {
2579
2687
  fi
2580
2688
  }
2581
2689
 
2690
+ _postman_search_datasets() {
2691
+ if [[ "$cur" == -* ]]; then
2692
+ COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
2693
+ return 0
2694
+ fi
2695
+ }
2696
+
2582
2697
  _postman_skills() {
2583
2698
  if [[ -z "$subcmd" ]]; then
2584
2699
  if [[ "$cur" == -* ]]; then
@@ -2612,7 +2727,7 @@ _postman_skills_update() {
2612
2727
 
2613
2728
  _postman_login() {
2614
2729
  if [[ "$cur" == -* ]]; then
2615
- COMPREPLY=( $(compgen -W "--alias --with-api-key --region --migrate-guest-workspace --no-migrate-guest-workspace --verbose -h --help" -- "$cur") )
2730
+ COMPREPLY=( $(compgen -W "--alias --with-api-key --region --claim --no-claim --verbose -h --help" -- "$cur") )
2616
2731
  return 0
2617
2732
  fi
2618
2733
  case "$prev" in
@@ -3279,7 +3394,7 @@ _postman_simulation_get() {
3279
3394
 
3280
3395
  _postman_simulation_run() {
3281
3396
  if [[ "$cur" == -* ]]; then
3282
- 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") )
3397
+ COMPREPLY=( $(compgen -W "-e --environment -g --globals -p --port --dataset -w --workspace --simulation --api-key --no-history --output --verbose --max-live-mocks --proxy --proxy-port --scenario --session --log-format --log-body --doctor --lift -h --help" -- "$cur") )
3283
3398
  return 0
3284
3399
  fi
3285
3400
  case "$prev" in
@@ -3590,7 +3705,7 @@ _postman_webhook_scripts_set() {
3590
3705
 
3591
3706
  _postman_webhook_forward() {
3592
3707
  if [[ "$cur" == -* ]]; then
3593
- COMPREPLY=( $(compgen -W "-w --workspace --api-key -h --help" -- "$cur") )
3708
+ COMPREPLY=( $(compgen -W "--https -w --workspace --api-key -h --help" -- "$cur") )
3594
3709
  return 0
3595
3710
  fi
3596
3711
  case "$prev" in
@@ -1,10 +1,10 @@
1
- # Fish completion for Postman CLI (postman v1.90.0)
1
+ # Fish completion for Postman CLI (postman v1.93.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 fn globals mock monitor request runner sdk spec workspace ws context-graph describe init search skills login logout signup whoami application app dependency feedback mcp performance secret simulation status team update webhook
7
+ not __fish_seen_subcommand_from api collection dataset environment flows fl fn globals mock monitor request runner sdk spec workspace ws agent context-graph describe init search skills login logout signup whoami application app dependency feedback mcp performance secret simulation status team update webhook
8
8
  end
9
9
 
10
10
  function __postman_using_subcommand
@@ -37,6 +37,7 @@ complete -c postman -n __postman_no_subcommand -a sdk -d 'Generate and manage yo
37
37
  complete -c postman -n __postman_no_subcommand -a spec -d 'Lint and validate specifications from the command line'
38
38
  complete -c postman -n __postman_no_subcommand -a workspace -d 'Manage workspace resources'
39
39
  complete -c postman -n __postman_no_subcommand -a ws -d 'Alias for workspace'
40
+ complete -c postman -n __postman_no_subcommand -a agent -d 'Manage CLI discovery hints for coding agents and plugins.'
40
41
  complete -c postman -n __postman_no_subcommand -a context-graph -d 'Ask natural-language questions about your team\'s Context Graph'
41
42
  complete -c postman -n __postman_no_subcommand -a describe -d 'Get API context for AI coding agents directly from the command line'
42
43
  complete -c postman -n __postman_no_subcommand -a init -d 'Set up Postman artifacts and agent instructions in a repository'
@@ -340,6 +341,16 @@ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_
340
341
  complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -s e -l environment -d 'Specify an Id or path to a Postman Environment' -r
341
342
  complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -s g -l globals -d 'Specify an Id or path to a file containing Postman Globals' -r
342
343
  complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -l output -d 'Write a YAML-based run report to the given folder. Creates a paired `<prefix>.collection-run-summary.yaml` (refreshed during the run) and streaming `<prefix>.collection-run-executions.yaml`, where prefix defaults to `<collection-slug>-<timestamp>`. Gotcha: --output streams run data to file, which keeps large runs from buffering an entire report in memory.' -x
344
+ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -l upload-request-bodies -d '[Optional] Upload request bodies with run data. Type: boolean, Default value: false'
345
+ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -l no-upload-request-bodies -d 'Do not upload request bodies with run data'
346
+ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -l upload-response-bodies -d '[Optional] Upload response bodies with run data. Type: boolean, Default value: false'
347
+ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -l no-upload-response-bodies -d 'Do not upload response bodies with run data'
348
+ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -l upload-headers -d '[Optional] Upload request and response headers with run data. The values of authorization, proxy-authorization, cookie, set-cookie, x-api-key, x-auth-token and x-access-token are always replaced with [redacted]. Matching is by exact header name, so a vendor-specific auth header is not covered. Type: boolean, Default value: false'
349
+ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -l no-upload-headers -d 'Do not upload request or response headers with run data'
350
+ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -l upload-payloads-on-failure-only -d '[Optional] Only upload payloads for requests that errored, failed an assertion, or returned a 4xx/5xx. Recommended for large runs. Type: boolean, Default value: false'
351
+ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -l no-upload-payloads-on-failure-only -d 'Upload payloads for all requests, not just failures'
352
+ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -l upload-all-headers-and-bodies -d '[Optional] Upload request and response headers, as well as request and response bodies, with run data. Overrides the individual --upload-* flags. Type: boolean, Default value: false'
353
+ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -l no-upload-all-headers-and-bodies -d 'Do not apply the --upload-all-headers-and-bodies override; the individual --upload-* flags decide'
343
354
  complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -s n -l iteration-count -d 'Define the number of iterations to run' -x
344
355
  complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -s d -l iteration-data -d 'Specify a data file to use for iterations (either JSON or CSV)' -r
345
356
  complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -l iteration-data-dataset -d 'Path to a .dataset.yaml (local collection) or a cloud dataset id (cloud collection) whose view drives the iteration data. Mutually exclusive with --iteration-data. Requires --iteration-data-view.' -r
@@ -834,7 +845,7 @@ complete -c postman -n '__fish_seen_subcommand_from globals; and __fish_seen_sub
834
845
 
835
846
  # ---------- mock ----------
836
847
  complete -c postman -n '__postman_using_subcommand mock generate run stop push deploy get list log delete' -a generate -d 'Generate a mock from a Postman collection, an OpenAPI file or a dataset, or a static mock from a built-in sample shopping cart (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.'
837
- complete -c postman -n '__postman_using_subcommand mock generate run stop 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).'
848
+ complete -c postman -n '__postman_using_subcommand mock generate run stop push deploy get list log delete' -a run -d 'Start a mock using its path if it lives in your repository, or its id or <slug>.mock.<teamDomain> if it lives in Postman cloud (fetched and run locally).'
838
849
  complete -c postman -n '__postman_using_subcommand mock generate run stop push deploy get list log delete' -a stop -d 'Stop a mock started with `postman mock run` on this machine, and wait until it has exited and released its port.'
839
850
  complete -c postman -n '__postman_using_subcommand mock generate run stop 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).'
840
851
  complete -c postman -n '__postman_using_subcommand mock generate run stop 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.'
@@ -1077,7 +1088,8 @@ complete -c postman -n '__fish_seen_subcommand_from monitor; and __fish_seen_sub
1077
1088
  complete -c postman -n '__fish_seen_subcommand_from monitor; and __fish_seen_subcommand_from share' -s h -l help -d 'display help for command'
1078
1089
 
1079
1090
  # ---------- request ----------
1080
- complete -c postman -n '__postman_using_subcommand request grpc' -a grpc -d 'Invoke a gRPC method, or list and describe the methods a server exposes. The service definition comes from server reflection unless --proto or --protoset is given.'
1091
+ complete -c postman -n '__postman_using_subcommand request grpc graphql' -a grpc -d 'Invoke a gRPC method, or list and describe the methods a server exposes. The service definition comes from server reflection unless --proto or --protoset is given.'
1092
+ complete -c postman -n '__postman_using_subcommand request grpc graphql' -a graphql -d 'Send a GraphQL query, mutation, or subscription, or inspect its schema. Uses the same GraphQL runtime as the Postman workbench.'
1081
1093
  complete -c postman -n '__fish_seen_subcommand_from request' -s H -l header -d 'Add HTTP header in key:value format. Can be used multiple times. Example: -H "Content-Type:application/json" -H "X-API-Key:abc123" (default: [])' -x
1082
1094
  complete -c postman -n '__fish_seen_subcommand_from request' -s d -l body -d 'Request body content. Supports: inline string, @filepath for file content, or "-" for stdin. Example: --body \'{"name":"John"}\' or --body @data.json' -x
1083
1095
  complete -c postman -n '__fish_seen_subcommand_from request' -s f -l form -d 'Add multipart/form-data field in key=value format. Can be used multiple times. For file uploads use key=@filepath. Example: -f "name=John" -f "avatar=@photo.jpg" (default: [])' -x
@@ -1147,6 +1159,17 @@ complete -c postman -n '__fish_seen_subcommand_from request; and __fish_seen_sub
1147
1159
  complete -c postman -n '__fish_seen_subcommand_from request; and __fish_seen_subcommand_from grpc' -l script-on-message -d 'Script run on every response message as it arrives. Inline JavaScript or @path. pm.message holds the message.' -x
1148
1160
  complete -c postman -n '__fish_seen_subcommand_from request; and __fish_seen_subcommand_from grpc' -l script-after-response -d 'Script run once the call has ended. Inline JavaScript or @path. pm.response holds the status, metadata and messages; pm.test() results are reported.' -x
1149
1161
  complete -c postman -n '__fish_seen_subcommand_from request; and __fish_seen_subcommand_from grpc' -s h -l help -d 'display help for command'
1162
+ # ---------- request graphql ----------
1163
+ complete -c postman -n '__fish_seen_subcommand_from request; and __fish_seen_subcommand_from graphql' -l url -d 'Override the saved endpoint URL. Supports {{variables}}.' -x
1164
+ complete -c postman -n '__fish_seen_subcommand_from request; and __fish_seen_subcommand_from graphql' -l query -d 'GraphQL document, inline, @path, or - for stdin. Overrides the saved query.' -x
1165
+ complete -c postman -n '__fish_seen_subcommand_from request; and __fish_seen_subcommand_from graphql' -l variables -d 'Variables, inline JSON, @path, or - for stdin. Overrides saved variables.' -x
1166
+ complete -c postman -n '__fish_seen_subcommand_from request; and __fish_seen_subcommand_from graphql' -l operation-name -d 'Operation to execute when a document contains multiple operations.' -x
1167
+ complete -c postman -n '__fish_seen_subcommand_from request; and __fish_seen_subcommand_from graphql' -l introspect -d 'Print the schema as SDL instead of executing a query. Scripts are skipped.'
1168
+ complete -c postman -n '__fish_seen_subcommand_from request; and __fish_seen_subcommand_from graphql' -l schema -d 'Import an SDL or introspection JSON schema from a file or HTTP(S) URL. Used for query validation, or with --introspect to inspect the imported schema.' -r
1169
+ complete -c postman -n '__fish_seen_subcommand_from request; and __fish_seen_subcommand_from graphql' -l script-before-query -d 'Before-query JavaScript, inline or @path. Supports pm.* APIs.' -x
1170
+ complete -c postman -n '__fish_seen_subcommand_from request; and __fish_seen_subcommand_from graphql' -l script-after-response -d 'After-response JavaScript, inline or @path. pm.test() assertions affect the exit code.' -x
1171
+ complete -c postman -n '__fish_seen_subcommand_from request; and __fish_seen_subcommand_from graphql' -l json -d 'Print response JSON, or newline-delimited response and summary events for streams. With --introspect, print introspection JSON.'
1172
+ complete -c postman -n '__fish_seen_subcommand_from request; and __fish_seen_subcommand_from graphql' -s h -l help -d 'display help for command'
1150
1173
 
1151
1174
  # ---------- runner ----------
1152
1175
  complete -c postman -n '__postman_using_subcommand runner start list regions' -a start -d 'Start a self-hosted runner in your own network.'
@@ -1467,6 +1490,45 @@ complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_s
1467
1490
  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
1468
1491
  complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from diff' -s h -l help -d 'display help for command'
1469
1492
 
1493
+ # ---------- agent ----------
1494
+ complete -c postman -n '__postman_using_subcommand agent discovery-hints plugins' -a discovery-hints -d 'Manage CLI discovery hints for coding agents in global Claude Code and Codex instructions.'
1495
+ complete -c postman -n '__postman_using_subcommand agent discovery-hints plugins' -a plugins -d 'Install, inspect, or remove Postman plugins in coding agents.'
1496
+ complete -c postman -n '__fish_seen_subcommand_from agent' -s h -l help -d 'display help for command'
1497
+ # ---------- agent discovery-hints ----------
1498
+ complete -c postman -n '__postman_using_subcommand discovery-hints add status remove' -a add -d 'Add CLI discovery hints for agents and remember this choice.'
1499
+ complete -c postman -n '__postman_using_subcommand discovery-hints add status remove' -a status -d 'Inspect CLI discovery hints for agents.'
1500
+ complete -c postman -n '__postman_using_subcommand discovery-hints add status remove' -a remove -d 'Remove CLI discovery hints for agents and remember this choice.'
1501
+ complete -c postman -n '__fish_seen_subcommand_from agent; and __fish_seen_subcommand_from discovery-hints' -s h -l help -d 'display help for command'
1502
+ # ---------- agent discovery-hints add ----------
1503
+ complete -c postman -n '__fish_seen_subcommand_from agent; and __fish_seen_subcommand_from discovery-hints; and __fish_seen_subcommand_from add' -l json -d 'Print machine-readable results.'
1504
+ complete -c postman -n '__fish_seen_subcommand_from agent; and __fish_seen_subcommand_from discovery-hints; and __fish_seen_subcommand_from add' -s h -l help -d 'display help for command'
1505
+ # ---------- agent discovery-hints status ----------
1506
+ complete -c postman -n '__fish_seen_subcommand_from agent; and __fish_seen_subcommand_from discovery-hints; and __fish_seen_subcommand_from status' -l json -d 'Print machine-readable results.'
1507
+ complete -c postman -n '__fish_seen_subcommand_from agent; and __fish_seen_subcommand_from discovery-hints; and __fish_seen_subcommand_from status' -s h -l help -d 'display help for command'
1508
+ # ---------- agent discovery-hints remove ----------
1509
+ complete -c postman -n '__fish_seen_subcommand_from agent; and __fish_seen_subcommand_from discovery-hints; and __fish_seen_subcommand_from remove' -l json -d 'Print machine-readable results.'
1510
+ complete -c postman -n '__fish_seen_subcommand_from agent; and __fish_seen_subcommand_from discovery-hints; and __fish_seen_subcommand_from remove' -s h -l help -d 'display help for command'
1511
+ # ---------- agent plugins ----------
1512
+ complete -c postman -n '__postman_using_subcommand plugins install status remove' -a install -d 'install Postman plugins.'
1513
+ complete -c postman -n '__postman_using_subcommand plugins install status remove' -a status -d 'status Postman plugins.'
1514
+ complete -c postman -n '__postman_using_subcommand plugins install status remove' -a remove -d 'remove Postman plugins.'
1515
+ complete -c postman -n '__fish_seen_subcommand_from agent; and __fish_seen_subcommand_from plugins' -s h -l help -d 'display help for command'
1516
+ # ---------- agent plugins install ----------
1517
+ complete -c postman -n '__fish_seen_subcommand_from agent; and __fish_seen_subcommand_from plugins; and __fish_seen_subcommand_from install' -l agent -d 'Limit changes to one agent: antigravity, claude-code, codex, copilot, cursor, factory, kimi, opencode, pi.' -x
1518
+ complete -c postman -n '__fish_seen_subcommand_from agent; and __fish_seen_subcommand_from plugins; and __fish_seen_subcommand_from install' -s y -l yes -d 'Confirm plugin changes without prompting.'
1519
+ complete -c postman -n '__fish_seen_subcommand_from agent; and __fish_seen_subcommand_from plugins; and __fish_seen_subcommand_from install' -l dry-run -d 'Preview changes without modifying agent settings.'
1520
+ complete -c postman -n '__fish_seen_subcommand_from agent; and __fish_seen_subcommand_from plugins; and __fish_seen_subcommand_from install' -l timeout -d 'Plugin installer timeout in milliseconds. (default: "300000")' -x
1521
+ complete -c postman -n '__fish_seen_subcommand_from agent; and __fish_seen_subcommand_from plugins; and __fish_seen_subcommand_from install' -s h -l help -d 'display help for command'
1522
+ # ---------- agent plugins status ----------
1523
+ complete -c postman -n '__fish_seen_subcommand_from agent; and __fish_seen_subcommand_from plugins; and __fish_seen_subcommand_from status' -l json -d 'Print machine-readable plugin status.'
1524
+ complete -c postman -n '__fish_seen_subcommand_from agent; and __fish_seen_subcommand_from plugins; and __fish_seen_subcommand_from status' -s h -l help -d 'display help for command'
1525
+ # ---------- agent plugins remove ----------
1526
+ complete -c postman -n '__fish_seen_subcommand_from agent; and __fish_seen_subcommand_from plugins; and __fish_seen_subcommand_from remove' -l agent -d 'Limit changes to one agent: antigravity, claude-code, codex, copilot, cursor, factory, kimi, opencode, pi.' -x
1527
+ complete -c postman -n '__fish_seen_subcommand_from agent; and __fish_seen_subcommand_from plugins; and __fish_seen_subcommand_from remove' -s y -l yes -d 'Confirm plugin changes without prompting.'
1528
+ complete -c postman -n '__fish_seen_subcommand_from agent; and __fish_seen_subcommand_from plugins; and __fish_seen_subcommand_from remove' -l dry-run -d 'Preview changes without modifying agent settings.'
1529
+ complete -c postman -n '__fish_seen_subcommand_from agent; and __fish_seen_subcommand_from plugins; and __fish_seen_subcommand_from remove' -l timeout -d 'Plugin installer timeout in milliseconds. (default: "300000")' -x
1530
+ complete -c postman -n '__fish_seen_subcommand_from agent; and __fish_seen_subcommand_from plugins; and __fish_seen_subcommand_from remove' -s h -l help -d 'display help for command'
1531
+
1470
1532
  # ---------- context-graph ----------
1471
1533
  complete -c postman -n '__postman_using_subcommand context-graph ask status ingest' -a ask -d 'Ask a natural-language question about your team\'s Context Graph.'
1472
1534
  complete -c postman -n '__postman_using_subcommand context-graph ask status ingest' -a status -d 'Check an ask submitted by `ask`, without blocking. Prints the answer when ready.'
@@ -1577,14 +1639,15 @@ complete -c postman -n '__fish_seen_subcommand_from init' -s h -l help -d 'displ
1577
1639
  complete -c postman -n '__fish_seen_subcommand_from init' -r -k -a '(__fish_complete_suffix .json)'
1578
1640
 
1579
1641
  # ---------- search ----------
1580
- complete -c postman -n '__postman_using_subcommand search requests collections workspaces flows specs mocks environments documents' -a requests -d 'Search for requests by name or keyword.'
1581
- complete -c postman -n '__postman_using_subcommand search requests collections workspaces flows specs mocks environments documents' -a collections -d 'Search for collections by name or keyword.'
1582
- complete -c postman -n '__postman_using_subcommand search requests collections workspaces flows specs mocks environments documents' -a workspaces -d 'Search for workspaces by name or keyword.'
1583
- complete -c postman -n '__postman_using_subcommand search requests collections workspaces flows specs mocks environments documents' -a flows -d 'Search for flows by name or keyword.'
1584
- complete -c postman -n '__postman_using_subcommand search requests collections workspaces flows specs mocks environments documents' -a specs -d 'Search for API specs by name or keyword.'
1585
- complete -c postman -n '__postman_using_subcommand search requests collections workspaces flows specs mocks environments documents' -a mocks -d 'Search for mocks by name or keyword.'
1586
- complete -c postman -n '__postman_using_subcommand search requests collections workspaces flows specs mocks environments documents' -a environments -d 'Search for environments by name or keyword.'
1587
- complete -c postman -n '__postman_using_subcommand search requests collections workspaces flows specs mocks environments documents' -a documents -d 'Search for documents by name or keyword.'
1642
+ complete -c postman -n '__postman_using_subcommand search requests collections workspaces flows specs mocks environments documents datasets' -a requests -d 'Search for requests by name or keyword.'
1643
+ complete -c postman -n '__postman_using_subcommand search requests collections workspaces flows specs mocks environments documents datasets' -a collections -d 'Search for collections by name or keyword.'
1644
+ complete -c postman -n '__postman_using_subcommand search requests collections workspaces flows specs mocks environments documents datasets' -a workspaces -d 'Search for workspaces by name or keyword.'
1645
+ complete -c postman -n '__postman_using_subcommand search requests collections workspaces flows specs mocks environments documents datasets' -a flows -d 'Search for flows by name or keyword.'
1646
+ complete -c postman -n '__postman_using_subcommand search requests collections workspaces flows specs mocks environments documents datasets' -a specs -d 'Search for API specs by name or keyword.'
1647
+ complete -c postman -n '__postman_using_subcommand search requests collections workspaces flows specs mocks environments documents datasets' -a mocks -d 'Search for mocks by name or keyword.'
1648
+ complete -c postman -n '__postman_using_subcommand search requests collections workspaces flows specs mocks environments documents datasets' -a environments -d 'Search for environments by name or keyword.'
1649
+ complete -c postman -n '__postman_using_subcommand search requests collections workspaces flows specs mocks environments documents datasets' -a documents -d 'Search for documents by name or keyword.'
1650
+ complete -c postman -n '__postman_using_subcommand search requests collections workspaces flows specs mocks environments documents datasets' -a datasets -d 'Search for datasets by name or keyword.'
1588
1651
  complete -c postman -n '__fish_seen_subcommand_from search' -l ownership -d 'Ownership: organization (or org), external, all (default: "organization")' -x
1589
1652
  complete -c postman -n '__fish_seen_subcommand_from search' -s n -l limit -d 'Max results per page. Max allowed limit: 25 (default: 10)' -x
1590
1653
  complete -c postman -n '__fish_seen_subcommand_from search' -l cursor -d 'Cursor for pagination' -x
@@ -1608,6 +1671,8 @@ complete -c postman -n '__fish_seen_subcommand_from search; and __fish_seen_subc
1608
1671
  complete -c postman -n '__fish_seen_subcommand_from search; and __fish_seen_subcommand_from environments' -s h -l help -d 'display help for command'
1609
1672
  # ---------- search documents ----------
1610
1673
  complete -c postman -n '__fish_seen_subcommand_from search; and __fish_seen_subcommand_from documents' -s h -l help -d 'display help for command'
1674
+ # ---------- search datasets ----------
1675
+ complete -c postman -n '__fish_seen_subcommand_from search; and __fish_seen_subcommand_from datasets' -s h -l help -d 'display help for command'
1611
1676
 
1612
1677
  # ---------- skills ----------
1613
1678
  complete -c postman -n '__postman_using_subcommand skills status update' -a status -d 'Report whether this repository\'s skills are up to date.'
@@ -1629,8 +1694,8 @@ complete -c postman -n '__fish_seen_subcommand_from skills; and __fish_seen_subc
1629
1694
  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
1630
1695
  complete -c postman -n '__fish_seen_subcommand_from login' -l with-api-key -d 'Specify the API key directly.' -x
1631
1696
  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'
1632
- 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 after the previous session has ended (for example after a logout).'
1633
- complete -c postman -n '__fish_seen_subcommand_from login' -l no-migrate-guest-workspace -d 'Do not copy local work into the account you sign in to. By default local work is copied.'
1697
+ complete -c postman -n '__fish_seen_subcommand_from login' -l claim -d 'Move the work from your temporary session on this machine into the team you sign in to, without asking. Needed to move it when there is no terminal to ask in (an agent, CI, a pipe).'
1698
+ complete -c postman -n '__fish_seen_subcommand_from login' -l no-claim -d 'Don\'t move the work from your temporary session on this machine, and don\'t ask. By default you are asked once you have signed in.'
1634
1699
  complete -c postman -n '__fish_seen_subcommand_from login' -l verbose -d 'Show detailed error information'
1635
1700
  complete -c postman -n '__fish_seen_subcommand_from login' -s h -l help -d 'display help for command'
1636
1701
 
@@ -2003,7 +2068,7 @@ complete -c postman -n '__fish_seen_subcommand_from secret; and __fish_seen_subc
2003
2068
  complete -c postman -n '__postman_using_subcommand simulation create list get run stop push deploy update log delete' -a create -d 'Create a simulation that serves several mocks behind one address. Add --deploy to also make it a live mock server.'
2004
2069
  complete -c postman -n '__postman_using_subcommand simulation create list get run stop push deploy update log delete' -a list -d 'List the simulations in your repository or Postman cloud workspace'
2005
2070
  complete -c postman -n '__postman_using_subcommand simulation create list get run stop push deploy update log delete' -a get -d 'Show a simulation\'s details using its .sim.yaml path if it lives in your repository, or its id if it lives in Postman cloud.'
2006
- complete -c postman -n '__postman_using_subcommand simulation create list get run stop push deploy update log delete' -a run -d 'Serve a simulation\'s mocks on one local port, routing each by its routeKey. Pass a .sim.yaml path (local) or a Postman simulation id (fetched and run locally).'
2071
+ complete -c postman -n '__postman_using_subcommand simulation create list get run stop push deploy update log delete' -a run -d 'Serve a simulation\'s mocks on one local port, routing each by its routeKey. Pass a .sim.yaml path (local), a Postman simulation id, or <slug>.mock.<teamDomain> (fetched and run locally).'
2007
2072
  complete -c postman -n '__postman_using_subcommand simulation create list get run stop push deploy update log delete' -a stop -d 'Stop a simulation started with `postman simulation run` on this machine, and wait until it has exited and released its port.'
2008
2073
  complete -c postman -n '__postman_using_subcommand simulation create list get run stop push deploy update log delete' -a push -d 'Upload a simulation from your repository to Postman cloud (creates it the first time, updates it after). Its member mocks are pushed too.'
2009
2074
  complete -c postman -n '__postman_using_subcommand simulation create list get run stop push deploy update log delete' -a deploy -d 'Turn a simulation in Postman cloud into a live mock server others can call over the internet.'
@@ -2045,6 +2110,7 @@ complete -c postman -n '__fish_seen_subcommand_from simulation; and __fish_seen_
2045
2110
  complete -c postman -n '__fish_seen_subcommand_from simulation; and __fish_seen_subcommand_from run' -l no-history -d 'Do not record this run in the simulation\'s start history'
2046
2111
  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
2047
2112
  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.'
2113
+ complete -c postman -n '__fish_seen_subcommand_from simulation; and __fish_seen_subcommand_from run' -l max-live-mocks -d 'How many of the simulation\'s mocks may run at once. Each mock starts on its first request and stays running; once this many are running, starting another stops the least recently used idle one first, and it starts again on its next request. A mock holding data is never stopped, so a simulation whose mocks all hold data can refuse a request with 503 at this limit. Defaults to what this machine\'s memory allows.' -x
2048
2114
  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.'
2049
2115
  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
2050
2116
  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
@@ -2183,6 +2249,7 @@ complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_sub
2183
2249
  complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from scripts; and __fish_seen_subcommand_from set' -l api-key -d 'Postman API key' -r
2184
2250
  complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from scripts; and __fish_seen_subcommand_from set' -s h -l help -d 'display help for command'
2185
2251
  # ---------- webhook forward ----------
2252
+ complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from forward' -l https -d 'Use HTTPS for the local listener; accepts self-signed certificates.'
2186
2253
  complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from forward' -s w -l workspace -d 'Postman workspace ID' -x
2187
2254
  complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from forward' -l api-key -d 'Postman API key' -r
2188
2255
  complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from forward' -s h -l help -d 'display help for command'
@@ -1,6 +1,6 @@
1
1
  #compdef postman
2
2
  compdef _postman postman
3
- # Zsh completion for Postman CLI (postman v1.90.0)
3
+ # Zsh completion for Postman CLI (postman v1.93.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
@@ -34,6 +34,7 @@ _postman() {
34
34
  sdk) _postman_sdk ;;
35
35
  spec) _postman_spec ;;
36
36
  workspace|ws) _postman_workspace ;;
37
+ agent) _postman_agent ;;
37
38
  context-graph) _postman_context_graph ;;
38
39
  describe) _postman_describe ;;
39
40
  init) _postman_init ;;
@@ -78,6 +79,7 @@ _postman_commands() {
78
79
  'spec:Lint and validate specifications from the command line'
79
80
  'workspace:Manage workspace resources'
80
81
  'ws:Alias for workspace'
82
+ 'agent:Manage CLI discovery hints for coding agents and plugins.'
81
83
  'context-graph:Ask natural-language questions about your team'\''s Context Graph'
82
84
  'describe:Get API context for AI coding agents directly from the command line'
83
85
  'init:Set up Postman artifacts and agent instructions in a repository'
@@ -656,6 +658,16 @@ _postman_collection_run() {
656
658
  '(-e --environment)'{-e,--environment}'[Specify an Id or path to a Postman Environment]:path:_files -g "*.json"' \
657
659
  '(-g --globals)'{-g,--globals}'[Specify an Id or path to a file containing Postman Globals]:path:_files -g "*.json"' \
658
660
  '--output[Write a YAML-based run report to the given folder. Creates a paired `<prefix>.collection-run-summary.yaml` (refreshed during the run) and streaming `<prefix>.collection-run-executions.yaml`, where prefix defaults to `<collection-slug>-<timestamp>`. Gotcha\: --output streams run data to file, which keeps large runs from buffering an entire report in memory.]:folder' \
661
+ '--upload-request-bodies[\[Optional\] Upload request bodies with run data. Type\: boolean, Default value\: false]' \
662
+ '--no-upload-request-bodies[Do not upload request bodies with run data]' \
663
+ '--upload-response-bodies[\[Optional\] Upload response bodies with run data. Type\: boolean, Default value\: false]' \
664
+ '--no-upload-response-bodies[Do not upload response bodies with run data]' \
665
+ '--upload-headers[\[Optional\] Upload request and response headers with run data. The values of authorization, proxy-authorization, cookie, set-cookie, x-api-key, x-auth-token and x-access-token are always replaced with \[redacted\]. Matching is by exact header name, so a vendor-specific auth header is not covered. Type\: boolean, Default value\: false]' \
666
+ '--no-upload-headers[Do not upload request or response headers with run data]' \
667
+ '--upload-payloads-on-failure-only[\[Optional\] Only upload payloads for requests that errored, failed an assertion, or returned a 4xx/5xx. Recommended for large runs. Type\: boolean, Default value\: false]' \
668
+ '--no-upload-payloads-on-failure-only[Upload payloads for all requests, not just failures]' \
669
+ '--upload-all-headers-and-bodies[\[Optional\] Upload request and response headers, as well as request and response bodies, with run data. Overrides the individual --upload-* flags. Type\: boolean, Default value\: false]' \
670
+ '--no-upload-all-headers-and-bodies[Do not apply the --upload-all-headers-and-bodies override; the individual --upload-* flags decide]' \
659
671
  '(-n --iteration-count)'{-n,--iteration-count}'[Define the number of iterations to run]:n' \
660
672
  '(-d --iteration-data)'{-d,--iteration-data}'[Specify a data file to use for iterations (either JSON or CSV)]:path:_files -g "*.(json|csv)"' \
661
673
  '--iteration-data-dataset[Path to a .dataset.yaml (local collection) or a cloud dataset id (cloud collection) whose view drives the iteration data. Mutually exclusive with --iteration-data. Requires --iteration-data-view.]:pathOrId:_files -g "*.(json|csv)"' \
@@ -1570,7 +1582,7 @@ _postman_mock_commands() {
1570
1582
  local -a sub
1571
1583
  sub=(
1572
1584
  'generate:Generate a mock from a Postman collection, an OpenAPI file or a dataset, or a static mock from a built-in sample shopping cart (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.'
1573
- '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).'
1585
+ 'run:Start a mock using its path if it lives in your repository, or its id or <slug>.mock.<teamDomain> if it lives in Postman cloud (fetched and run locally).'
1574
1586
  'stop:Stop a mock started with `postman mock run` on this machine, and wait until it has exited and released its port.'
1575
1587
  'push:Upload a mock from your repository to Postman cloud (creates it the first time, updates it after).'
1576
1588
  'deploy:Turn a mock in Postman cloud into a live mock server others can call over the internet.'
@@ -2031,6 +2043,7 @@ _postman_request() {
2031
2043
  args)
2032
2044
  case $words[1] in
2033
2045
  grpc) _postman_request_grpc ;;
2046
+ graphql) _postman_request_graphql ;;
2034
2047
  esac
2035
2048
  ;;
2036
2049
  esac
@@ -2040,6 +2053,7 @@ _postman_request_commands() {
2040
2053
  local -a sub
2041
2054
  sub=(
2042
2055
  'grpc:Invoke a gRPC method, or list and describe the methods a server exposes. The service definition comes from server reflection unless --proto or --protoset is given.'
2056
+ 'graphql:Send a GraphQL query, mutation, or subscription, or inspect its schema. Uses the same GraphQL runtime as the Postman workbench.'
2043
2057
  )
2044
2058
  _describe -t commands 'request command' sub
2045
2059
  }
@@ -2061,6 +2075,21 @@ _postman_request_grpc() {
2061
2075
  '*:method:'
2062
2076
  }
2063
2077
 
2078
+ _postman_request_graphql() {
2079
+ _arguments \
2080
+ '--url[Override the saved endpoint URL. Supports {{variables}}.]:url' \
2081
+ '--query[GraphQL document, inline, @path, or - for stdin. Overrides the saved query.]:query' \
2082
+ '--variables[Variables, inline JSON, @path, or - for stdin. Overrides saved variables.]:json' \
2083
+ '--operation-name[Operation to execute when a document contains multiple operations.]:name' \
2084
+ '--introspect[Print the schema as SDL instead of executing a query. Scripts are skipped.]' \
2085
+ '--schema[Import an SDL or introspection JSON schema from a file or HTTP(S) URL. Used for query validation, or with --introspect to inspect the imported schema.]:pathOrUrl:_files -g "*.json"' \
2086
+ '--script-before-query[Before-query JavaScript, inline or @path. Supports pm.* APIs.]:script' \
2087
+ '--script-after-response[After-response JavaScript, inline or @path. pm.test() assertions affect the exit code.]:script' \
2088
+ '--json[Print response JSON, or newline-delimited response and summary events for streams. With --introspect, print introspection JSON.]' \
2089
+ '(-h --help)'{-h,--help}'[display help for command]' \
2090
+ '*:urlOrFile:'
2091
+ }
2092
+
2064
2093
  _postman_runner() {
2065
2094
  local context state state_descr line
2066
2095
  typeset -A opt_args
@@ -2708,6 +2737,130 @@ _postman_workspace_diff() {
2708
2737
  '*:workspaceId:'
2709
2738
  }
2710
2739
 
2740
+ _postman_agent() {
2741
+ local context state state_descr line
2742
+ typeset -A opt_args
2743
+ _arguments -C \
2744
+ '(-h --help)'{-h,--help}'[display help for command]' \
2745
+ '1: :_postman_agent_commands' \
2746
+ '*::arg:->args'
2747
+ case $state in
2748
+ args)
2749
+ case $words[1] in
2750
+ discovery-hints) _postman_agent_discovery_hints ;;
2751
+ plugins) _postman_agent_plugins ;;
2752
+ esac
2753
+ ;;
2754
+ esac
2755
+ }
2756
+
2757
+ _postman_agent_commands() {
2758
+ local -a sub
2759
+ sub=(
2760
+ 'discovery-hints:Manage CLI discovery hints for coding agents in global Claude Code and Codex instructions.'
2761
+ 'plugins:Install, inspect, or remove Postman plugins in coding agents.'
2762
+ )
2763
+ _describe -t commands 'agent command' sub
2764
+ }
2765
+
2766
+ _postman_agent_discovery_hints() {
2767
+ local context state state_descr line
2768
+ typeset -A opt_args
2769
+ _arguments -C \
2770
+ '(-h --help)'{-h,--help}'[display help for command]' \
2771
+ '1: :_postman_agent_discovery_hints_commands' \
2772
+ '*::arg:->args'
2773
+ case $state in
2774
+ args)
2775
+ case $words[1] in
2776
+ add) _postman_agent_discovery_hints_add ;;
2777
+ status) _postman_agent_discovery_hints_status ;;
2778
+ remove) _postman_agent_discovery_hints_remove ;;
2779
+ esac
2780
+ ;;
2781
+ esac
2782
+ }
2783
+
2784
+ _postman_agent_discovery_hints_commands() {
2785
+ local -a sub
2786
+ sub=(
2787
+ 'add:Add CLI discovery hints for agents and remember this choice.'
2788
+ 'status:Inspect CLI discovery hints for agents.'
2789
+ 'remove:Remove CLI discovery hints for agents and remember this choice.'
2790
+ )
2791
+ _describe -t commands 'discovery-hints command' sub
2792
+ }
2793
+
2794
+ _postman_agent_discovery_hints_add() {
2795
+ _arguments \
2796
+ '--json[Print machine-readable results.]' \
2797
+ '(-h --help)'{-h,--help}'[display help for command]'
2798
+ }
2799
+
2800
+ _postman_agent_discovery_hints_status() {
2801
+ _arguments \
2802
+ '--json[Print machine-readable results.]' \
2803
+ '(-h --help)'{-h,--help}'[display help for command]'
2804
+ }
2805
+
2806
+ _postman_agent_discovery_hints_remove() {
2807
+ _arguments \
2808
+ '--json[Print machine-readable results.]' \
2809
+ '(-h --help)'{-h,--help}'[display help for command]'
2810
+ }
2811
+
2812
+ _postman_agent_plugins() {
2813
+ local context state state_descr line
2814
+ typeset -A opt_args
2815
+ _arguments -C \
2816
+ '(-h --help)'{-h,--help}'[display help for command]' \
2817
+ '1: :_postman_agent_plugins_commands' \
2818
+ '*::arg:->args'
2819
+ case $state in
2820
+ args)
2821
+ case $words[1] in
2822
+ install) _postman_agent_plugins_install ;;
2823
+ status) _postman_agent_plugins_status ;;
2824
+ remove) _postman_agent_plugins_remove ;;
2825
+ esac
2826
+ ;;
2827
+ esac
2828
+ }
2829
+
2830
+ _postman_agent_plugins_commands() {
2831
+ local -a sub
2832
+ sub=(
2833
+ 'install:install Postman plugins.'
2834
+ 'status:status Postman plugins.'
2835
+ 'remove:remove Postman plugins.'
2836
+ )
2837
+ _describe -t commands 'plugins command' sub
2838
+ }
2839
+
2840
+ _postman_agent_plugins_install() {
2841
+ _arguments \
2842
+ '--agent[Limit changes to one agent\: antigravity, claude-code, codex, copilot, cursor, factory, kimi, opencode, pi.]:id' \
2843
+ '(-y --yes)'{-y,--yes}'[Confirm plugin changes without prompting.]' \
2844
+ '--dry-run[Preview changes without modifying agent settings.]' \
2845
+ '--timeout[Plugin installer timeout in milliseconds. (default\: "300000")]:ms' \
2846
+ '(-h --help)'{-h,--help}'[display help for command]'
2847
+ }
2848
+
2849
+ _postman_agent_plugins_status() {
2850
+ _arguments \
2851
+ '--json[Print machine-readable plugin status.]' \
2852
+ '(-h --help)'{-h,--help}'[display help for command]'
2853
+ }
2854
+
2855
+ _postman_agent_plugins_remove() {
2856
+ _arguments \
2857
+ '--agent[Limit changes to one agent\: antigravity, claude-code, codex, copilot, cursor, factory, kimi, opencode, pi.]:id' \
2858
+ '(-y --yes)'{-y,--yes}'[Confirm plugin changes without prompting.]' \
2859
+ '--dry-run[Preview changes without modifying agent settings.]' \
2860
+ '--timeout[Plugin installer timeout in milliseconds. (default\: "300000")]:ms' \
2861
+ '(-h --help)'{-h,--help}'[display help for command]'
2862
+ }
2863
+
2711
2864
  _postman_context_graph() {
2712
2865
  local context state state_descr line
2713
2866
  typeset -A opt_args
@@ -3084,6 +3237,7 @@ _postman_search() {
3084
3237
  mocks) _postman_search_mocks ;;
3085
3238
  environments) _postman_search_environments ;;
3086
3239
  documents) _postman_search_documents ;;
3240
+ datasets) _postman_search_datasets ;;
3087
3241
  esac
3088
3242
  ;;
3089
3243
  esac
@@ -3100,6 +3254,7 @@ _postman_search_commands() {
3100
3254
  'mocks:Search for mocks by name or keyword.'
3101
3255
  'environments:Search for environments by name or keyword.'
3102
3256
  'documents:Search for documents by name or keyword.'
3257
+ 'datasets:Search for datasets by name or keyword.'
3103
3258
  )
3104
3259
  _describe -t commands 'search command' sub
3105
3260
  }
@@ -3152,6 +3307,12 @@ _postman_search_documents() {
3152
3307
  '*:query:'
3153
3308
  }
3154
3309
 
3310
+ _postman_search_datasets() {
3311
+ _arguments \
3312
+ '(-h --help)'{-h,--help}'[display help for command]' \
3313
+ '*:query:'
3314
+ }
3315
+
3155
3316
  _postman_skills() {
3156
3317
  local context state state_descr line
3157
3318
  typeset -A opt_args
@@ -3200,8 +3361,8 @@ _postman_login() {
3200
3361
  '--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' \
3201
3362
  '--with-api-key[Specify the API key directly.]:apikey' \
3202
3363
  '--region[Specify the region for authentication. Use "eu" for EU region.]:region:(us eu)' \
3203
- '--migrate-guest-workspace[Copy this repository'\''s local work into a new workspace in the account you sign in to, even after the previous session has ended (for example after a logout).]' \
3204
- '--no-migrate-guest-workspace[Do not copy local work into the account you sign in to. By default local work is copied.]' \
3364
+ '--claim[Move the work from your temporary session on this machine into the team you sign in to, without asking. Needed to move it when there is no terminal to ask in (an agent, CI, a pipe).]' \
3365
+ '--no-claim[Don'\''t move the work from your temporary session on this machine, and don'\''t ask. By default you are asked once you have signed in.]' \
3205
3366
  '--verbose[Show detailed error information]' \
3206
3367
  '(-h --help)'{-h,--help}'[display help for command]'
3207
3368
  }
@@ -3900,7 +4061,7 @@ _postman_simulation_commands() {
3900
4061
  'create:Create a simulation that serves several mocks behind one address. Add --deploy to also make it a live mock server.'
3901
4062
  'list:List the simulations in your repository or Postman cloud workspace'
3902
4063
  'get:Show a simulation'\''s details using its .sim.yaml path if it lives in your repository, or its id if it lives in Postman cloud.'
3903
- 'run:Serve a simulation'\''s mocks on one local port, routing each by its routeKey. Pass a .sim.yaml path (local) or a Postman simulation id (fetched and run locally).'
4064
+ 'run:Serve a simulation'\''s mocks on one local port, routing each by its routeKey. Pass a .sim.yaml path (local), a Postman simulation id, or <slug>.mock.<teamDomain> (fetched and run locally).'
3904
4065
  'stop:Stop a simulation started with `postman simulation run` on this machine, and wait until it has exited and released its port.'
3905
4066
  'push:Upload a simulation from your repository to Postman cloud (creates it the first time, updates it after). Its member mocks are pushed too.'
3906
4067
  'deploy:Turn a simulation in Postman cloud into a live mock server others can call over the internet.'
@@ -3956,6 +4117,7 @@ _postman_simulation_run() {
3956
4117
  '--no-history[Do not record this run in the simulation'\''s start history]' \
3957
4118
  '--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' \
3958
4119
  '--verbose[Show request and response headers and bodies for each request. By default each request prints one line, plus any applied scenario or error.]' \
4120
+ '--max-live-mocks[How many of the simulation'\''s mocks may run at once. Each mock starts on its first request and stays running; once this many are running, starting another stops the least recently used idle one first, and it starts again on its next request. A mock holding data is never stopped, so a simulation whose mocks all hold data can refuse a request with 503 at this limit. Defaults to what this machine'\''s memory allows.]:count' \
3959
4121
  '--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.]' \
3960
4122
  '--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' \
3961
4123
  '--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' \
@@ -4261,6 +4423,7 @@ _postman_webhook_scripts_set() {
4261
4423
 
4262
4424
  _postman_webhook_forward() {
4263
4425
  _arguments \
4426
+ '--https[Use HTTPS for the local listener; accepts self-signed certificates.]' \
4264
4427
  '(-w --workspace)'{-w,--workspace}'[Postman workspace ID]:workspaceId' \
4265
4428
  '--api-key[Postman API key]:key:_files -g "*.(pem|crt|key)"' \
4266
4429
  '(-h --help)'{-h,--help}'[display help for command]' \
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "postman-cli-completion",
3
- "version": "1.90.0",
3
+ "version": "1.93.0",
4
4
  "description": "Shell completions for the Postman CLI (zsh, bash, fish)",
5
5
  "type": "module",
6
6
  "bin": {