postman-cli 1.82.0 → 1.84.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 +43 -34
- 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-
|
|
1
|
+
.TH POSTMAN 1 "2026-11-02" "v1.84.0" "Postman CLI Manual"
|
|
2
2
|
.SH NAME
|
|
3
3
|
postman \- Command\-line companion utility for Postman
|
|
4
4
|
.SH SYNOPSIS
|
|
@@ -50,16 +50,16 @@ Specify the API key directly.
|
|
|
50
50
|
Specify the region for authentication. Use "eu" for EU region.
|
|
51
51
|
.TP
|
|
52
52
|
.B \-\-migrate\-guest\-workspace
|
|
53
|
-
Copy this repository's local work into a new workspace in the account you sign in to, even
|
|
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
54
|
.TP
|
|
55
55
|
.B \-\-no\-migrate\-guest\-workspace
|
|
56
|
-
Do not copy
|
|
56
|
+
Do not copy local work into the account you sign in to. By default local work is copied.
|
|
57
57
|
.TP
|
|
58
58
|
.B \-\-verbose
|
|
59
59
|
Show detailed error information
|
|
60
60
|
|
|
61
61
|
.SS "signup"
|
|
62
|
-
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.
|
|
63
63
|
|
|
64
64
|
.B Usage:
|
|
65
65
|
[options]
|
|
@@ -67,10 +67,10 @@ Sign up to keep the work you created as a guest (claims your guest workspace). W
|
|
|
67
67
|
.B Options:
|
|
68
68
|
.TP
|
|
69
69
|
.B \-\-guest
|
|
70
|
-
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`.
|
|
71
71
|
.TP
|
|
72
72
|
.B \-\-no\-push
|
|
73
|
-
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.
|
|
74
74
|
.TP
|
|
75
75
|
.B \-\-json
|
|
76
76
|
Print the sign\-up details as machine\-readable JSON.
|
|
@@ -131,7 +131,7 @@ Exit codes:
|
|
|
131
131
|
|
|
132
132
|
\-\-yes answers every question with its default: several candidate specs leave
|
|
133
133
|
the spec unbound unless \-\-spec names one, and a workspace is created and
|
|
134
|
-
bound as \-\-visibility personal unless \-\-visibility says otherwise (a
|
|
134
|
+
bound as \-\-visibility personal unless \-\-visibility says otherwise (a temporary
|
|
135
135
|
session when not signed in). CI never creates one.
|
|
136
136
|
|
|
137
137
|
Code 5 needs \-\-visibility: without it no workspace was requested, so nothing
|
|
@@ -162,7 +162,7 @@ Examples:
|
|
|
162
162
|
|
|
163
163
|
|
|
164
164
|
.SS "whoami"
|
|
165
|
-
Show the Postman account or
|
|
165
|
+
Show the Postman account or session this CLI is using.
|
|
166
166
|
|
|
167
167
|
.B Usage:
|
|
168
168
|
[options]
|
|
@@ -357,7 +357,7 @@ Import a cURL, HAR, or JMeter (.jmx) source into a v3 collection (local, or clou
|
|
|
357
357
|
List collections: your local project's collections by default, or a Postman cloud workspace's collections with \-\-workspace.
|
|
358
358
|
.TP
|
|
359
359
|
.B collection run
|
|
360
|
-
|
|
360
|
+
Run a collection by ID or path, or a request file.
|
|
361
361
|
|
|
362
362
|
.SS "collection new"
|
|
363
363
|
Scaffold a v3 collection on disk, or create one in a cloud Postman workspace with \-\-workspace.
|
|
@@ -393,7 +393,7 @@ Without \-\-workspace this writes postman/collections/<name>/.resources/definiti
|
|
|
393
393
|
in the current directory, which must be a local Postman workspace (a directory holding
|
|
394
394
|
\&.postman/ or postman/). Add requests as <request\-name>.request.yaml files beside it, then
|
|
395
395
|
publish with `postman workspace push`. Creating a collection in a workspace works with a
|
|
396
|
-
signed\-in credential or with the
|
|
396
|
+
signed\-in credential or with the session `postman init` starts.
|
|
397
397
|
|
|
398
398
|
|
|
399
399
|
|
|
@@ -1308,7 +1308,7 @@ Examples:
|
|
|
1308
1308
|
|
|
1309
1309
|
|
|
1310
1310
|
.SS "collection run"
|
|
1311
|
-
|
|
1311
|
+
Run a collection by ID or path, or a request file.
|
|
1312
1312
|
|
|
1313
1313
|
.B Usage:
|
|
1314
1314
|
<collectionId/Path> [options]
|
|
@@ -1468,7 +1468,9 @@ Do not dispatch run events (results, \-\-simulation start history, and analytics
|
|
|
1468
1468
|
|
|
1469
1469
|
.TP Examples:
|
|
1470
1470
|
Eg. postman collection run 123456\-45159473\-1e45\-1f34\-5678\-1234567890ab
|
|
1471
|
-
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
|
|
1472
1474
|
postman collection run <id> \-\-use\-mock "{{baseurl}} mock:12345678\-90ab\-cdef\-1234\-567890abcdef" # a mock in Postman cloud
|
|
1473
1475
|
postman collection run <id> \-\-use\-mock "{{baseurl}} mock:./mock/config.yaml delay"
|
|
1474
1476
|
postman collection run <id> \-\-use\-mock "{{baseurl}} mock:./a.yaml" \-\-use\-mock "api.com mock\-server:9d8e7f6a"
|
|
@@ -2607,7 +2609,7 @@ Run a monitor now and report the result.
|
|
|
2607
2609
|
.B Options:
|
|
2608
2610
|
.TP
|
|
2609
2611
|
.B \-\-api\-key <key>
|
|
2610
|
-
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`)
|
|
2611
2613
|
.TP
|
|
2612
2614
|
.B \-x, \-\-suppress\-exit\-code
|
|
2613
2615
|
Always exit 0, whatever the run's result or the failure
|
|
@@ -2709,7 +2711,7 @@ How iteration data is consumed, for example round_robin, repeat_last or stop_at_
|
|
|
2709
2711
|
Do not trigger an immediate run after creating the monitor
|
|
2710
2712
|
.TP
|
|
2711
2713
|
.B \-\-api\-key <key>
|
|
2712
|
-
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`)
|
|
2713
2715
|
.TP
|
|
2714
2716
|
.B \-\-json
|
|
2715
2717
|
Print the outcome, the created monitor's id, uid, name and active state, and the job of its first run, as JSON
|
|
@@ -2802,7 +2804,7 @@ Number of iterations to run
|
|
|
2802
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)
|
|
2803
2805
|
.TP
|
|
2804
2806
|
.B \-\-api\-key <key>
|
|
2805
|
-
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`)
|
|
2806
2808
|
.TP
|
|
2807
2809
|
.B \-\-json
|
|
2808
2810
|
Print the outcome and the monitor's id, uid, name and active state as JSON
|
|
@@ -2834,10 +2836,10 @@ Permanently delete a monitor. Prompts for confirmation unless \-\-yes is passed.
|
|
|
2834
2836
|
.B Options:
|
|
2835
2837
|
.TP
|
|
2836
2838
|
.B \-y, \-\-yes
|
|
2837
|
-
Skip the confirmation prompt; required when there is no interactive terminal
|
|
2839
|
+
Skip the confirmation prompt; required when there is no interactive terminal
|
|
2838
2840
|
.TP
|
|
2839
2841
|
.B \-\-api\-key <key>
|
|
2840
|
-
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`)
|
|
2841
2843
|
.TP
|
|
2842
2844
|
.B \-\-json
|
|
2843
2845
|
Print the outcome (deleted or aborted) and the monitor id as JSON
|
|
@@ -2851,7 +2853,7 @@ Examples:
|
|
|
2851
2853
|
postman monitor delete 12345678\-90ab\-cdef\-1234\-567890abcdef \-\-yes
|
|
2852
2854
|
postman monitor delete 12345678\-90ab\-cdef\-1234\-567890abcdef \-\-yes \-\-json
|
|
2853
2855
|
|
|
2854
|
-
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.
|
|
2855
2857
|
|
|
2856
2858
|
|
|
2857
2859
|
|
|
@@ -2878,7 +2880,7 @@ List a monitor's recent jobs, newest first. A job (also called an execution) is
|
|
|
2878
2880
|
.B Options:
|
|
2879
2881
|
.TP
|
|
2880
2882
|
.B \-\-api\-key <key>
|
|
2881
|
-
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`)
|
|
2882
2884
|
.TP
|
|
2883
2885
|
.B \-\-result <state>
|
|
2884
2886
|
Only jobs that finished in this state: success, failure, error or abort; any other value is rejected before any request
|
|
@@ -2920,7 +2922,7 @@ Show one job (also called an execution) and the state, runner and duration of ea
|
|
|
2920
2922
|
.B Options:
|
|
2921
2923
|
.TP
|
|
2922
2924
|
.B \-\-api\-key <key>
|
|
2923
|
-
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`)
|
|
2924
2926
|
.TP
|
|
2925
2927
|
.B \-\-json
|
|
2926
2928
|
Print the job as JSON, with each run's state, runner, counts, duration and attempts
|
|
@@ -2959,7 +2961,7 @@ Console, assertion and exception messages are the collection's own output, print
|
|
|
2959
2961
|
.B Options:
|
|
2960
2962
|
.TP
|
|
2961
2963
|
.B \-\-api\-key <key>
|
|
2962
|
-
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`)
|
|
2963
2965
|
.TP
|
|
2964
2966
|
.B \-\-attempt <n>
|
|
2965
2967
|
Which attempt to show, from 0 for the first (default: the latest)
|
|
@@ -2992,7 +2994,7 @@ List the monitors visible to you, one page at a time.
|
|
|
2992
2994
|
.B Options:
|
|
2993
2995
|
.TP
|
|
2994
2996
|
.B \-\-api\-key <key>
|
|
2995
|
-
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`)
|
|
2996
2998
|
.TP
|
|
2997
2999
|
.B \-w, \-\-workspace <id>
|
|
2998
3000
|
Only monitors in this workspace (ids from `postman workspace list`)
|
|
@@ -3059,7 +3061,7 @@ Show a monitor's configuration and its last run.
|
|
|
3059
3061
|
.B Options:
|
|
3060
3062
|
.TP
|
|
3061
3063
|
.B \-\-api\-key <key>
|
|
3062
|
-
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`)
|
|
3063
3065
|
.TP
|
|
3064
3066
|
.B \-\-json
|
|
3065
3067
|
Print the monitor as JSON, every field present (null when unset)
|
|
@@ -3093,7 +3095,7 @@ Show per\-request latency and outcome history for a monitor.
|
|
|
3093
3095
|
.B Options:
|
|
3094
3096
|
.TP
|
|
3095
3097
|
.B \-\-api\-key <key>
|
|
3096
|
-
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`)
|
|
3097
3099
|
.TP
|
|
3098
3100
|
.B \-\-since <dateTime>
|
|
3099
3101
|
Only executions at or after this ISO 8601 date\-time (defaults to 7 days ago)
|
|
@@ -3133,7 +3135,7 @@ Pause a monitor, so it stops firing on schedule.
|
|
|
3133
3135
|
.B Options:
|
|
3134
3136
|
.TP
|
|
3135
3137
|
.B \-\-api\-key <key>
|
|
3136
|
-
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`)
|
|
3137
3139
|
.TP
|
|
3138
3140
|
.B \-\-json
|
|
3139
3141
|
Print the outcome and the monitor's id, uid, name and active state as JSON
|
|
@@ -3159,7 +3161,7 @@ Resume a paused monitor, so it fires on schedule again.
|
|
|
3159
3161
|
.B Options:
|
|
3160
3162
|
.TP
|
|
3161
3163
|
.B \-\-api\-key <key>
|
|
3162
|
-
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`)
|
|
3163
3165
|
.TP
|
|
3164
3166
|
.B \-\-json
|
|
3165
3167
|
Print the outcome and the monitor's id, uid, name and active state as JSON
|
|
@@ -3232,7 +3234,7 @@ Lint the current local Postman workspace: its configuration (.postman/resources.
|
|
|
3232
3234
|
Read a workspace's metadata, and optionally the ids of what it holds.
|
|
3233
3235
|
.TP
|
|
3234
3236
|
.B workspace context
|
|
3235
|
-
Everything about a workspace: collections, environments, monitors, mocks, specs and
|
|
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.
|
|
3236
3238
|
.TP
|
|
3237
3239
|
.B workspace activity
|
|
3238
3240
|
Shorthand for `workspace context \-\-section activity`: who changed what, and the messages left on pushes.
|
|
@@ -3393,7 +3395,7 @@ Exit codes: 0 ok, 1 not found or API failure, 2 bad usage, 3 auth.
|
|
|
3393
3395
|
|
|
3394
3396
|
|
|
3395
3397
|
.SS "workspace context"
|
|
3396
|
-
Everything about a workspace: collections, environments, monitors, mocks, specs and
|
|
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.
|
|
3397
3399
|
|
|
3398
3400
|
.B Usage:
|
|
3399
3401
|
[options] [id]
|
|
@@ -3401,7 +3403,7 @@ Everything about a workspace: collections, environments, monitors, mocks, specs
|
|
|
3401
3403
|
.B Options:
|
|
3402
3404
|
.TP
|
|
3403
3405
|
.B \-\-section <names>
|
|
3404
|
-
Comma\-separated sections to show (collection, environment, monitor, mock, spec, flow, activity). Default: everything but activity. Counts are always reported for every inventory section.
|
|
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.
|
|
3405
3407
|
.TP
|
|
3406
3408
|
.B \-\-limit <n>
|
|
3407
3409
|
Max items per section, or entries for activity (default 25 items). A cut section says how many were left out.
|
|
@@ -3422,7 +3424,7 @@ Activity only: ask the API for a human\-readable description of each entry.
|
|
|
3422
3424
|
With only `\-\-section activity`: one plain line per entry (time, who, message).
|
|
3423
3425
|
.TP
|
|
3424
3426
|
.B \-\-json
|
|
3425
|
-
Print JSON (schemaVersion 1.
|
|
3427
|
+
Print JSON (schemaVersion 1.1). This is already the default when piped.
|
|
3426
3428
|
.TP
|
|
3427
3429
|
.B \-\-text
|
|
3428
3430
|
Print prose even when piped.
|
|
@@ -3525,9 +3527,9 @@ Print the created workspace as machine\-readable JSON.
|
|
|
3525
3527
|
|
|
3526
3528
|
.TP Examples:
|
|
3527
3529
|
|
|
3528
|
-
Requires a login (`postman login`), POSTMAN_API_KEY, or the
|
|
3529
|
-
`postman init` starts.
|
|
3530
|
-
|
|
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.
|
|
3531
3533
|
Refuses to run on CI: create once locally and commit the binding.
|
|
3532
3534
|
|
|
3533
3535
|
Examples:
|
|
@@ -4456,7 +4458,7 @@ Examples:
|
|
|
4456
4458
|
Send HTTP requests from the command line with full Postman capabilities including authentication, environment variables, assertions, retries, and detailed output control.
|
|
4457
4459
|
|
|
4458
4460
|
.B Usage:
|
|
4459
|
-
[METHOD] <URL> [options]
|
|
4461
|
+
[METHOD] <URL|request\-file> [options]
|
|
4460
4462
|
|
|
4461
4463
|
.B Options:
|
|
4462
4464
|
.TP
|
|
@@ -4579,6 +4581,13 @@ Examples:
|
|
|
4579
4581
|
DELETE request:
|
|
4580
4582
|
postman request DELETE https://api.example.com/users/123
|
|
4581
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
|
+
|
|
4582
4591
|
Authentication:
|
|
4583
4592
|
Bearer token authentication:
|
|
4584
4593
|
postman request https://api.example.com/protected \e
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "postman-cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.84.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.84.0",
|
|
61
|
+
"@postman/pm-bin-macos-x64": "1.84.0",
|
|
62
|
+
"@postman/pm-bin-linux-x64": "1.84.0",
|
|
63
|
+
"@postman/pm-bin-linux-arm64": "1.84.0",
|
|
64
|
+
"@postman/pm-bin-windows-x64": "1.84.0"
|
|
65
65
|
}
|
|
66
66
|
}
|