postman-cli 1.96.0 → 1.97.2

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.
Files changed (3) hide show
  1. package/README.md +21 -1
  2. package/man/postman.1 +14 -11
  3. package/package.json +6 -6
package/README.md CHANGED
@@ -54,6 +54,26 @@ postman collection run postman/collections/orders
54
54
 
55
55
  Run `postman init --dry-run` to see what it will do first. See [`postman init`](https://learning.postman.com/docs/postman-cli/postman-cli-init/).
56
56
 
57
+ ## Context, simulate, verify
58
+
59
+ Coding agents can't see how the rest of your system behaves, try risky changes safely, or prove a change works. These three steps give them that. Each stands alone, and none changes your workspace, collections or code by itself.
60
+
61
+ ```bash
62
+ # Context: what exists, what changed, and who depends on it
63
+ postman workspace context
64
+ postman workspace context --section activity
65
+ postman context-graph ask "Which services call POST /payments?" --wait
66
+
67
+ # Simulate: run your service against stand-ins for its dependencies
68
+ postman simulation run postman/simulations/checkout.sim.yaml
69
+
70
+ # Verify: run the collection's tests, against the simulation
71
+ postman collection run postman/collections/checkout \
72
+ --simulation postman/simulations/checkout.sim.yaml
73
+ ```
74
+
75
+ See [Context, simulate, and verify](https://learning.postman.com/docs/postman-plugin/context-simulate-verify).
76
+
57
77
  ## Agent skills
58
78
 
59
79
  `postman init` installs Postman's agent skills in `postman/skills/` and adds a pointer to them in `AGENTS.md`. `postman update` updates the CLI and the repo's skills. `postman status` shows the CLI version, skills, account and plugin state.
@@ -158,7 +178,7 @@ postman simulation run checkout.sim.yaml --proxy \
158
178
 
159
179
  A simulation is a `.sim.yaml` file that combines mocks and their routing. With `--proxy`, requests to each mock's `origin` hostname, such as `api.stripe.com`, reach the mock, and all other traffic goes to its real destination, so you only simulate what you choose. `--lift` starts your command with the proxy already configured. Multiple agents can run their own simulations at the same time without interfering with each other.
160
180
 
161
- A context file beside each simulation records the assumptions your code relies on, what was observed and where it came from, including what has and hasn't been verified. The next run, agent or teammate starts from what is already established instead of rediscovering it. Simulations catch problems earlier; they don't replace a final check against the real services.
181
+ A context file beside each simulation records what your code assumes and what has been verified, so the next run, agent or teammate starts from it. Simulations catch problems earlier.
162
182
 
163
183
  Add `--deploy` to `postman simulation create` to share the whole environment as one mock server with the same routing. See [Postman Simulator](https://learning.postman.com/docs/design-apis/simulate-conditions/overview/).
164
184
 
package/man/postman.1 CHANGED
@@ -1,4 +1,4 @@
1
- .TH POSTMAN 1 "2026-12-01" "v1.96.0" "Postman CLI Manual"
1
+ .TH POSTMAN 1 "2026-12-04" "v1.97.2" "Postman CLI Manual"
2
2
  .SH NAME
3
3
  postman \- Command\-line companion utility for Postman
4
4
  .SH SYNOPSIS
@@ -4777,11 +4777,11 @@ Show workflow logs and step details without changing the workflow log level
4777
4777
  .B \-\-stream
4778
4778
  Stream JSON events and workflow logs followed by a summary
4779
4779
  .TP
4780
- .B \-\-visualize
4781
- Write an HTML visualization of the execution
4780
+ .B \-\-report <formats>
4781
+ Write reports: json (results record), html (workflow page)
4782
4782
  .TP
4783
- .B \-\-out <output.html>
4784
- New visualization file path (requires \-\-visualize)
4783
+ .B \-\-out <file>
4784
+ New report file path (requires exactly one \-\-report format)
4785
4785
 
4786
4786
  .TP Examples:
4787
4787
 
@@ -4790,7 +4790,9 @@ Examples:
4790
4790
  postman fn run ./workflow.mts
4791
4791
  postman fn run ./workflow.ts \-\-input inputs.json \-\-config config.json \-\-json
4792
4792
  postman fn run ./workflow.ts \-\-stream
4793
- postman fn run ./workflow.ts \-\-visualize \-\-out run.html
4793
+ postman fn run ./workflow.ts \-\-report html
4794
+ postman fn run ./workflow.ts \-\-report json,html \-\-json
4795
+ postman fn run ./workflow.ts \-\-report html \-\-out run.html
4794
4796
 
4795
4797
  Runs workflow code and may change external systems. Runs are not automatically retried.
4796
4798
  AI and eval blocks use Postman login; separate service credentials are not needed.
@@ -4798,6 +4800,7 @@ console.print values are shown without \-\-verbose. Use \-\-verbose for workflow
4798
4800
  Use console.print to display workflow values in the terminal.
4799
4801
  JSON and stream output retain returned values and workflow logs.
4800
4802
  Inputs/config and captured execution output are limited to 2 MiB each. Import\-time logs are suppressed.
4803
+ Reports are written to the current directory and never overwrite an existing file.
4801
4804
  Ctrl+C cancels the run; cancellation and timeout do not roll back completed actions.
4802
4805
 
4803
4806
 
@@ -5706,7 +5709,7 @@ Create, run, and manage Postman mocks — in your repository or in Postman cloud
5706
5709
  Generate a mock from a Postman collection, an OpenAPI file or a dataset, or a static mock from a built\-in sample shopping cart (POST /cart/items, GET /cart, POST /checkout). Writes a local mock by default, or a cloud mock with \-\-workspace. Add \-\-deploy to also make it a live mock server.
5707
5710
  .TP
5708
5711
  .B mock run
5709
- Start a mock using its path if it lives in your repository, or its id or <slug>.mock.<teamDomain> if it lives in Postman cloud (fetched and run locally).
5712
+ Start a mock using its path if it lives in your repository, or its id or name (<team>/<slug>) if it lives in Postman cloud (fetched and run locally).
5710
5713
  .TP
5711
5714
  .B mock stop
5712
5715
  Stop a mock started with `postman mock run` on this machine, and wait until it has exited and released its port.
@@ -5818,7 +5821,7 @@ Paths can be relative (e.g. ./my\-collection.json) or absolute (e.g. /Users/me/m
5818
5821
 
5819
5822
 
5820
5823
  .SS "mock run"
5821
- Start a mock using its path if it lives in your repository, or its id or <slug>.mock.<teamDomain> if it lives in Postman cloud (fetched and run locally).
5824
+ Start a mock using its path if it lives in your repository, or its id or name (<team>/<slug>) if it lives in Postman cloud (fetched and run locally).
5822
5825
 
5823
5826
  .B Usage:
5824
5827
  <mockIdOrPath>
@@ -5855,7 +5858,7 @@ Pass \-\-dataset multiple times to load several .dataset.yaml files (or director
5855
5858
  .TP Examples:
5856
5859
 
5857
5860
  Eg. postman mock run 12345678\-90ab\-cdef\-1234\-567890abcdef # by id, from Postman cloud
5858
- postman mock run stripe.mock.postman # by slug and team domain, from cloud
5861
+ postman mock run postman/stripe\-api # by team and name, from cloud
5859
5862
  postman mock run ./postman/mocks/orders # by path, from your repository
5860
5863
  postman mock run ./postman/mocks/orders \-\-environment ./postman/environments/dev.environment.yaml
5861
5864
  postman mock run ./postman/mocks/orders \-\-port auto # pick any free port
@@ -6307,7 +6310,7 @@ List the simulations in your repository or Postman cloud workspace
6307
6310
  Show a simulation's details using its .sim.yaml path if it lives in your repository, or its id if it lives in Postman cloud.
6308
6311
  .TP
6309
6312
  .B simulation run
6310
- Serve a simulation's mocks on one local port, routing each by its routeKey. Pass a .sim.yaml path (local), a Postman simulation id, or <slug>.mock.<teamDomain> (fetched and run locally).
6313
+ Serve a simulation's mocks on one local port, routing each by its routeKey. Pass a .sim.yaml path (local), a Postman simulation id, or a deployed simulation's name (<team>/<slug>; fetched and run locally).
6311
6314
  .TP
6312
6315
  .B simulation stop
6313
6316
  Stop a simulation started with `postman simulation run` on this machine, and wait until it has exited and released its port.
@@ -6441,7 +6444,7 @@ Paths can be relative (e.g. ./postman/simulations/checkout.sim.yaml) or absolute
6441
6444
 
6442
6445
 
6443
6446
  .SS "simulation run"
6444
- Serve a simulation's mocks on one local port, routing each by its routeKey. Pass a .sim.yaml path (local), a Postman simulation id, or <slug>.mock.<teamDomain> (fetched and run locally).
6447
+ Serve a simulation's mocks on one local port, routing each by its routeKey. Pass a .sim.yaml path (local), a Postman simulation id, or a deployed simulation's name (<team>/<slug>; fetched and run locally).
6445
6448
 
6446
6449
  .B Usage:
6447
6450
  [options] <simIdOrPath>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "postman-cli",
3
- "version": "1.96.0",
3
+ "version": "1.97.2",
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.96.0",
61
- "@postman/pm-bin-macos-x64": "1.96.0",
62
- "@postman/pm-bin-linux-x64": "1.96.0",
63
- "@postman/pm-bin-linux-arm64": "1.96.0",
64
- "@postman/pm-bin-windows-x64": "1.96.0"
60
+ "@postman/pm-bin-macos-arm64": "1.97.2",
61
+ "@postman/pm-bin-macos-x64": "1.97.2",
62
+ "@postman/pm-bin-linux-x64": "1.97.2",
63
+ "@postman/pm-bin-linux-arm64": "1.97.2",
64
+ "@postman/pm-bin-windows-x64": "1.97.2"
65
65
  }
66
66
  }