postman-cli-completion 1.76.0 → 1.80.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 +83 -18
- package/completions/fish/postman.fish +178 -128
- package/completions/zsh/_postman +157 -84
- package/package.json +1 -1
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.80.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'
|
|
@@ -163,6 +165,7 @@ _postman_collection() {
|
|
|
163
165
|
publish) _postman_collection_publish ;;
|
|
164
166
|
generate) _postman_collection_generate ;;
|
|
165
167
|
sync) _postman_collection_sync ;;
|
|
168
|
+
share) _postman_collection_share ;;
|
|
166
169
|
request) _postman_collection_request ;;
|
|
167
170
|
folder) _postman_collection_folder ;;
|
|
168
171
|
example) _postman_collection_example ;;
|
|
@@ -186,6 +189,7 @@ _postman_collection_commands() {
|
|
|
186
189
|
'publish:Publish a cloud collection'\''s documentation (or request Community Manager approval).'
|
|
187
190
|
'generate:Generate artifacts from a collection.'
|
|
188
191
|
'sync:Sync artifacts generated from a collection.'
|
|
192
|
+
'share:Grant a role on a collection to one or more people.'
|
|
189
193
|
'request:Add, get, update, or remove requests in a local v3 collection.'
|
|
190
194
|
'folder:Add, get, update, or remove folders in a local v3 collection.'
|
|
191
195
|
'example:Add, update, remove, get, or list examples (saved responses) under a request.'
|
|
@@ -329,6 +333,17 @@ _postman_collection_sync_spec() {
|
|
|
329
333
|
'*:collection:_files -g "*.json"'
|
|
330
334
|
}
|
|
331
335
|
|
|
336
|
+
_postman_collection_share() {
|
|
337
|
+
_arguments \
|
|
338
|
+
'--user[Who to share with. Repeatable, and each value may be a comma-separated list. A value containing @ is treated as an email address, anything else as a Postman user id.]:email|id' \
|
|
339
|
+
'--role[The role to grant. (default\: "viewer")]:viewer|editor' \
|
|
340
|
+
'--json[Print the outcome as machine-readable JSON.]' \
|
|
341
|
+
'--timeout[Milliseconds to wait for Postman. Defaults to 30000.]:ms' \
|
|
342
|
+
'--api-key[Postman API key (defaults to your `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
343
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
344
|
+
'*:id:'
|
|
345
|
+
}
|
|
346
|
+
|
|
332
347
|
_postman_collection_request() {
|
|
333
348
|
local context state state_descr line
|
|
334
349
|
typeset -A opt_args
|
|
@@ -1046,6 +1061,7 @@ _postman_environment() {
|
|
|
1046
1061
|
new) _postman_environment_new ;;
|
|
1047
1062
|
list) _postman_environment_list ;;
|
|
1048
1063
|
get) _postman_environment_get ;;
|
|
1064
|
+
share) _postman_environment_share ;;
|
|
1049
1065
|
delete) _postman_environment_delete ;;
|
|
1050
1066
|
var) _postman_environment_var ;;
|
|
1051
1067
|
lint) _postman_environment_lint ;;
|
|
@@ -1060,6 +1076,7 @@ _postman_environment_commands() {
|
|
|
1060
1076
|
'new:Scaffold a local environment file, or create one in a Postman workspace with --workspace.'
|
|
1061
1077
|
'list:List environments in a Postman workspace.'
|
|
1062
1078
|
'get:Read an environment by ID or local environment file path.'
|
|
1079
|
+
'share:Grant a role on a cloud environment to one or more people.'
|
|
1063
1080
|
'delete:Delete an environment by ID or local environment file path. Prompts unless --yes is passed.'
|
|
1064
1081
|
'var:Read and update environment variables.'
|
|
1065
1082
|
'lint:Run linting on a local Postman environment at the given file or directory path.'
|
|
@@ -1095,6 +1112,17 @@ _postman_environment_get() {
|
|
|
1095
1112
|
'*:environment:_files -g "*.json"'
|
|
1096
1113
|
}
|
|
1097
1114
|
|
|
1115
|
+
_postman_environment_share() {
|
|
1116
|
+
_arguments \
|
|
1117
|
+
'--user[Who to share with. Repeatable, and each value may be a comma-separated list. A value containing @ is treated as an email address, anything else as a Postman user id.]:email|id' \
|
|
1118
|
+
'--role[The role to grant. (default\: "viewer")]:viewer|editor' \
|
|
1119
|
+
'--json[Print the outcome as machine-readable JSON.]' \
|
|
1120
|
+
'--timeout[Milliseconds to wait for Postman. Defaults to 30000.]:ms' \
|
|
1121
|
+
'--api-key[Postman API key (defaults to your `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
1122
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
1123
|
+
'*:environmentId:_files -g "*.json"'
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1098
1126
|
_postman_environment_delete() {
|
|
1099
1127
|
_arguments \
|
|
1100
1128
|
'(-y --yes)'{-y,--yes}'[Delete without asking for confirmation first]' \
|
|
@@ -1449,7 +1477,7 @@ _postman_mock() {
|
|
|
1449
1477
|
_postman_mock_commands() {
|
|
1450
1478
|
local -a sub
|
|
1451
1479
|
sub=(
|
|
1452
|
-
'generate:Generate a mock from a Postman collection
|
|
1480
|
+
'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.'
|
|
1453
1481
|
'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).'
|
|
1454
1482
|
'push:Upload a mock from your repository to Postman cloud (creates it the first time, updates it after).'
|
|
1455
1483
|
'deploy:Turn a mock in Postman cloud into a live mock server others can call over the internet.'
|
|
@@ -1466,15 +1494,21 @@ _postman_mock_generate() {
|
|
|
1466
1494
|
'(-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"' \
|
|
1467
1495
|
'(-n --name)'{-n,--name}'[Name for the mock. Taken from the source when you provide one; required for the sample.]:name' \
|
|
1468
1496
|
'--port[Port the mock runs on (e.g. 4010) (default\: 4500)]:port' \
|
|
1469
|
-
'--
|
|
1497
|
+
'--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' \
|
|
1498
|
+
'--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.]' \
|
|
1499
|
+
'--instructions[With --mode ai\: guidance for the AI, e.g. "Orders can only be cancelled before they ship".]:text' \
|
|
1500
|
+
'--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' \
|
|
1501
|
+
'--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"' \
|
|
1502
|
+
'--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' \
|
|
1470
1503
|
'--force[Overwrite the mock'\''s files if the target folder already has one]' \
|
|
1471
|
-
'(-u --update)'{-u,--update}'[
|
|
1504
|
+
'(-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"' \
|
|
1472
1505
|
'(-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' \
|
|
1473
1506
|
'--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.]' \
|
|
1474
1507
|
'--public[With --deploy, let anyone with the link reach the server (default\: callers need an API key)]' \
|
|
1475
1508
|
'(-s --slug)'{-s,--slug}'[With --deploy, the short label used in the server'\''s web address]:slug' \
|
|
1476
|
-
'--
|
|
1477
|
-
'--api-key[Postman API key
|
|
1509
|
+
'--timeout[How long to wait for Postman to generate the mock, in milliseconds (default 75000).]:ms' \
|
|
1510
|
+
'--api-key[Postman API key for anything Postman generates, saves or deploys (defaults to your `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
1511
|
+
'--json[Print the result as machine-readable data instead of a summary\: the generated mock, or with --deploy the live server details]' \
|
|
1478
1512
|
'(-x --suppress-exit-code)'{-x,--suppress-exit-code}'[Always exit with code 0, even on failure]' \
|
|
1479
1513
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
1480
1514
|
'*:sourcePath:'
|
|
@@ -1499,6 +1533,7 @@ _postman_mock_push() {
|
|
|
1499
1533
|
_arguments \
|
|
1500
1534
|
'(-w --workspace)'{-w,--workspace}'[Postman cloud workspace to upload to, by id (defaults to the workspace already linked to this project)]:id' \
|
|
1501
1535
|
'--api-key[Postman API key (defaults to your `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
1536
|
+
'--json[Print the result as machine-readable data]' \
|
|
1502
1537
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
1503
1538
|
'*:mockPath:_files -g "*.json"'
|
|
1504
1539
|
}
|
|
@@ -1520,7 +1555,7 @@ _postman_mock_deploy() {
|
|
|
1520
1555
|
_postman_mock_get() {
|
|
1521
1556
|
_arguments \
|
|
1522
1557
|
'--api-key[Postman API key (defaults to your `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
1523
|
-
'--json[Print the details as machine-readable data instead of a
|
|
1558
|
+
'--json[Print the details as machine-readable data instead of a summary]' \
|
|
1524
1559
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
1525
1560
|
'*:mockIdOrPath:_files -g "*.json"'
|
|
1526
1561
|
}
|
|
@@ -1552,6 +1587,7 @@ _postman_mock_delete() {
|
|
|
1552
1587
|
_arguments \
|
|
1553
1588
|
'(-y --yes)'{-y,--yes}'[Delete without asking for confirmation first]' \
|
|
1554
1589
|
'--api-key[Postman API key, used with a Postman cloud id (defaults to your `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
1590
|
+
'--json[Print the result as machine-readable data (requires --yes)]' \
|
|
1555
1591
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
1556
1592
|
'*:mockIdOrPath:_files -g "*.json"'
|
|
1557
1593
|
}
|
|
@@ -1577,6 +1613,7 @@ _postman_monitor() {
|
|
|
1577
1613
|
metrics) _postman_monitor_metrics ;;
|
|
1578
1614
|
pause) _postman_monitor_pause ;;
|
|
1579
1615
|
resume) _postman_monitor_resume ;;
|
|
1616
|
+
share) _postman_monitor_share ;;
|
|
1580
1617
|
esac
|
|
1581
1618
|
;;
|
|
1582
1619
|
esac
|
|
@@ -1585,17 +1622,18 @@ _postman_monitor() {
|
|
|
1585
1622
|
_postman_monitor_commands() {
|
|
1586
1623
|
local -a sub
|
|
1587
1624
|
sub=(
|
|
1588
|
-
'run:
|
|
1625
|
+
'run:Run a monitor now and report the result.'
|
|
1589
1626
|
'create:Create a collection-based monitor.'
|
|
1590
1627
|
'update:Update a monitor'\''s schedule, runner, notifications, request selection or run options.'
|
|
1591
1628
|
'delete:Permanently delete a monitor. Prompts for confirmation unless --yes is passed.'
|
|
1592
|
-
'jobs:Inspect a monitor'\''s jobs and their per-
|
|
1593
|
-
'runs:Inspect a monitor
|
|
1594
|
-
'list:List the monitors visible to you.'
|
|
1595
|
-
'get:Show a monitor'\''s configuration.'
|
|
1629
|
+
'jobs:Inspect a monitor'\''s jobs (also called executions) and their per-runner runs.'
|
|
1630
|
+
'runs:Inspect one run of a monitor job\: its requests, assertions and attempts.'
|
|
1631
|
+
'list:List the monitors visible to you, one page at a time.'
|
|
1632
|
+
'get:Show a monitor'\''s configuration and its last run.'
|
|
1596
1633
|
'metrics:Show per-request latency and outcome history for a monitor.'
|
|
1597
1634
|
'pause:Pause a monitor, so it stops firing on schedule.'
|
|
1598
1635
|
'resume:Resume a paused monitor, so it fires on schedule again.'
|
|
1636
|
+
'share:Grant a role on a monitor to one or more people.'
|
|
1599
1637
|
)
|
|
1600
1638
|
_describe -t commands 'monitor command' sub
|
|
1601
1639
|
}
|
|
@@ -1603,28 +1641,28 @@ _postman_monitor_commands() {
|
|
|
1603
1641
|
_postman_monitor_run() {
|
|
1604
1642
|
_arguments \
|
|
1605
1643
|
'--api-key[Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session, then a guest session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
1606
|
-
'(-x --suppress-exit-code)'{-x,--suppress-exit-code}'[
|
|
1607
|
-
'(-t --timeout)'{-t,--timeout}'[
|
|
1608
|
-
'--async[Submit the run and
|
|
1609
|
-
'--json[
|
|
1644
|
+
'(-x --suppress-exit-code)'{-x,--suppress-exit-code}'[Always exit 0, whatever the run'\''s result or the failure]' \
|
|
1645
|
+
'(-t --timeout)'{-t,--timeout}'[How long to wait for the run to finish, in milliseconds (default\: 900000)]:ms' \
|
|
1646
|
+
'--async[Submit the run and print its job id and Postman URL without waiting for it to finish]' \
|
|
1647
|
+
'--json[Print { state, monitorId, jobId, url, stats } as JSON, and nothing else]' \
|
|
1610
1648
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
1611
1649
|
'*:monitorId:'
|
|
1612
1650
|
}
|
|
1613
1651
|
|
|
1614
1652
|
_postman_monitor_create() {
|
|
1615
1653
|
_arguments \
|
|
1616
|
-
'(-c --collection)'{-c,--collection}'[Collection to monitor
|
|
1654
|
+
'(-c --collection)'{-c,--collection}'[Collection to monitor\: its id or uid, from the Postman app or `postman collection list`]:id' \
|
|
1617
1655
|
'--name[Monitor name (defaults to the linked collection'\''s own name)]:name' \
|
|
1618
|
-
'(-e --environment)'{-e,--environment}'[Environment to run the
|
|
1619
|
-
'(-w --workspace)'{-w,--workspace}'[Workspace to create the monitor in (defaults to the workspace named in the local .postman/resources.yaml manifest; required if neither is available)]:id' \
|
|
1620
|
-
'--schedule[Cron expression for the monitor'\''s schedule]:cron' \
|
|
1656
|
+
'(-e --environment)'{-e,--environment}'[Environment to run the collection with\: its uid, from the Postman app or `postman environment list`]:id' \
|
|
1657
|
+
'(-w --workspace)'{-w,--workspace}'[Workspace to create the monitor in, from `postman workspace list` (defaults to the workspace named in the local .postman/resources.yaml manifest; required if neither is available)]:id' \
|
|
1658
|
+
'--schedule[Cron expression for the monitor'\''s schedule, five fields\: minute hour day-of-month month day-of-week, for example "0 9 * * MON". Leave month as * unless the monitor should run only in certain months; then write the month as a name (jan-dec)]:cron' \
|
|
1621
1659
|
'--timezone[Time zone for --schedule, for example America/New_York (defaults to the host machine'\''s own zone)]:tz' \
|
|
1622
1660
|
'--runner[A Postman region name (see `postman runner regions`) or the id of a self-hosted runner created in Postman (list existing ones with `postman runner list`) to run from (repeatable) (default\: \[\])]:value' \
|
|
1623
1661
|
'(-i --item)'{-i,--item}'[Id of a request or folder in the collection to run, in the order given (repeatable; ids only, not names or paths; defaults to every request; list ids with `postman collection get <collection-id> --json`) (default\: \[\])]:id' \
|
|
1624
1662
|
'--notify-email[Email to notify on a run failure or error (repeatable) (default\: \[\])]:email' \
|
|
1625
1663
|
'--notification-limit[Consecutive failure notifications to send before muting them]:n' \
|
|
1626
|
-
'--retry[Times to retry a failed run]:n' \
|
|
1627
|
-
'--timeout[
|
|
1664
|
+
'--retry[Times to retry a failed run\: --retry 2 allows up to 3 attempts]:n' \
|
|
1665
|
+
'--timeout[Per-request timeout the monitor applies when it runs, in milliseconds (this command does not wait for a run; `postman monitor run --timeout` sets how long that waits)]:ms' \
|
|
1628
1666
|
'--delay[Delay between requests in milliseconds]:ms' \
|
|
1629
1667
|
'--strict-ssl[Fail the run when the target'\''s TLS certificate cannot be verified]' \
|
|
1630
1668
|
'--insecure[Skip TLS certificate verification for the monitored target]' \
|
|
@@ -1636,25 +1674,25 @@ _postman_monitor_create() {
|
|
|
1636
1674
|
'--iteration-strategy[How iteration data is consumed, for example round_robin, repeat_last or stop_at_end (requires --iteration-count, --dataset-id and --dataset-view-id)]:strategy' \
|
|
1637
1675
|
'--no-run-now[Do not trigger an immediate run after creating the monitor]' \
|
|
1638
1676
|
'--api-key[Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session, then a guest session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
1639
|
-
'--json[
|
|
1677
|
+
'--json[Print the outcome, the created monitor'\''s id, uid, name and active state, and the job of its first run, as JSON]' \
|
|
1640
1678
|
'(-h --help)'{-h,--help}'[display help for command]'
|
|
1641
1679
|
}
|
|
1642
1680
|
|
|
1643
1681
|
_postman_monitor_update() {
|
|
1644
1682
|
_arguments \
|
|
1645
1683
|
'--name[New monitor name]:name' \
|
|
1646
|
-
'--schedule[New cron expression for the monitor'\''s schedule]:cron' \
|
|
1684
|
+
'--schedule[New cron expression for the monitor'\''s schedule, five fields\: minute hour day-of-month month day-of-week, for example "0 9 * * MON". Leave month as * unless the monitor should run only in certain months; then write the month as a name (jan-dec)]:cron' \
|
|
1647
1685
|
'--timezone[Time zone for --schedule, for example America/New_York (defaults to the host machine'\''s own zone)]:tz' \
|
|
1648
1686
|
'--runner[A Postman region name (see `postman runner regions`) or the id of a self-hosted runner created in Postman (list existing ones with `postman runner list`) to run from (repeatable; replaces the current set) (default\: \[\])]:value' \
|
|
1649
1687
|
'(-i --item)'{-i,--item}'[Id of a request or folder in the collection to run, in the order given (repeatable; ids only, not names or paths; replaces the saved selection; list ids with `postman collection get <collection-id> --json`) (default\: \[\])]:id' \
|
|
1650
1688
|
'--clear-items[Remove the saved selection so the monitor runs every request in its collection]' \
|
|
1651
1689
|
'--notify-email[Email to notify on a run failure or error (repeatable; replaces the current list) (default\: \[\])]:email' \
|
|
1652
1690
|
'--clear-notifications[Remove every notification recipient]' \
|
|
1653
|
-
'(-e --environment)'{-e,--environment}'[Environment to run the
|
|
1691
|
+
'(-e --environment)'{-e,--environment}'[Environment to run the collection with, replacing the current one\: its uid, from `postman environment list`]:id' \
|
|
1654
1692
|
'--clear-environment[Run the monitored collection with no environment]' \
|
|
1655
1693
|
'--notification-limit[Consecutive failure notifications to send before muting them]:n' \
|
|
1656
|
-
'--retry[Times to retry a failed run]:n' \
|
|
1657
|
-
'--timeout[
|
|
1694
|
+
'--retry[Times to retry a failed run\: --retry 2 allows up to 3 attempts]:n' \
|
|
1695
|
+
'--timeout[Per-request timeout the monitor applies when it runs, in milliseconds (this command does not wait for a run; `postman monitor run --timeout` sets how long that waits)]:ms' \
|
|
1658
1696
|
'--delay[Delay between requests in milliseconds]:ms' \
|
|
1659
1697
|
'--strict-ssl[Fail the run when the target'\''s TLS certificate cannot be verified]' \
|
|
1660
1698
|
'--insecure[Skip TLS certificate verification for the monitored target]' \
|
|
@@ -1665,16 +1703,16 @@ _postman_monitor_update() {
|
|
|
1665
1703
|
'--iteration-count[Number of iterations to run]:n' \
|
|
1666
1704
|
'--iteration-strategy[How iteration data is consumed, for example round_robin, repeat_last or stop_at_end (requires --iteration-count, --dataset-id and --dataset-view-id)]:strategy' \
|
|
1667
1705
|
'--api-key[Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session, then a guest session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
1668
|
-
'--json[
|
|
1706
|
+
'--json[Print the outcome and the monitor'\''s id, uid, name and active state as JSON]' \
|
|
1669
1707
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
1670
1708
|
'*:monitorId:'
|
|
1671
1709
|
}
|
|
1672
1710
|
|
|
1673
1711
|
_postman_monitor_delete() {
|
|
1674
1712
|
_arguments \
|
|
1675
|
-
'(-y --yes)'{-y,--yes}'[Skip the confirmation prompt]' \
|
|
1713
|
+
'(-y --yes)'{-y,--yes}'[Skip the confirmation prompt; required when there is no interactive terminal or with --silent]' \
|
|
1676
1714
|
'--api-key[Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session, then a guest session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
1677
|
-
'--json[
|
|
1715
|
+
'--json[Print the outcome (deleted or aborted) and the monitor id as JSON]' \
|
|
1678
1716
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
1679
1717
|
'*:monitorId:'
|
|
1680
1718
|
}
|
|
@@ -1699,29 +1737,29 @@ _postman_monitor_jobs() {
|
|
|
1699
1737
|
_postman_monitor_jobs_commands() {
|
|
1700
1738
|
local -a sub
|
|
1701
1739
|
sub=(
|
|
1702
|
-
'list:List a monitor'\''s recent jobs.'
|
|
1703
|
-
'get:
|
|
1740
|
+
'list:List a monitor'\''s recent jobs, newest first. A job (also called an execution) is one firing of the monitor, with one run per runner.'
|
|
1741
|
+
'get:Show one job (also called an execution) and the state, runner and duration of each of its runs. A run'\''s duration covers every attempt, including retries.'
|
|
1704
1742
|
)
|
|
1705
1743
|
_describe -t commands 'jobs command' sub
|
|
1706
1744
|
}
|
|
1707
1745
|
|
|
1708
1746
|
_postman_monitor_jobs_list() {
|
|
1709
1747
|
_arguments \
|
|
1710
|
-
'--api-key[Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
1711
|
-
'--result[
|
|
1712
|
-
'--trigger[
|
|
1748
|
+
'--api-key[Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session, then a guest session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
1749
|
+
'--result[Only jobs that finished in this state\: success, failure, error or abort; any other value is rejected before any request]:state' \
|
|
1750
|
+
'--trigger[Only jobs started by this trigger\: api, schedule, webhook or postman-cli; any other value is rejected before any request]:value' \
|
|
1713
1751
|
'--since[Only jobs that finished at or after this ISO 8601 date-time]:dateTime' \
|
|
1714
|
-
'--limit[
|
|
1715
|
-
'--cursor[
|
|
1716
|
-
'--json[
|
|
1752
|
+
'--limit[Jobs per page, 1-25 (default\: 25)]:n' \
|
|
1753
|
+
'--cursor[Page number to read, from the "Next page" line or `nextCursor` under --json of a previous listing; pass the same --limit and filters]:page' \
|
|
1754
|
+
'--json[Print { monitorId, jobs, nextCursor } as JSON, each job with its runs]' \
|
|
1717
1755
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
1718
1756
|
'*:monitorId:'
|
|
1719
1757
|
}
|
|
1720
1758
|
|
|
1721
1759
|
_postman_monitor_jobs_get() {
|
|
1722
1760
|
_arguments \
|
|
1723
|
-
'--api-key[Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
1724
|
-
'--json[
|
|
1761
|
+
'--api-key[Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session, then a guest session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
1762
|
+
'--json[Print the job as JSON, with each run'\''s state, runner, counts, duration and attempts]' \
|
|
1725
1763
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
1726
1764
|
'*:jobId:'
|
|
1727
1765
|
}
|
|
@@ -1745,17 +1783,17 @@ _postman_monitor_runs() {
|
|
|
1745
1783
|
_postman_monitor_runs_commands() {
|
|
1746
1784
|
local -a sub
|
|
1747
1785
|
sub=(
|
|
1748
|
-
'get:
|
|
1786
|
+
'get:Show one attempt of a run\: each request with its response or error, and its assertions, console lines and exceptions. A retried run has several attempts, numbered from 0; the latest is shown unless --attempt names another. Console, assertion and exception messages are the collection'\''s own output, printed as the run recorded them.'
|
|
1749
1787
|
)
|
|
1750
1788
|
_describe -t commands 'runs command' sub
|
|
1751
1789
|
}
|
|
1752
1790
|
|
|
1753
1791
|
_postman_monitor_runs_get() {
|
|
1754
1792
|
_arguments \
|
|
1755
|
-
'--api-key[Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
1756
|
-
'--attempt[Which attempt
|
|
1757
|
-
'--failed-only[Show only failed
|
|
1758
|
-
'--json[
|
|
1793
|
+
'--api-key[Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session, then a guest session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
1794
|
+
'--attempt[Which attempt to show, from 0 for the first (default\: the latest)]:n' \
|
|
1795
|
+
'--failed-only[Show only requests with a failed assertion, an exception or a network error]' \
|
|
1796
|
+
'--json[Print the run as JSON\: its state, attempt, assertion counts and every request with its entries]' \
|
|
1759
1797
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
1760
1798
|
'*:runId:'
|
|
1761
1799
|
}
|
|
@@ -1763,27 +1801,26 @@ _postman_monitor_runs_get() {
|
|
|
1763
1801
|
_postman_monitor_list() {
|
|
1764
1802
|
_arguments \
|
|
1765
1803
|
'--api-key[Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session, then a guest session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
1766
|
-
'(-w --workspace)'{-w,--workspace}'[
|
|
1767
|
-
'(-c --collection)'{-c,--collection}'[
|
|
1768
|
-
'(-e --environment)'{-e,--environment}'[
|
|
1769
|
-
'--runner[
|
|
1770
|
-
'--owner[
|
|
1771
|
-
'--
|
|
1772
|
-
'--
|
|
1773
|
-
'--
|
|
1774
|
-
'--
|
|
1775
|
-
'--
|
|
1776
|
-
'--
|
|
1777
|
-
'(-f --filter)'{-f,--filter}'[Show only monitors whose name contains this text (applies to the returned page, case-insensitive)]:text' \
|
|
1804
|
+
'(-w --workspace)'{-w,--workspace}'[Only monitors in this workspace (ids from `postman workspace list`)]:id' \
|
|
1805
|
+
'(-c --collection)'{-c,--collection}'[Only monitors on this collection\: its id or uid]:id' \
|
|
1806
|
+
'(-e --environment)'{-e,--environment}'[Only monitors on this environment\: its uid]:id' \
|
|
1807
|
+
'--runner[Only monitors on this self-hosted runner id, from `postman runner list` (not a Postman region). Cannot be combined with --workspace, --collection, --environment, --owner or --active]:id' \
|
|
1808
|
+
'--owner[Only monitors created by this user id\: the `owner` field under --json]:id' \
|
|
1809
|
+
'--active[Only active (true) or paused (false) monitors]:true|false' \
|
|
1810
|
+
'--limit[Monitors per page, 1-25]:n' \
|
|
1811
|
+
'--cursor[Page to read\: the cursor from the "Next page" line of a previous listing, or `nextCursor` under --json; pass the same filters and --limit]:token' \
|
|
1812
|
+
'--columns[Comma-separated columns to show. Defaults to Name, ID, State, Health, Schedule, Owner, Collection, dropping Collection, Owner, Schedule in that order when the table is wider than the terminal. Also available\: Environment, Runners, Notifications]:names' \
|
|
1813
|
+
'--no-headers[Omit the header row and its rule]' \
|
|
1814
|
+
'(-f --filter)'{-f,--filter}'[Only monitors whose name contains this text, case-insensitive (applies to the returned page)]:text' \
|
|
1778
1815
|
'--sort[Sort the returned page by "name" or "active"]:field' \
|
|
1779
|
-
'--json[
|
|
1816
|
+
'--json[Print { monitors, nextCursor } as JSON, every monitor field except lastRun present (null when unset); monitor get carries lastRun]' \
|
|
1780
1817
|
'(-h --help)'{-h,--help}'[display help for command]'
|
|
1781
1818
|
}
|
|
1782
1819
|
|
|
1783
1820
|
_postman_monitor_get() {
|
|
1784
1821
|
_arguments \
|
|
1785
1822
|
'--api-key[Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session, then a guest session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
1786
|
-
'--json[
|
|
1823
|
+
'--json[Print the monitor as JSON, every field present (null when unset)]' \
|
|
1787
1824
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
1788
1825
|
'*:monitorId:'
|
|
1789
1826
|
}
|
|
@@ -1794,8 +1831,8 @@ _postman_monitor_metrics() {
|
|
|
1794
1831
|
'--since[Only executions at or after this ISO 8601 date-time (defaults to 7 days ago)]:dateTime' \
|
|
1795
1832
|
'--until[Only executions at or before this ISO 8601 date-time (defaults to now)]:dateTime' \
|
|
1796
1833
|
'(-f --filter)'{-f,--filter}'[Show only requests whose name contains this text (case-insensitive)]:text' \
|
|
1797
|
-
'--limit[
|
|
1798
|
-
'--json[
|
|
1834
|
+
'--limit[Rows to show, any positive whole number\: the worst-behaving requests in the table, or the newest executions under --json. Applied after the results are fetched]:n' \
|
|
1835
|
+
'--json[Print { monitorId, window, metricsAvailable, executions } as JSON, one entry per request per job per runner]' \
|
|
1799
1836
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
1800
1837
|
'*:monitorId:'
|
|
1801
1838
|
}
|
|
@@ -1803,7 +1840,7 @@ _postman_monitor_metrics() {
|
|
|
1803
1840
|
_postman_monitor_pause() {
|
|
1804
1841
|
_arguments \
|
|
1805
1842
|
'--api-key[Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session, then a guest session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
1806
|
-
'--json[
|
|
1843
|
+
'--json[Print the outcome and the monitor'\''s id, uid, name and active state as JSON]' \
|
|
1807
1844
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
1808
1845
|
'*:monitorId:'
|
|
1809
1846
|
}
|
|
@@ -1811,7 +1848,18 @@ _postman_monitor_pause() {
|
|
|
1811
1848
|
_postman_monitor_resume() {
|
|
1812
1849
|
_arguments \
|
|
1813
1850
|
'--api-key[Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session, then a guest session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
1814
|
-
'--json[
|
|
1851
|
+
'--json[Print the outcome and the monitor'\''s id, uid, name and active state as JSON]' \
|
|
1852
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
1853
|
+
'*:monitorId:'
|
|
1854
|
+
}
|
|
1855
|
+
|
|
1856
|
+
_postman_monitor_share() {
|
|
1857
|
+
_arguments \
|
|
1858
|
+
'--user[Who to share with. Repeatable, and each value may be a comma-separated list. A value containing @ is treated as an email address, anything else as a Postman user id.]:email|id' \
|
|
1859
|
+
'--role[The role to grant. (default\: "viewer")]:viewer|editor' \
|
|
1860
|
+
'--json[Print the outcome as machine-readable JSON.]' \
|
|
1861
|
+
'--timeout[Milliseconds to wait for Postman. Defaults to 30000.]:ms' \
|
|
1862
|
+
'--api-key[Postman API key (defaults to your `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
1815
1863
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
1816
1864
|
'*:monitorId:'
|
|
1817
1865
|
}
|
|
@@ -1908,7 +1956,7 @@ _postman_runner_start() {
|
|
|
1908
1956
|
_arguments \
|
|
1909
1957
|
'--id[The ID of the runner to execute]:id' \
|
|
1910
1958
|
'--key[The secret key for the runner]:key:_files -g "*.(pem|crt|key)"' \
|
|
1911
|
-
'--region[
|
|
1959
|
+
'--region[Data residency of the Postman account the runner belongs to\: "us" (default) or "eu". This is not a monitor runner region]:region' \
|
|
1912
1960
|
'--proxy[External proxy URL, for example http\://proxy.com or http\://proxy.com\:8080]:url' \
|
|
1913
1961
|
'--egress-proxy[Enable built-in egress proxy]' \
|
|
1914
1962
|
'--egress-proxy-authz-url[Custom egress proxy authorization service base URL]:url' \
|
|
@@ -1924,15 +1972,15 @@ _postman_runner_start() {
|
|
|
1924
1972
|
_postman_runner_list() {
|
|
1925
1973
|
_arguments \
|
|
1926
1974
|
'--api-key[Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
1927
|
-
'(-w --workspace)'{-w,--workspace}'[
|
|
1928
|
-
'--json[
|
|
1975
|
+
'(-w --workspace)'{-w,--workspace}'[Only runners this workspace can use\: runners scoped to it and runners shared with the whole team]:id' \
|
|
1976
|
+
'--json[Print { runners } as JSON, every field present (null when unset)]' \
|
|
1929
1977
|
'(-h --help)'{-h,--help}'[display help for command]'
|
|
1930
1978
|
}
|
|
1931
1979
|
|
|
1932
1980
|
_postman_runner_regions() {
|
|
1933
1981
|
_arguments \
|
|
1934
1982
|
'--api-key[Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
1935
|
-
'--json[
|
|
1983
|
+
'--json[Print { regions } as JSON, every field present (null when unset)]' \
|
|
1936
1984
|
'(-h --help)'{-h,--help}'[display help for command]'
|
|
1937
1985
|
}
|
|
1938
1986
|
|
|
@@ -2162,7 +2210,7 @@ _postman_spec_list() {
|
|
|
2162
2210
|
_postman_spec_get() {
|
|
2163
2211
|
_arguments \
|
|
2164
2212
|
'--api-key[Postman API key]:key:_files -g "*.(pem|crt|key)"' \
|
|
2165
|
-
'--json[Output as JSON
|
|
2213
|
+
'--json[Output as JSON; a local OpenAPI spec also includes its parsed, $ref-resolved definition]' \
|
|
2166
2214
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
2167
2215
|
'*:spec...:'
|
|
2168
2216
|
}
|
|
@@ -2261,7 +2309,7 @@ _postman_spec_generate() {
|
|
|
2261
2309
|
_postman_spec_generate_commands() {
|
|
2262
2310
|
local -a sub
|
|
2263
2311
|
sub=(
|
|
2264
|
-
'collection:Generate a Postman collection from
|
|
2312
|
+
'collection:Generate a Postman collection from an OpenAPI or AsyncAPI (Kafka) specification. Only Kafka AsyncAPI 2.x and 3.0 specs are supported\: the spec must declare a kafka or kafka-secure server.'
|
|
2265
2313
|
)
|
|
2266
2314
|
_describe -t commands 'generate command' sub
|
|
2267
2315
|
}
|
|
@@ -2269,7 +2317,7 @@ _postman_spec_generate_commands() {
|
|
|
2269
2317
|
_postman_spec_generate_collection() {
|
|
2270
2318
|
_arguments \
|
|
2271
2319
|
'(-n --name)'{-n,--name}'[Collection name]:name' \
|
|
2272
|
-
'--folder-strategy[Folder strategy\: Paths or Tags (default\: Paths) (default\: "Paths")]:strategy' \
|
|
2320
|
+
'--folder-strategy[Folder strategy\: Paths or Tags (default\: Paths). OpenAPI only (default\: "Paths")]:strategy' \
|
|
2273
2321
|
'(-w --workspace)'{-w,--workspace}'[Workspace ID (cloud mode)]:id' \
|
|
2274
2322
|
'--api-key[Postman API key]:key:_files -g "*.(pem|crt|key)"' \
|
|
2275
2323
|
'--force[Overwrite the collection if one with this name already exists (local mode)]' \
|
|
@@ -2305,8 +2353,8 @@ _postman_spec_sync_collection() {
|
|
|
2305
2353
|
_arguments \
|
|
2306
2354
|
'--collection-id[Collection ID to sync (required for cloud mode)]:id' \
|
|
2307
2355
|
'--api-key[Postman API key]:key:_files -g "*.(pem|crt|key)"' \
|
|
2308
|
-
'--force[Overwrite hand-written scripts, headers and descriptions that the spec would otherwise drop]' \
|
|
2309
|
-
'--dry-run[Report what sync would change and remove without writing anything]' \
|
|
2356
|
+
'--force[Overwrite hand-written scripts, headers and descriptions that the spec would otherwise drop (OpenAPI), or collection files that could not be read (AsyncAPI)]' \
|
|
2357
|
+
'--dry-run[Report what sync would change and remove without writing anything (OpenAPI only)]' \
|
|
2310
2358
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
2311
2359
|
'*:spec:'
|
|
2312
2360
|
}
|
|
@@ -2334,9 +2382,10 @@ _postman_workspace() {
|
|
|
2334
2382
|
push) _postman_workspace_push ;;
|
|
2335
2383
|
lint) _postman_workspace_lint ;;
|
|
2336
2384
|
get) _postman_workspace_get ;;
|
|
2337
|
-
activity)
|
|
2385
|
+
context|activity) _postman_workspace_context ;;
|
|
2338
2386
|
create) _postman_workspace_create ;;
|
|
2339
2387
|
delete) _postman_workspace_delete ;;
|
|
2388
|
+
share) _postman_workspace_share ;;
|
|
2340
2389
|
pull) _postman_workspace_pull ;;
|
|
2341
2390
|
connect-git) _postman_workspace_connect_git ;;
|
|
2342
2391
|
disconnect-git) _postman_workspace_disconnect_git ;;
|
|
@@ -2354,10 +2403,12 @@ _postman_workspace_commands() {
|
|
|
2354
2403
|
'push:Push local workspace entities (collections, environments, specifications, mocks and more) to Postman workspace.'
|
|
2355
2404
|
'lint:Lint the current local Postman workspace\: its configuration (.postman/resources.yaml) plus every discovered entity. Use --meta to lint only the configuration.'
|
|
2356
2405
|
'get:Read a workspace'\''s metadata, and optionally the ids of what it holds.'
|
|
2357
|
-
'
|
|
2406
|
+
'context:Read a workspace'\''s recent activity\: who changed what, and the messages left on pushes. Also available as `activity`.'
|
|
2407
|
+
'activity:Alias for context'
|
|
2358
2408
|
'create:Create a Postman workspace and bind it to this git repository.'
|
|
2359
2409
|
'delete:Permanently delete a workspace and everything in it. Prompts for confirmation unless --yes is passed.'
|
|
2360
|
-
'
|
|
2410
|
+
'share:Grant a role on a workspace to one or more people.'
|
|
2411
|
+
'pull:Pull workspace entities from a Postman workspace into the local folder.'
|
|
2361
2412
|
'connect-git:Connect a Postman workspace to a local git repository.'
|
|
2362
2413
|
'disconnect-git:Disconnect a Postman workspace from its local git repository.'
|
|
2363
2414
|
'diff:Preview local-vs-cloud drift before pushing. Read-only\: nothing is created, updated or deleted.'
|
|
@@ -2388,6 +2439,7 @@ _postman_workspace_push() {
|
|
|
2388
2439
|
'--no-prepare[Skip ID validation and auto-fix before pushing]' \
|
|
2389
2440
|
'(-y --yes)'{-y,--yes}'[Skip all confirmation prompts]' \
|
|
2390
2441
|
'--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' \
|
|
2442
|
+
'(-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' \
|
|
2391
2443
|
'--json[Print the outcome as machine-readable JSON. Implies non-interactive\: use --yes to actually push.]' \
|
|
2392
2444
|
'--verbose[Show detailed logging]' \
|
|
2393
2445
|
'--report-events[Dispatch events to the API Catalog and Application Inventory ingestion pipelines (on by default)]' \
|
|
@@ -2414,14 +2466,15 @@ _postman_workspace_get() {
|
|
|
2414
2466
|
'*:id:'
|
|
2415
2467
|
}
|
|
2416
2468
|
|
|
2417
|
-
|
|
2469
|
+
_postman_workspace_context() {
|
|
2418
2470
|
_arguments \
|
|
2419
|
-
'--type[Comma-separated element types to filter on, e.g. "api,collection".]:types' \
|
|
2471
|
+
'--type[Comma-separated element types to filter on, e.g. "api,collection". Use "workspacePush" for the messages left with `workspace push -m`.]:types' \
|
|
2420
2472
|
'--contributor[Comma-separated user ids to filter on.]:ids' \
|
|
2421
2473
|
'--cursor[Fetch the page of entries that follows this cursor.]:cursor' \
|
|
2422
2474
|
'--limit[Max entries to return.]:n' \
|
|
2423
2475
|
'--markdown[Ask the API for a human-readable description of each entry.]' \
|
|
2424
2476
|
'--json[Print the feed as machine-readable JSON.]' \
|
|
2477
|
+
'--brief[Print one plain line per entry (time, who, message), for a prompt or a log. Prints nothing when there are no entries.]' \
|
|
2425
2478
|
'--timeout[Milliseconds to wait for the API (default 30000).]:ms' \
|
|
2426
2479
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
2427
2480
|
'*:id:'
|
|
@@ -2451,6 +2504,17 @@ _postman_workspace_delete() {
|
|
|
2451
2504
|
'*:workspaceId:'
|
|
2452
2505
|
}
|
|
2453
2506
|
|
|
2507
|
+
_postman_workspace_share() {
|
|
2508
|
+
_arguments \
|
|
2509
|
+
'--user[Who to share with. Repeatable, and each value may be a comma-separated list. A value containing @ is treated as an email address, anything else as a Postman user id.]:email|id' \
|
|
2510
|
+
'--role[The role to grant. (default\: "viewer")]:viewer|editor' \
|
|
2511
|
+
'--json[Print the outcome as machine-readable JSON.]' \
|
|
2512
|
+
'--timeout[Milliseconds to wait for Postman. Defaults to 30000.]:ms' \
|
|
2513
|
+
'--api-key[Postman API key (defaults to your `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
2514
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
2515
|
+
'*:workspaceId:'
|
|
2516
|
+
}
|
|
2517
|
+
|
|
2454
2518
|
_postman_workspace_pull() {
|
|
2455
2519
|
_arguments \
|
|
2456
2520
|
'(-y --yes)'{-y,--yes}'[Skip all confirmation prompts]' \
|
|
@@ -2834,7 +2898,6 @@ _postman_init() {
|
|
|
2834
2898
|
_arguments \
|
|
2835
2899
|
'--json[Emit machine-readable output for agents]' \
|
|
2836
2900
|
'--dry-run[Report what would happen without writing anything]' \
|
|
2837
|
-
'--no-fetch[Use the skills bundled with this CLI instead of fetching the latest]' \
|
|
2838
2901
|
'--spec[Which spec is authoritative, when more than one could be]:path:_files -g "*.(yaml|yml|json)"' \
|
|
2839
2902
|
'--visibility[Create and bind a workspace non-interactively (personal, team)]:status' \
|
|
2840
2903
|
'(-y --yes)'{-y,--yes}'[Accept the default for every question instead of asking or stopping]' \
|
|
@@ -3344,7 +3407,7 @@ _postman_simulation_create() {
|
|
|
3344
3407
|
'--deploy[After creating, upload the simulation (and its mocks) to Postman cloud and deploy it to a live mock server (private by default).]' \
|
|
3345
3408
|
'--public[With --deploy, let anyone with the link reach the server (default\: callers need an API key)]' \
|
|
3346
3409
|
'(-s --slug)'{-s,--slug}'[With --deploy, the short label used in the server'\''s web address]:slug' \
|
|
3347
|
-
'--json[
|
|
3410
|
+
'--json[Print the result (with --deploy, the live server details) as machine-readable data instead of a summary]' \
|
|
3348
3411
|
'--api-key[Postman API key (defaults to your `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
3349
3412
|
'(-h --help)'{-h,--help}'[display help for command]'
|
|
3350
3413
|
}
|
|
@@ -3361,7 +3424,7 @@ _postman_simulation_list() {
|
|
|
3361
3424
|
_postman_simulation_get() {
|
|
3362
3425
|
_arguments \
|
|
3363
3426
|
'--api-key[Postman API key (defaults to your `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
3364
|
-
'--json[Print the details as machine-readable data instead of a
|
|
3427
|
+
'--json[Print the details as machine-readable data instead of a summary]' \
|
|
3365
3428
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
3366
3429
|
'*:simIdOrPath:'
|
|
3367
3430
|
}
|
|
@@ -3370,7 +3433,7 @@ _postman_simulation_run() {
|
|
|
3370
3433
|
_arguments \
|
|
3371
3434
|
'(-e --environment)'{-e,--environment}'[Path to a file of environment variables for the mocks (relative or absolute)]:path:_files -g "*.json"' \
|
|
3372
3435
|
'(-g --globals)'{-g,--globals}'[Path to a file of global variables for the mocks (relative or absolute)]:path:_files -g "*.json"' \
|
|
3373
|
-
'(-p --port)'{-p,--port}'[Port to serve on (e.g. 4010), or "auto" for a free one
|
|
3436
|
+
'(-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' \
|
|
3374
3437
|
'--dataset[Dataset file or folder to load for pm.datasets (repeatable) (default\: \[\])]:pathOrDir:_files -g "*.json"' \
|
|
3375
3438
|
'(-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' \
|
|
3376
3439
|
'--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' \
|
|
@@ -3379,12 +3442,13 @@ _postman_simulation_run() {
|
|
|
3379
3442
|
'--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' \
|
|
3380
3443
|
'--verbose[Show request and response headers and bodies for each request. By default each request prints one line, plus any applied scenario or error.]' \
|
|
3381
3444
|
'--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.]' \
|
|
3382
|
-
'--proxy-port[Port for the proxy server. Distinct from --port, which is the one-port run'\''s own port. (default\: 7001)]:n' \
|
|
3383
|
-
'--scenario[Scenario each mock serves, sent as both pm-mock-scenario and x-mock-scenario. (default\: "default")]:name' \
|
|
3445
|
+
'--proxy-port[Port for the proxy server. 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. A busy port exits 1. (default\: 7001)]:n' \
|
|
3446
|
+
'--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' \
|
|
3384
3447
|
'--session[Session id to select via the x-mock-session header (default\: a generated id).]:id' \
|
|
3385
|
-
'--log-format[Proxy request log format\: text or json. (default\: "text")]:format' \
|
|
3448
|
+
'--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' \
|
|
3386
3449
|
'--log-body[Also log each response body (truncated). Buffers full responses in memory; meant for temporary debugging, not left on by default.]' \
|
|
3387
3450
|
'--doctor[Start the proxy, probe each available HTTP client (fetch/undici/axios/node-fetch) to confirm it honors HTTP_PROXY/HTTPS_PROXY, then exit.]' \
|
|
3451
|
+
'--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' \
|
|
3388
3452
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
3389
3453
|
'*:simIdOrPath:'
|
|
3390
3454
|
}
|
|
@@ -3393,6 +3457,7 @@ _postman_simulation_push() {
|
|
|
3393
3457
|
_arguments \
|
|
3394
3458
|
'(-w --workspace)'{-w,--workspace}'[Postman cloud workspace to upload to, by id (defaults to the workspace already linked to this project)]:id' \
|
|
3395
3459
|
'--api-key[Postman API key (defaults to your `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
3460
|
+
'--json[Print the result as machine-readable data]' \
|
|
3396
3461
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
3397
3462
|
'*:simPath:'
|
|
3398
3463
|
}
|
|
@@ -3442,10 +3507,18 @@ _postman_simulation_delete() {
|
|
|
3442
3507
|
_arguments \
|
|
3443
3508
|
'(-y --yes)'{-y,--yes}'[Delete without asking for confirmation first]' \
|
|
3444
3509
|
'--api-key[Postman API key, used with a Postman cloud id (defaults to your `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
|
|
3510
|
+
'--json[Print the result as machine-readable data (requires --yes)]' \
|
|
3445
3511
|
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
3446
3512
|
'*:simIdOrPath:'
|
|
3447
3513
|
}
|
|
3448
3514
|
|
|
3515
|
+
_postman_status() {
|
|
3516
|
+
_arguments \
|
|
3517
|
+
'--json[Print status as machine-readable JSON.]' \
|
|
3518
|
+
'(-h --help)'{-h,--help}'[display help for command]' \
|
|
3519
|
+
'*:dir-path:_files -/'
|
|
3520
|
+
}
|
|
3521
|
+
|
|
3449
3522
|
_postman_team() {
|
|
3450
3523
|
local context state state_descr line
|
|
3451
3524
|
typeset -A opt_args
|