postman-cli 1.80.0 → 1.83.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/README.md +1 -1
- package/man/postman.1 +162 -54
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -164,7 +164,7 @@ claude mcp add --transport http orbit https://mcp.buildwithorbit.ai/mcp
|
|
|
164
164
|
## What install and `init` change on your machine
|
|
165
165
|
|
|
166
166
|
- **`npm install`:** if Claude Code's or Codex's configuration folder already exists, the install adds one line to its global instructions (`CLAUDE.md`, or Codex's `AGENTS.override.md` or `AGENTS.md`) between `<!-- postman-cli:installation:start -->` and `<!-- postman-cli:installation:end -->` markers: "Postman CLI is installed on this device, and can be used for API Engineering work." Delete those lines to remove it.
|
|
167
|
-
- **`postman init`:** writes local files (`postman/`, `AGENTS.md`, skills under `postman/skills/`). It fetches the latest skills over HTTPS and falls back to the copies bundled with the CLI; `--no-fetch` skips the attempt. It creates a cloud workspace only when you pass `--visibility`, or `--yes` (a
|
|
167
|
+
- **`postman init`:** writes local files (`postman/`, `AGENTS.md`, skills under `postman/skills/`). It fetches the latest skills over HTTPS and falls back to the copies bundled with the CLI; `--no-fetch` skips the attempt. It creates a cloud workspace only when you pass `--visibility`, or `--yes` (a session when you aren't signed in), and never in CI. `--dry-run` shows what it would do first.
|
|
168
168
|
- **Context that carries over:** in a repo linked to a Postman workspace, using the CLI saves context to that cloud workspace automatically: run results, pushes with their messages, and who or which agent did what. The next session, agent or teammate reads it back with `postman workspace context`, so work isn't re-derived each time. It also keeps your team's API Catalog and Application Inventory current, and feeds Context Graph. Commands such as `collection run`, `request` and `spec lint` do this by default.
|
|
169
169
|
|
|
170
170
|
## Accounts
|
package/man/postman.1
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.TH POSTMAN 1 "2026-10-
|
|
1
|
+
.TH POSTMAN 1 "2026-10-30" "v1.83.0" "Postman CLI Manual"
|
|
2
2
|
.SH NAME
|
|
3
3
|
postman \- Command\-line companion utility for Postman
|
|
4
4
|
.SH SYNOPSIS
|
|
@@ -49,11 +49,17 @@ Specify the API key directly.
|
|
|
49
49
|
.B \-\-region <region>
|
|
50
50
|
Specify the region for authentication. Use "eu" for EU region.
|
|
51
51
|
.TP
|
|
52
|
+
.B \-\-migrate\-guest\-workspace
|
|
53
|
+
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).
|
|
54
|
+
.TP
|
|
55
|
+
.B \-\-no\-migrate\-guest\-workspace
|
|
56
|
+
Do not copy local work into the account you sign in to. By default local work is copied.
|
|
57
|
+
.TP
|
|
52
58
|
.B \-\-verbose
|
|
53
59
|
Show detailed error information
|
|
54
60
|
|
|
55
61
|
.SS "signup"
|
|
56
|
-
Sign up to keep
|
|
62
|
+
Sign up to keep your work and workspace. Waits and signs this CLI in once the sign\-up is completed in a browser — opening that browser here on a terminal, or printing the URL to hand over when output is piped.
|
|
57
63
|
|
|
58
64
|
.B Usage:
|
|
59
65
|
[options]
|
|
@@ -61,10 +67,10 @@ Sign up to keep the work you created as a guest (claims your guest workspace). W
|
|
|
61
67
|
.B Options:
|
|
62
68
|
.TP
|
|
63
69
|
.B \-\-guest
|
|
64
|
-
Start
|
|
70
|
+
Start a session without signing up — no account or browser needed, so it works anywhere. Your work is saved to a temporary workspace you can keep later by running `postman signup`.
|
|
65
71
|
.TP
|
|
66
72
|
.B \-\-no\-push
|
|
67
|
-
Do not push local work to your
|
|
73
|
+
Do not push local work to your workspace before signing up. By default, work saved under postman/ is pushed first, so the workspace you keep is not empty.
|
|
68
74
|
.TP
|
|
69
75
|
.B \-\-json
|
|
70
76
|
Print the sign\-up details as machine\-readable JSON.
|
|
@@ -125,7 +131,7 @@ Exit codes:
|
|
|
125
131
|
|
|
126
132
|
\-\-yes answers every question with its default: several candidate specs leave
|
|
127
133
|
the spec unbound unless \-\-spec names one, and a workspace is created and
|
|
128
|
-
bound as \-\-visibility personal unless \-\-visibility says otherwise (a
|
|
134
|
+
bound as \-\-visibility personal unless \-\-visibility says otherwise (a temporary
|
|
129
135
|
session when not signed in). CI never creates one.
|
|
130
136
|
|
|
131
137
|
Code 5 needs \-\-visibility: without it no workspace was requested, so nothing
|
|
@@ -156,7 +162,7 @@ Examples:
|
|
|
156
162
|
|
|
157
163
|
|
|
158
164
|
.SS "whoami"
|
|
159
|
-
Show the Postman account or
|
|
165
|
+
Show the Postman account or session this CLI is using.
|
|
160
166
|
|
|
161
167
|
.B Usage:
|
|
162
168
|
[options]
|
|
@@ -345,13 +351,13 @@ Add, get, update, or remove folders in a local v3 collection.
|
|
|
345
351
|
Add, update, remove, get, or list examples (saved responses) under a request.
|
|
346
352
|
.TP
|
|
347
353
|
.B collection import
|
|
348
|
-
Import a cURL or
|
|
354
|
+
Import a cURL, HAR, or JMeter (.jmx) source into a v3 collection (local, or cloud with \-\-workspace).
|
|
349
355
|
.TP
|
|
350
356
|
.B collection list
|
|
351
357
|
List collections: your local project's collections by default, or a Postman cloud workspace's collections with \-\-workspace.
|
|
352
358
|
.TP
|
|
353
359
|
.B collection run
|
|
354
|
-
|
|
360
|
+
Run a collection by ID or path, or a request file.
|
|
355
361
|
|
|
356
362
|
.SS "collection new"
|
|
357
363
|
Scaffold a v3 collection on disk, or create one in a cloud Postman workspace with \-\-workspace.
|
|
@@ -387,7 +393,7 @@ Without \-\-workspace this writes postman/collections/<name>/.resources/definiti
|
|
|
387
393
|
in the current directory, which must be a local Postman workspace (a directory holding
|
|
388
394
|
\&.postman/ or postman/). Add requests as <request\-name>.request.yaml files beside it, then
|
|
389
395
|
publish with `postman workspace push`. Creating a collection in a workspace works with a
|
|
390
|
-
signed\-in credential or with the
|
|
396
|
+
signed\-in credential or with the session `postman init` starts.
|
|
391
397
|
|
|
392
398
|
|
|
393
399
|
|
|
@@ -1224,7 +1230,7 @@ Example type for cloud mode: http. (default: http)
|
|
|
1224
1230
|
JSON output.
|
|
1225
1231
|
|
|
1226
1232
|
.SS "collection import"
|
|
1227
|
-
Import a cURL or
|
|
1233
|
+
Import a cURL, HAR, or JMeter (.jmx) source into a v3 collection (local, or cloud with \-\-workspace).
|
|
1228
1234
|
|
|
1229
1235
|
.B Usage:
|
|
1230
1236
|
[options] <src>
|
|
@@ -1232,7 +1238,7 @@ Import a cURL or HAR source into a v3 collection (local, or cloud with \-\-works
|
|
|
1232
1238
|
.B Options:
|
|
1233
1239
|
.TP
|
|
1234
1240
|
.B \-\-type <format>
|
|
1235
|
-
Source format: curl or
|
|
1241
|
+
Source format: curl, har, or jmeter. Auto\-detected from the extension/content when omitted.
|
|
1236
1242
|
.TP
|
|
1237
1243
|
.B \-\-name <name>
|
|
1238
1244
|
Collection display name. Defaults to a per\-format fallback.
|
|
@@ -1262,6 +1268,7 @@ JSON output.
|
|
|
1262
1268
|
Examples:
|
|
1263
1269
|
postman collection import ./login.curl
|
|
1264
1270
|
postman collection import ./session.har \-\-name "Recorded session"
|
|
1271
|
+
postman collection import ./load\-test.jmx \-\-name "Load test"
|
|
1265
1272
|
pbpaste | postman collection import \- \-\-type curl \-\-name Users
|
|
1266
1273
|
postman collection import ./session.har \-\-name Session \-\-workspace <workspaceId>
|
|
1267
1274
|
|
|
@@ -1301,7 +1308,7 @@ Examples:
|
|
|
1301
1308
|
|
|
1302
1309
|
|
|
1303
1310
|
.SS "collection run"
|
|
1304
|
-
|
|
1311
|
+
Run a collection by ID or path, or a request file.
|
|
1305
1312
|
|
|
1306
1313
|
.B Usage:
|
|
1307
1314
|
<collectionId/Path> [options]
|
|
@@ -1461,7 +1468,9 @@ Do not dispatch run events (results, \-\-simulation start history, and analytics
|
|
|
1461
1468
|
|
|
1462
1469
|
.TP Examples:
|
|
1463
1470
|
Eg. postman collection run 123456\-45159473\-1e45\-1f34\-5678\-1234567890ab
|
|
1464
|
-
postman collection run <id> \-\-use\-mock "{{baseurl}} mock:./postman/mocks/orders"
|
|
1471
|
+
postman collection run <id> \-\-use\-mock "{{baseurl}} mock:./postman/mocks/orders"
|
|
1472
|
+
postman collection run ./postman/collections/Orders/CreateOrder.request.yaml
|
|
1473
|
+
# a mock in your repository
|
|
1465
1474
|
postman collection run <id> \-\-use\-mock "{{baseurl}} mock:12345678\-90ab\-cdef\-1234\-567890abcdef" # a mock in Postman cloud
|
|
1466
1475
|
postman collection run <id> \-\-use\-mock "{{baseurl}} mock:./mock/config.yaml delay"
|
|
1467
1476
|
postman collection run <id> \-\-use\-mock "{{baseurl}} mock:./a.yaml" \-\-use\-mock "api.com mock\-server:9d8e7f6a"
|
|
@@ -2600,7 +2609,7 @@ Run a monitor now and report the result.
|
|
|
2600
2609
|
.B Options:
|
|
2601
2610
|
.TP
|
|
2602
2611
|
.B \-\-api\-key <key>
|
|
2603
|
-
Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session, then a
|
|
2612
|
+
Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session, then a session started by `postman init`)
|
|
2604
2613
|
.TP
|
|
2605
2614
|
.B \-x, \-\-suppress\-exit\-code
|
|
2606
2615
|
Always exit 0, whatever the run's result or the failure
|
|
@@ -2702,7 +2711,7 @@ How iteration data is consumed, for example round_robin, repeat_last or stop_at_
|
|
|
2702
2711
|
Do not trigger an immediate run after creating the monitor
|
|
2703
2712
|
.TP
|
|
2704
2713
|
.B \-\-api\-key <key>
|
|
2705
|
-
Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session, then a
|
|
2714
|
+
Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session, then a session started by `postman init`)
|
|
2706
2715
|
.TP
|
|
2707
2716
|
.B \-\-json
|
|
2708
2717
|
Print the outcome, the created monitor's id, uid, name and active state, and the job of its first run, as JSON
|
|
@@ -2795,7 +2804,7 @@ Number of iterations to run
|
|
|
2795
2804
|
How iteration data is consumed, for example round_robin, repeat_last or stop_at_end (requires \-\-iteration\-count, \-\-dataset\-id and \-\-dataset\-view\-id)
|
|
2796
2805
|
.TP
|
|
2797
2806
|
.B \-\-api\-key <key>
|
|
2798
|
-
Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session, then a
|
|
2807
|
+
Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session, then a session started by `postman init`)
|
|
2799
2808
|
.TP
|
|
2800
2809
|
.B \-\-json
|
|
2801
2810
|
Print the outcome and the monitor's id, uid, name and active state as JSON
|
|
@@ -2827,10 +2836,10 @@ Permanently delete a monitor. Prompts for confirmation unless \-\-yes is passed.
|
|
|
2827
2836
|
.B Options:
|
|
2828
2837
|
.TP
|
|
2829
2838
|
.B \-y, \-\-yes
|
|
2830
|
-
Skip the confirmation prompt; required when there is no interactive terminal
|
|
2839
|
+
Skip the confirmation prompt; required when there is no interactive terminal
|
|
2831
2840
|
.TP
|
|
2832
2841
|
.B \-\-api\-key <key>
|
|
2833
|
-
Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session, then a
|
|
2842
|
+
Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session, then a session started by `postman init`)
|
|
2834
2843
|
.TP
|
|
2835
2844
|
.B \-\-json
|
|
2836
2845
|
Print the outcome (deleted or aborted) and the monitor id as JSON
|
|
@@ -2844,7 +2853,7 @@ Examples:
|
|
|
2844
2853
|
postman monitor delete 12345678\-90ab\-cdef\-1234\-567890abcdef \-\-yes
|
|
2845
2854
|
postman monitor delete 12345678\-90ab\-cdef\-1234\-567890abcdef \-\-yes \-\-json
|
|
2846
2855
|
|
|
2847
|
-
Exit codes: 0 success, 1 failed, 2 usage error, 3 authentication failure, 7 failed after it was sent and may have applied, 5 the prompt was declined, 8 refused with no terminal
|
|
2856
|
+
Exit codes: 0 success, 1 failed, 2 usage error, 3 authentication failure, 7 failed after it was sent and may have applied, 5 the prompt was declined, 8 refused with no terminal and no \-\-yes.
|
|
2848
2857
|
|
|
2849
2858
|
|
|
2850
2859
|
|
|
@@ -2871,7 +2880,7 @@ List a monitor's recent jobs, newest first. A job (also called an execution) is
|
|
|
2871
2880
|
.B Options:
|
|
2872
2881
|
.TP
|
|
2873
2882
|
.B \-\-api\-key <key>
|
|
2874
|
-
Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session, then a
|
|
2883
|
+
Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session, then a session started by `postman init`)
|
|
2875
2884
|
.TP
|
|
2876
2885
|
.B \-\-result <state>
|
|
2877
2886
|
Only jobs that finished in this state: success, failure, error or abort; any other value is rejected before any request
|
|
@@ -2913,7 +2922,7 @@ Show one job (also called an execution) and the state, runner and duration of ea
|
|
|
2913
2922
|
.B Options:
|
|
2914
2923
|
.TP
|
|
2915
2924
|
.B \-\-api\-key <key>
|
|
2916
|
-
Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session, then a
|
|
2925
|
+
Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session, then a session started by `postman init`)
|
|
2917
2926
|
.TP
|
|
2918
2927
|
.B \-\-json
|
|
2919
2928
|
Print the job as JSON, with each run's state, runner, counts, duration and attempts
|
|
@@ -2952,7 +2961,7 @@ Console, assertion and exception messages are the collection's own output, print
|
|
|
2952
2961
|
.B Options:
|
|
2953
2962
|
.TP
|
|
2954
2963
|
.B \-\-api\-key <key>
|
|
2955
|
-
Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session, then a
|
|
2964
|
+
Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session, then a session started by `postman init`)
|
|
2956
2965
|
.TP
|
|
2957
2966
|
.B \-\-attempt <n>
|
|
2958
2967
|
Which attempt to show, from 0 for the first (default: the latest)
|
|
@@ -2985,7 +2994,7 @@ List the monitors visible to you, one page at a time.
|
|
|
2985
2994
|
.B Options:
|
|
2986
2995
|
.TP
|
|
2987
2996
|
.B \-\-api\-key <key>
|
|
2988
|
-
Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session, then a
|
|
2997
|
+
Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session, then a session started by `postman init`)
|
|
2989
2998
|
.TP
|
|
2990
2999
|
.B \-w, \-\-workspace <id>
|
|
2991
3000
|
Only monitors in this workspace (ids from `postman workspace list`)
|
|
@@ -3052,7 +3061,7 @@ Show a monitor's configuration and its last run.
|
|
|
3052
3061
|
.B Options:
|
|
3053
3062
|
.TP
|
|
3054
3063
|
.B \-\-api\-key <key>
|
|
3055
|
-
Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session, then a
|
|
3064
|
+
Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session, then a session started by `postman init`)
|
|
3056
3065
|
.TP
|
|
3057
3066
|
.B \-\-json
|
|
3058
3067
|
Print the monitor as JSON, every field present (null when unset)
|
|
@@ -3086,7 +3095,7 @@ Show per\-request latency and outcome history for a monitor.
|
|
|
3086
3095
|
.B Options:
|
|
3087
3096
|
.TP
|
|
3088
3097
|
.B \-\-api\-key <key>
|
|
3089
|
-
Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session, then a
|
|
3098
|
+
Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session, then a session started by `postman init`)
|
|
3090
3099
|
.TP
|
|
3091
3100
|
.B \-\-since <dateTime>
|
|
3092
3101
|
Only executions at or after this ISO 8601 date\-time (defaults to 7 days ago)
|
|
@@ -3126,7 +3135,7 @@ Pause a monitor, so it stops firing on schedule.
|
|
|
3126
3135
|
.B Options:
|
|
3127
3136
|
.TP
|
|
3128
3137
|
.B \-\-api\-key <key>
|
|
3129
|
-
Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session, then a
|
|
3138
|
+
Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session, then a session started by `postman init`)
|
|
3130
3139
|
.TP
|
|
3131
3140
|
.B \-\-json
|
|
3132
3141
|
Print the outcome and the monitor's id, uid, name and active state as JSON
|
|
@@ -3152,7 +3161,7 @@ Resume a paused monitor, so it fires on schedule again.
|
|
|
3152
3161
|
.B Options:
|
|
3153
3162
|
.TP
|
|
3154
3163
|
.B \-\-api\-key <key>
|
|
3155
|
-
Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session, then a
|
|
3164
|
+
Postman API key (defaults to POSTMAN_API_KEY, then the `postman login` session, then a session started by `postman init`)
|
|
3156
3165
|
.TP
|
|
3157
3166
|
.B \-\-json
|
|
3158
3167
|
Print the outcome and the monitor's id, uid, name and active state as JSON
|
|
@@ -3225,7 +3234,10 @@ Lint the current local Postman workspace: its configuration (.postman/resources.
|
|
|
3225
3234
|
Read a workspace's metadata, and optionally the ids of what it holds.
|
|
3226
3235
|
.TP
|
|
3227
3236
|
.B workspace context
|
|
3228
|
-
|
|
3237
|
+
Everything about a workspace: collections, environments, monitors, mocks, specs, flows and simulations, and how they relate (which monitor runs which collection). Add `\-\-section activity` for the change feed. Prints JSON when piped.
|
|
3238
|
+
.TP
|
|
3239
|
+
.B workspace activity
|
|
3240
|
+
Shorthand for `workspace context \-\-section activity`: who changed what, and the messages left on pushes.
|
|
3229
3241
|
.TP
|
|
3230
3242
|
.B workspace create
|
|
3231
3243
|
Create a Postman workspace and bind it to this git repository.
|
|
@@ -3383,7 +3395,60 @@ Exit codes: 0 ok, 1 not found or API failure, 2 bad usage, 3 auth.
|
|
|
3383
3395
|
|
|
3384
3396
|
|
|
3385
3397
|
.SS "workspace context"
|
|
3386
|
-
|
|
3398
|
+
Everything about a workspace: collections, environments, monitors, mocks, specs, flows and simulations, and how they relate (which monitor runs which collection). Add `\-\-section activity` for the change feed. Prints JSON when piped.
|
|
3399
|
+
|
|
3400
|
+
.B Usage:
|
|
3401
|
+
[options] [id]
|
|
3402
|
+
|
|
3403
|
+
.B Options:
|
|
3404
|
+
.TP
|
|
3405
|
+
.B \-\-section <names>
|
|
3406
|
+
Comma\-separated sections to show (collection, environment, monitor, mock, spec, flow, simulation, activity). Default: everything but activity. Counts are always reported for every inventory section.
|
|
3407
|
+
.TP
|
|
3408
|
+
.B \-\-limit <n>
|
|
3409
|
+
Max items per section, or entries for activity (default 25 items). A cut section says how many were left out.
|
|
3410
|
+
.TP
|
|
3411
|
+
.B \-\-type <types>
|
|
3412
|
+
Activity only: comma\-separated element types, e.g. "api,collection". Use "workspacePush" for the messages left with `workspace push \-m`.
|
|
3413
|
+
.TP
|
|
3414
|
+
.B \-\-contributor <ids>
|
|
3415
|
+
Activity only: comma\-separated user ids.
|
|
3416
|
+
.TP
|
|
3417
|
+
.B \-\-cursor <cursor>
|
|
3418
|
+
Activity only: the page of entries that follows this cursor.
|
|
3419
|
+
.TP
|
|
3420
|
+
.B \-\-markdown
|
|
3421
|
+
Activity only: ask the API for a human\-readable description of each entry.
|
|
3422
|
+
.TP
|
|
3423
|
+
.B \-\-brief
|
|
3424
|
+
With only `\-\-section activity`: one plain line per entry (time, who, message).
|
|
3425
|
+
.TP
|
|
3426
|
+
.B \-\-json
|
|
3427
|
+
Print JSON (schemaVersion 1.1). This is already the default when piped.
|
|
3428
|
+
.TP
|
|
3429
|
+
.B \-\-text
|
|
3430
|
+
Print prose even when piped.
|
|
3431
|
+
.TP
|
|
3432
|
+
.B \-\-timeout <ms>
|
|
3433
|
+
Milliseconds to wait for the API (default 30000).
|
|
3434
|
+
|
|
3435
|
+
.TP Examples:
|
|
3436
|
+
|
|
3437
|
+
Examples:
|
|
3438
|
+
postman workspace context
|
|
3439
|
+
Snapshot of the current folder's bound workspace
|
|
3440
|
+
postman workspace context <id> \-\-section monitor,mock
|
|
3441
|
+
postman workspace context <id> \-\-section collection \-\-limit 200
|
|
3442
|
+
postman workspace context <id> \-\-section activity \-\-limit 5 \-\-brief
|
|
3443
|
+
postman workspace context <id> \-\-section monitor,activity \-\-limit 5
|
|
3444
|
+
postman workspace context <id> \-\-json | jq '.sections.monitor.items[].refs'
|
|
3445
|
+
|
|
3446
|
+
Exit codes: 0 ok, 1 not found or API failure, 2 bad usage, 3 auth, 4 printed but some sections could not be listed.
|
|
3447
|
+
|
|
3448
|
+
|
|
3449
|
+
|
|
3450
|
+
.SS "workspace activity"
|
|
3451
|
+
Shorthand for `workspace context \-\-section activity`: who changed what, and the messages left on pushes.
|
|
3387
3452
|
|
|
3388
3453
|
.B Usage:
|
|
3389
3454
|
[options] [id]
|
|
@@ -3417,14 +3482,9 @@ Milliseconds to wait for the API (default 30000).
|
|
|
3417
3482
|
.TP Examples:
|
|
3418
3483
|
|
|
3419
3484
|
Examples:
|
|
3420
|
-
postman workspace
|
|
3421
|
-
|
|
3422
|
-
postman workspace
|
|
3423
|
-
postman workspace context <id> \-\-type api,collection
|
|
3424
|
-
postman workspace context <id> \-\-contributor <userId>
|
|
3425
|
-
postman workspace context <id> \-\-markdown
|
|
3426
|
-
postman workspace context <id> \-\-json
|
|
3427
|
-
postman workspace context <id> \-\-type workspacePush \-\-limit 5 \-\-brief
|
|
3485
|
+
postman workspace activity
|
|
3486
|
+
postman workspace activity <id> \-\-type workspacePush \-\-limit 5 \-\-brief
|
|
3487
|
+
postman workspace activity <id> \-\-contributor <userId> \-\-json
|
|
3428
3488
|
|
|
3429
3489
|
Exit codes: 0 ok, 1 not found or API failure, 2 bad usage, 3 auth.
|
|
3430
3490
|
|
|
@@ -3467,9 +3527,9 @@ Print the created workspace as machine\-readable JSON.
|
|
|
3467
3527
|
|
|
3468
3528
|
.TP Examples:
|
|
3469
3529
|
|
|
3470
|
-
Requires a login (`postman login`), POSTMAN_API_KEY, or the
|
|
3471
|
-
`postman init` starts.
|
|
3472
|
-
|
|
3530
|
+
Requires a login (`postman login`), POSTMAN_API_KEY, or the session
|
|
3531
|
+
`postman init` starts. Workspaces are created in your session's team;
|
|
3532
|
+
`postman signup` claims the account and keeps them.
|
|
3473
3533
|
Refuses to run on CI: create once locally and commit the binding.
|
|
3474
3534
|
|
|
3475
3535
|
Examples:
|
|
@@ -3834,6 +3894,9 @@ Format: "<{{var}}|host> mock|mock\-server:<path|id> [scenario]" (default: )
|
|
|
3834
3894
|
.TP
|
|
3835
3895
|
.B \-\-dataset <pathOrDir>
|
|
3836
3896
|
Pass \-\-dataset multiple times to load several .dataset.yaml files (or directories containing them). Each is made available to the handlers of the local mocks started by \-\-use\-mock as pm.datasets(<id>). Local runner only. (default: )
|
|
3897
|
+
.TP
|
|
3898
|
+
.B \-\-workspace\-id <id>
|
|
3899
|
+
Workspace that owns the shared vault for the collection's v12 secret variables. Required on cloud runs to resolve those secrets; omit if the run uses no vault secrets.
|
|
3837
3900
|
|
|
3838
3901
|
.TP Examples:
|
|
3839
3902
|
|
|
@@ -3865,9 +3928,9 @@ Load segments:
|
|
|
3865
3928
|
ramp\-up — 2 segments
|
|
3866
3929
|
|
|
3867
3930
|
peak ┤ _________ at peak __________
|
|
3868
|
-
│ ramp\-up _____
|
|
3869
|
-
│ ______
|
|
3870
|
-
base ┤__ warm\-up ___
|
|
3931
|
+
│ ramp\-up _____/
|
|
3932
|
+
│ ______/
|
|
3933
|
+
base ┤__ warm\-up ___/
|
|
3871
3934
|
└┬─────────────┬─────────────┬───────────────────────────┤ \-\-duration
|
|
3872
3935
|
1 2 (3)
|
|
3873
3936
|
|
|
@@ -3879,10 +3942,10 @@ Load segments:
|
|
|
3879
3942
|
|
|
3880
3943
|
spike — 3 segments · no time at the peak; use \-\-load\-profile peak to hold
|
|
3881
3944
|
|
|
3882
|
-
peak ┤
|
|
3883
|
-
│ ramp\-up _
|
|
3884
|
-
│ _
|
|
3885
|
-
base ┤______ warm\-up _______
|
|
3945
|
+
peak ┤ /\e
|
|
3946
|
+
│ ramp\-up _/ \e_ ramp\-down
|
|
3947
|
+
│ _/ \e_
|
|
3948
|
+
base ┤______ warm\-up _______/ \e______ at base _______
|
|
3886
3949
|
└┬─────────────────────┬─────┬─────┬─────────────────────┤ \-\-duration
|
|
3887
3950
|
1 2 3 (4)
|
|
3888
3951
|
|
|
@@ -3895,9 +3958,9 @@ Load segments:
|
|
|
3895
3958
|
peak — 4 segments
|
|
3896
3959
|
|
|
3897
3960
|
peak ┤ __ hold ___
|
|
3898
|
-
│ ramp\-up ____
|
|
3899
|
-
│ ____
|
|
3900
|
-
base ┤_ warm\-up _
|
|
3961
|
+
│ ramp\-up ____/ \e____ ramp\-down
|
|
3962
|
+
│ ____/ \e____
|
|
3963
|
+
base ┤_ warm\-up _/ \e_ at base __
|
|
3901
3964
|
└┬──────────┬──────────┬──────────┬──────────┬───────────┤ \-\-duration
|
|
3902
3965
|
1 2 3 4 (5)
|
|
3903
3966
|
|
|
@@ -3984,6 +4047,9 @@ Manage and interact with flows.
|
|
|
3984
4047
|
|
|
3985
4048
|
.B Subcommands:
|
|
3986
4049
|
.TP
|
|
4050
|
+
.B flows create
|
|
4051
|
+
Create a flow in the current repository, the same way "New flow" does in the Postman app. Run it from the root of a repository connected to a Postman workspace.
|
|
4052
|
+
.TP
|
|
3987
4053
|
.B flows list
|
|
3988
4054
|
List all flows
|
|
3989
4055
|
.TP
|
|
@@ -4008,6 +4074,35 @@ List run history for a deployed flow
|
|
|
4008
4074
|
.B flows get-run
|
|
4009
4075
|
Analyze a specific flow run
|
|
4010
4076
|
|
|
4077
|
+
.SS "flows create"
|
|
4078
|
+
Create a flow in the current repository, the same way "New flow" does in the Postman app. Run it from the root of a repository connected to a Postman workspace.
|
|
4079
|
+
|
|
4080
|
+
.B Usage:
|
|
4081
|
+
[options]
|
|
4082
|
+
|
|
4083
|
+
.B Options:
|
|
4084
|
+
.TP
|
|
4085
|
+
.B \-n, \-\-name <name>
|
|
4086
|
+
Specify the flow name (default: New flow)
|
|
4087
|
+
.TP
|
|
4088
|
+
.B \-\-verbose
|
|
4089
|
+
Verbose output
|
|
4090
|
+
.TP
|
|
4091
|
+
.B \-\-debug
|
|
4092
|
+
Debug output
|
|
4093
|
+
.TP
|
|
4094
|
+
.B \-\-json
|
|
4095
|
+
JSON output
|
|
4096
|
+
|
|
4097
|
+
.TP Examples:
|
|
4098
|
+
|
|
4099
|
+
Examples:
|
|
4100
|
+
postman flows create
|
|
4101
|
+
postman flows create \-\-name "Order sync"
|
|
4102
|
+
postman flows create \-\-name "Order sync" \-\-json
|
|
4103
|
+
|
|
4104
|
+
|
|
4105
|
+
|
|
4011
4106
|
.SS "flows list"
|
|
4012
4107
|
List all flows
|
|
4013
4108
|
|
|
@@ -4363,7 +4458,7 @@ Examples:
|
|
|
4363
4458
|
Send HTTP requests from the command line with full Postman capabilities including authentication, environment variables, assertions, retries, and detailed output control.
|
|
4364
4459
|
|
|
4365
4460
|
.B Usage:
|
|
4366
|
-
[METHOD] <URL> [options]
|
|
4461
|
+
[METHOD] <URL|request\-file> [options]
|
|
4367
4462
|
|
|
4368
4463
|
.B Options:
|
|
4369
4464
|
.TP
|
|
@@ -4486,6 +4581,13 @@ Examples:
|
|
|
4486
4581
|
DELETE request:
|
|
4487
4582
|
postman request DELETE https://api.example.com/users/123
|
|
4488
4583
|
|
|
4584
|
+
Request Files:
|
|
4585
|
+
Run an HTTP request with inherited collection and folder context:
|
|
4586
|
+
postman request ./postman/collections/Orders/CreateOrder.request.yaml
|
|
4587
|
+
|
|
4588
|
+
Override the method and a header from the file:
|
|
4589
|
+
postman request PUT ./CreateOrder.request.yaml \-H "X\-Mode:preview"
|
|
4590
|
+
|
|
4489
4591
|
Authentication:
|
|
4490
4592
|
Bearer token authentication:
|
|
4491
4593
|
postman request https://api.example.com/protected \e
|
|
@@ -5715,7 +5817,13 @@ Eg. postman simulation create \-n "Checkout" \-\-mock ./postman/mocks/payments \
|
|
|
5715
5817
|
|
|
5716
5818
|
Local mock paths build a simulation file you serve with `postman simulation run`. Postman mock ids create it in your cloud workspace instead. Use one kind or the other, not both. Add \-\-deploy to upload it and get a live mock server.
|
|
5717
5819
|
|
|
5718
|
-
A <name>.context.
|
|
5820
|
+
A <name>.context.yaml is written beside the .sim.yaml: the record of what your code is believed to rely on about the services this stands in for, and the evidence behind each belief.
|
|
5821
|
+
purpose what it stands in for, and what work it unblocks
|
|
5822
|
+
assumptions one claim per entry — { id, status, claim, reason, verification,
|
|
5823
|
+
source, updated_at }, status being supported | contradicted |
|
|
5824
|
+
unknown | conflicting
|
|
5825
|
+
fingerprints the commit and CLI version the claims were written against
|
|
5826
|
+
The template carries each field's meaning in the comments above it. `simulation update` renames the file with the simulation and `simulation delete` removes it. An existing one is never overwritten, because it holds what earlier sessions established.
|
|
5719
5827
|
|
|
5720
5828
|
|
|
5721
5829
|
.SS "simulation list"
|
|
@@ -5811,8 +5919,8 @@ Show request and response headers and bodies for each request. By default each r
|
|
|
5811
5919
|
.B \-\-proxy
|
|
5812
5920
|
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.
|
|
5813
5921
|
.TP
|
|
5814
|
-
.B \-\-proxy\-port <
|
|
5815
|
-
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.
|
|
5922
|
+
.B \-\-proxy\-port <port>
|
|
5923
|
+
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.
|
|
5816
5924
|
.TP
|
|
5817
5925
|
.B \-\-scenario <name>
|
|
5818
5926
|
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)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "postman-cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.83.0",
|
|
4
4
|
"description": "Official Postman CLI - Command-line companion for API development, testing, and automation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"postman",
|
|
@@ -57,10 +57,10 @@
|
|
|
57
57
|
"scripts/"
|
|
58
58
|
],
|
|
59
59
|
"optionalDependencies": {
|
|
60
|
-
"@postman/pm-bin-macos-arm64": "1.
|
|
61
|
-
"@postman/pm-bin-macos-x64": "1.
|
|
62
|
-
"@postman/pm-bin-linux-x64": "1.
|
|
63
|
-
"@postman/pm-bin-linux-arm64": "1.
|
|
64
|
-
"@postman/pm-bin-windows-x64": "1.
|
|
60
|
+
"@postman/pm-bin-macos-arm64": "1.83.0",
|
|
61
|
+
"@postman/pm-bin-macos-x64": "1.83.0",
|
|
62
|
+
"@postman/pm-bin-linux-x64": "1.83.0",
|
|
63
|
+
"@postman/pm-bin-linux-arm64": "1.83.0",
|
|
64
|
+
"@postman/pm-bin-windows-x64": "1.83.0"
|
|
65
65
|
}
|
|
66
66
|
}
|