Zum Inhalt springen

Postman CLI Updates & Release Notes

Einträge
126
Quellen
1
Zuletzt aktualisiert

Folge Postman CLI, um die Release Notes in deinen Feed zu holen.

Postman CLI von Postman

Postman CLI v1.79.0

Improvements

Run a command behind the simulation proxy

The postman simulation run command accepts the --lift option with --proxy. Pass it your app’s start command, such as --lift "npm start", and the CLI starts that command for you with the proxy settings already in place, so you don’t copy and paste them into your shell.

Choose how a generated mock behaves

The postman mock generate command accepts the --mode option, which takes static to replay the examples,stateful to keep records, or ai.The existing --stateful flag is a shorthand for --mode stateful.

Generate a mock with AI

The postman mock generate command accepts --mode ai, which infers realistic data and business rules from your specification or collection and generates a stateful mock. Add --instructions for rules the contract doesn’t state, such as "Orders can only be canceled before they ship".

Generate a mock from a dataset

The postman mock generate command accepts the --dataset option, which turns each table in a dataset into a resource and its first 20 rows into records. Pass a dataset ID from Postman or the path to a local .dataset.yaml file. In AI mode, the AI sees column names and types, never the rows.

Generate a mock from a specification or collection …

Originalquelle(öffnet in neuem Tab)Problem melden

Postman CLI von Postman

Postman CLI v1.77.0

What’s New

Share workspaces, collections, environments, and monitors from the command line

The postman workspace share, postman collection share, postman environment share, and postman monitor share commands share a workspace, collection, environment, or monitor with the people you name. Pass each person with --user, and set their access with --role, either viewer (the default) or editor.

Improvements

Get the same JSON fields from every monitor and runner command

The postman monitor and postman runner commands print the same --json fields, so scripts and agents now get the same fields for the same resource from every command.

Read url instead of monitorUrl and appUrl in monitor JSON output

The postman monitor get and postman monitor create commands no longer print monitorUrl, and the postman monitor jobs list command no longer prints appUrl. Read the url field instead.

Get distinct exit codes from postman monitor delete

The postman monitor delete command now exits with code 8 when it has no terminal to ask for confirmation and you didn’t pass --yes. It exits with code 5 when you decline the confirmation prompt. Previously these exited with code 1 and code 0.

Page through monitors and monitor jobs with a page number …

Originalquelle(öffnet in neuem Tab)Problem melden

Postman CLI von Postman

Postman CLI v1.76.0

Improvements

Run collections against a mock with one flag

The --mock option is removed from the postman collection run command. Use --use-mock instead, and name the URL or variable to redirect. For example, replace --mock ./postman/mocks/orders with --use-mock "{{baseUrl}} mock:./postman/mocks/orders". A mock started this way binds a free port on its own and the run redirects to it, so there’s no port to set. The --port option now applies only to --simulation.

Pass inline variables to local mocks during a collection run

Local mocks that --use-mock starts receive the run’s --env-var and --global-var values, so the mock’s handlers resolve the same inline variables as the run. Environment and globals files, passed with --environment or --globals, don’t reach the mock.

Reference Shared Vault secrets by key in dataset sources

The postman dataset source add and postman dataset source update commands accept two new forms of secret reference. Use vault:<KEY> to look a Shared Vault secret up by key, instead of naming its IDs, or env:<NAME> to read the POSTMAN_VAULT_<NAME> environment variable.

Create secrets with reusable JSON output

The postman secret create command accepts the --json option. It prints each secret’s key, secret ID, and vault ID, using the same field names as postman secret list --json, so you can feed the output straight into a vault: reference. Secret values are never printed. …

Originalquelle(öffnet in neuem Tab)Problem melden

Postman CLI von Postman

Postman CLI v1.75.0

What’s New

View a workspace’s activity feed

The postman workspace activity command shows who changed what in a workspace and when. It reads the workspace bound to the current folder or the workspace ID you pass. Filter the feed with --type, and add --json for machine-readable output.

Improvements

Run application tests in a CI/CD pipeline

The postman app test command doesn’t prompt for setup when there’s no interactive terminal, such as in a CI job. It uses the options you pass instead. When a collection or a test command is missing, the command exits with code 2 and names the options to pass.

Generate a collection from test traffic when you run application tests

The postman app test command accepts the --generate-collection option. It captures traffic from your application tests and generates a collection with a test for each captured API endpoint. The tests assert the status codes and response times observed during the capture, and the shape of each JSON response body. It then runs those tests.

Set up the collection and capture plugin in one step

The postman app test command accepts the --yes option. It generates a collection from test traffic and installs the capture plugin, each only when it isn’t already set up. Passing --generate-collection requests the same collection generation on its own.

Use your Playwright configuration without setting a test command …

Originalquelle(öffnet in neuem Tab)Problem melden

Postman CLI von Postman

Postman CLI v1.74.0

What’s New

Delete a flow

The postman flows delete command deletes a flow in the Postman Cloud by its flow ID or a local flow by its file path. The command asks for confirmation unless you pass --yes.

Improvements

Lint a specification against a local Spectral ruleset

The postman spec lint command accepts the --ruleset option, so you can lint an OpenAPI or AsyncAPI specification against a Spectral ruleset on your machine. Custom functions are supported. The same sign-in and plan requirements apply as for linting with governance rules.

Generate mocks that keep state

The postman mock generate command accepts the --stateful option. For endpoints that map to create, read, list, update, and delete operations, the command generates handlers that store data with pm.state instead of returning static example responses.

Run performance tests in local mode

The postman performance run command now supports local mode, so you can pass the path to a local collection instead of a cloud collection ID. Whether the run is recorded in Postman depends on whether that collection is linked to a cloud collection in .postman/resources.yaml.

Use a Native Git-linked local collection with cloud runners

The postman performance run command accepts the path to a Native Git-linked local collection with the --runner postman-cloud and --runner postman-cloud-static-ip options.

Check whether a performance run was recorded in ndjson output …

Originalquelle(öffnet in neuem Tab)Problem melden

Postman CLI von Postman

Postman CLI v1.73.0

Die Version 1.73.0 des Postman CLI führt Syntax-Linting ohne Governance-Checks ein, erfordert für lokale Spezifikationen eine Anmeldung, installiert das Binary in CI an einen standardmäßigen PATH-Ort und bietet einen festen Pfad über einen Symlink.

Improvements

Lint a specification’s syntax without governance checks

The postman spec lint command accepts the --issueType option with the value syntax. The option limits linting to syntax checks and skips governance rules, and it works on a local specification file even when you aren’t signed in.

Linting a local specification requires signing in

When you aren’t signed in, the postman spec lint command stops with an error for a local specification file. The error tells you to run postman login, or to use --issueType=syntax to lint syntax only. Previously, the command ran the syntax checks and showed a sign-in notice instead.

Install the Postman CLI to a standard PATH location in CI

The install script for macOS and Linux installs the postman binary to /usr/local/bin when that location is writable without sudo. Otherwise, it installs to $HOME/.local/bin as before, and it never prompts for sudo unless you pass --system. Because /usr/local/bin is on the default PATH of most systems, the postman binary is found in later CI steps and Docker RUN lines.

Find the Postman CLI at a fixed path

After the install script runs, the Postman CLI is always reachable at $HOME/.local/bin/postman. This is because when the script installs the binary to another location, it adds a symlink at $HOME/.local/bin/postman pointing to the binary. This gives callers such as the Postman desktop app one fixed path to check.

Originalquelle(öffnet in neuem Tab)Problem melden

Postman CLI von Postman

Postman CLI v1.71.0: Neue Befehle für Vault, Collections und mehr

Die neuen Befehle postman secret list, postman collection delete, postman environment delete, postman dependency get und postman performance get erweitern die CLI um Funktionen zur Verwaltung von Vault-Geheimnissen, Löschen von Collections und Umgebungen sowie zum Anzeigen von Abhängigkeiten und Performance-Läufen.

What’s New

List the secrets in a workspace’s Shared Vault

The postman secret list command lists the secrets in a workspace’s Postman Shared Vault. It shows each secret’s key, secret ID, vault ID, and allowed domains, and never shows the secret’s value. Pass the secret ID and vault ID to postman environment var set to link an environment variable to a secret.

Delete a collection

The postman collection delete command deletes a collection by its collection ID or a local collection by its directory path. The command asks for confirmation unless you pass --yes.

Delete an environment

The postman environment delete command deletes an environment by its environment ID or local environment file path. The command asks for confirmation unless you pass --yes.

View a workspace dependency

The postman dependency get command shows a workspace dependency declared in .postman/resources.yaml. Use --type to match only collection, environment, or mock dependencies.

Get a performance run by its run ID

The postman performance get command shows one performance run by its run ID. Use --output to choose the format. It accepts table, which is the default, or json. The --json option is an alias for --output json.

Read and update global variables …

Originalquelle(öffnet in neuem Tab)Problem melden

Postman CLI von Postman

Postman CLI v1.70.0: Simulation und Installationsverbesserungen

Der Befehl postman simulation ersetzt postman simulate, die Installation erfordert kein sudo mehr, postman init kann ohne Eingabeaufforderungen laufen und Gast-Sitzungen werden von Spezifikations- und Umgebungsbefehlen unterstützt.

What’s New

Create, run, and manage simulations with a new command

The postman simulation command replaces the postman simulate command. Use the new command family to create, list, get, run, push, deploy, and delete simulations. The postman simulation run command serves all the mocks on one port. The now deprecated postman simulate run command used to open a port for each mock.

Improvements

Install Postman CLI without sudo

The install script for macOS and Linux installs to $HOME/.local/bin by default and doesn’t prompt for sudo. Use --prefix to choose another location or --system to install system-wide. Previously, the script installed to /usr/local and used sudo when that location wasn’t writable.

Run postman init without prompts

The postman init command accepts the --yes option to take the default for every question instead of asking or stopping. The command also creates and binds a workspace with personal visibility unless you set another value with the --visibility option. When used in CI, the command doesn’t create a workspace.

Use guest sessions with specification commands

The postman spec list, get, create, and delete commands and the postman spec file commands accept the guest session that the postman init command creates.

Use guest sessions with environment commands …

Originalquelle(öffnet in neuem Tab)Problem melden

Postman CLI von Postman

Postman CLI 1.69.0: Requests, Folders, Specs lesen und Secrets anlegen

Postman CLI 1.69.0 ergänzt Befehle zum Anzeigen einzelner Requests, Folders und Specification-Dateien, zum Anlegen von Secrets im Shared Vault sowie die Befehlsfamilie postman collection example zur Verwaltung von Examples.

What’s New

Read requests and folders in a collection without exporting it

The postman collection request get and postman collection folder get commands print a single request or folder from a collection, either locally or from the cloud. You can inspect an item before changing it instead of reading collection files by hand.

View a single specification file

The postman spec file get command prints the contents of one file from a specification without reading the whole specification. This helps you review contract details from the terminal.

Create a secret in your team’s Shared Vault

The postman secret create command adds a secret to your team’s Postman Shared Vault. This streamlines secure credential management as part of your automation and CI workflows.

Create and manage examples under a request

The postman collection example command family lets you add, update, get, list, and remove examples (saved responses) under a request. It works on local v3 collections or cloud collections.

Improvements

Schema-valid values when generating collections from OpenAPI …

Originalquelle(öffnet in neuem Tab)Problem melden

Postman CLI von Postman

Postman CLI 1.68.0: Monitor-Teilmengen und Collection-Import

Postman CLI 1.68.0 erlaubt Monitore mit einer Teilmenge von Requests, importiert Collections aus curl-Befehlen oder HAR-Dateien und bringt Verbesserungen bei postman mock get, postman request und postman collection lint.

What’s New

Run a subset of requests in a monitor

You can configure a monitor to run a subset of its collection’s requests instead of the full collection. Pass -i, --item <id> (repeatable) to postman monitor create or postman monitor update to list the requests or folders to include, in the order you want them to run. On postman monitor update, --clear-items resets the selection so the monitor runs every request again.

Import a collection from a curl command or HAR file

The new postman collection import <src> command creates a Postman Collection from a curl command or a HAR file.

Improvements

View a scenario’s endpoints for a mock

The postman mock get command now lists the endpoints for every scenario associated with a mock, not only the default one. This enables you to discover and use non-default scenario endpoints without leaving the CLI.

SSL options and a cookie jar for a request

The postman request command now accepts SSL configuration and cookie jar options. This gives you more control over request behavior when working with secured endpoints or session-based APIs.

Lint warning for request file names

The postman collection lint command warns when a .yaml or .yml request file in a collection folder doesn’t use the required .request.yaml suffix. This helps you catch misnamed request files before you run the collection.

JSON output for more workspace commands …

Originalquelle(öffnet in neuem Tab)Problem melden

Postman CLI von Postman

Postman CLI 1.67.0: Collection-Dokumentation veröffentlichen

Postman CLI 1.67.0 führt postman collection publish zum Veröffentlichen von Collection-Dokumentation ein und verbessert postman mock run, postman dataset source add sowie die Synchronisierung von URL und Query-Parametern.

What’s New

Publish collection documentation to the cloud

The postman collection publish command publishes a cloud collection’s public documentation, making it visible to anyone, or requests Community Manager approval when your workspace requires it. Configure the publish with --environment, --title, --description, and --note, and add --json for machine-readable output.

Improvements

See full request and response details while a mock runs

The postman mock run command now streams the same detailed request and response log as postman mock log, with secrets redacted. Pass --output ndjson for a machine-readable event stream instead.

Every worksheet in a spreadsheet becomes its own dataset source

The postman dataset source add command now adds every worksheet in a spreadsheet (xlsx, xls, ods) as its own queryable datasource, named source_<worksheet>.

Keep a request’s URL and query parameters in sync

The postman collection request update command now updates a request’s stored query parameters to match whenever you pass the --url option with a new query string. The postman collection lint command now flags a request whose query parameters and URL don’t match.

Installers add Postman CLI awareness for coding agents …

Originalquelle(öffnet in neuem Tab)Problem melden

Postman CLI von Postman

Postman CLI 1.66.0: Specs löschen und Dependencies entfernen

Postman CLI 1.66.0 ergänzt postman spec delete und postman dependency remove, schützt bestehende lokale Collections vor dem Überschreiben und unterstützt Datasets in Mock-Request-Handlern über --dataset.

What’s New

Delete a specification

The postman spec delete command removes a specification by its cloud ID or local file path. Pass -y or --yes to skip the confirmation prompt, and --api-key to authenticate when you delete by cloud ID. Deleting a specification can’t be undone.

Remove a workspace dependency

The postman dependency remove command removes a workspace dependency and deletes its local files. Identify the dependency by its cloud ID, display name, or on-disk name from the postman dependency list command. Removing a collection also removes the environments pinned to it, unless another collection pins them too.

Improvements

Protect an existing collection from being overwritten

The postman spec generate collection command no longer overwrites an existing local collection, so it can’t erase the test scripts you added to it. To regenerate and replace that collection on purpose, pass --force.

Use datasets in a mock’s request handlers

The postman mock run command accepts a --dataset option that loads one or more local .dataset.yaml files, or directories of them. The mock’s request handlers can then read them with pm.datasets(<id>). Pass --dataset more than once to load several.

Bug Fixes

  • Fixed the postman request command so a response with a non-2xx or non-3xx status code exits with code 1. …

Originalquelle(öffnet in neuem Tab)Problem melden

Postman CLI von Postman

Postman CLI 1.65.0: Workspace löschen, Git trennen, Spec-Sync

Postman CLI 1.65.0 bringt Befehle zum Löschen eines Workspace und zum Trennen der Git-Integration sowie eine Synchronisierung in beide Richtungen zwischen Specifications und Collections.

What’s New

Delete a workspace from the CLI

The postman workspace delete <workspaceId> command permanently deletes a workspace and everything in it.

Disconnect a workspace from Git

The postman workspace disconnect-git [workspaceId] command removes the Git integration from a workspace without leaving the CLI. It disconnects the workspace in Postman and clears the connection in .postman/resources.yaml. No local files are deleted. With no ID, it disconnects the workspace this folder’s connected to. Pass --yes to skip the confirmation prompt in CI.

Two-way sync between specifications and collections

You can now keep a specification and its generated collection linked and regenerate either side on demand. The postman spec generate collection <spec> command creates a collection from a specification and records the link. The postman spec sync collection <spec> command regenerates the collection from its linked specification. In the other direction, postman collection generate spec <collection> creates an OpenAPI specification from a collection, and postman collection sync spec <collection> regenerates the specification from its linked collection. Both directions work in local and cloud modes.

Improvements

Mock run history is recorded …

Originalquelle(öffnet in neuem Tab)Problem melden

Postman CLI von Postman

Postman CLI 1.64.0: Folder und Requests in Gast-Sitzung verwalten

Gastnutzer können mit Postman CLI 1.64.0 Folders und Requests in einer Collection hinzufügen, aktualisieren und entfernen, was zuvor volle Anmeldedaten erforderte.

What’s New

Manage collection folders and requests in a guest session

Guest users can add, update, and remove folders and requests in a collection with the Postman CLI. These operations previously required full authentication credentials. They are available to users operating under a guest session.

Originalquelle(öffnet in neuem Tab)Problem melden

Postman CLI von Postman

Postman CLI 1.63.0: Collection-Folder verwalten und Fehlerbehebungen

Postman CLI 1.63.0 führt die Befehle postman collection folder add, update und rm ein, erlaubt collection list und get in Gast-Sitzungen und behebt mehrere Fehler bei postman init, performance run und spec create.

What’s New

Add, update, and remove collection folders

The postman collection folder add, postman collection folder update, and postman collection folder rm commands manage folders inside a collection, both locally and in the Postman Cloud. Pass the collection with --collection <id|name> and scope to a subfolder with --folder. The add command creates an empty folder. The update command changes a folder’s name, description, auth, or scripts. The rm command removes a folder. Add --workspace to edit a cloud collection, or work against local git-native files by default. All three support --json.

Improvements

Run collection commands in a guest session

The postman collection list and postman collection get commands run in a guest session.

Bug Fixes

  • Fixed the postman init --json command exiting with a success code when the requested workspace was not created. It now exits non-zero and runs the workspace step when --visibility asks for one.
  • Fixed the missing interactive header and preflight error output on postman performance run. The Live view link and the --data-file validation error are restored on the default --output auto path.
  • Fixed postman spec create --spec-version rejecting full versions such as 3.0.3. Patch versions are accepted for OpenAPI and AsyncAPI, and Swagger 2.0 reports a clear message because it defines only 2.0. …

Originalquelle(öffnet in neuem Tab)Problem melden

Postman CLI von Postman

Postman CLI 1.62.0: Request-Verwaltung, Team-Liste, Feedback, describe

Postman CLI 1.62.0 ergänzt postman collection request-Befehle, postman team list und postman feedback, benennt postman context in postman describe um und zeigt bei postman init die generierten Dateien als Dateibaum.

What’s New

Add, update, and remove a collection’s requests

The new postman collection request commands let you add, update, and delete the requests in a local v3 collection. Pass --workspace to work on a collection in the Postman Cloud instead.

List the teams in your organization

The new postman team list command lists the teams inside your organization. For example, you can use it to find a team’s ID for a command like postman workspace create.

Send feedback about the Postman CLI

The new postman feedback command lets you, or an agent, submit feedback about CLI usability, gaps, and suggestions.

postman context is now postman describe

Available as a beta feature

The postman context command has been renamed to postman describe. The command does the same thing as before, fetching API context for AI coding agents. The rename is designed to avoid potential human and agent confusion with the unrelated postman context-graph command. Please update any scripts or automation that call postman context to use postman describe instead.

Improvements

See a new project’s layout as a file tree

The postman init command now prints the files it generates as a file tree. This means you can see the project’s shape at a glance instead of a flat list of paths. Machine-readable output (--json) is unchanged.

Clearer reminder when you’re working as a guest …

Originalquelle(öffnet in neuem Tab)Problem melden

Postman CLI von Postman

Postman CLI 1.60.0: Fragen an den Context Graph und neue Befehle

Postman CLI 1.60.0 ermöglicht mit postman context-graph ask und status Fragen in natürlicher Sprache zu den APIs des Teams und bringt unter anderem postman workspace get, postman performance list sowie das Ändern der Monitor-Umgebung.

What’s New

Ask natural-language questions about your team’s APIs

The postman context-graph ask and status commands let you ask natural-language questions about the APIs and dependencies indexed in your team’s Context Graph. Run ask with --wait to get the answer inline, or without it to get an ID you check later with status. For example, postman context-graph ask "What depends on billing-api?" --wait submits a question, and postman context-graph status <id> checks on a question you asked earlier. Add --json to either command for machine-readable output.

Change or remove a monitor’s environment

The postman monitor update command accepts -e, --environment <id> to set or replace the environment a monitor runs its collection with. You can use --clear-environment to run it with no environment. Previously, you could choose the environment only when creating the monitor.

Get details for a single workspace

The new postman workspace get command fetches one workspace by ID and prints its details, such as its visibility, the team that owns it, and its timestamps. It’s read-only, so it’s a safe way to inspect workspace metadata in scripts and automation.

List a collection’s past performance runs

The new postman performance list command lists a collection’s past performance test runs, newest first, so you can review history and track trends. Specify the collection with its ID.

Create and manage JDBC dataset sources …

Originalquelle(öffnet in neuem Tab)Problem melden

Postman CLI von Postman

Postman CLI 1.59.0: Monitor-Metriken, Workspace-Diff, Collection aus Spec

Postman CLI 1.59.0 bringt postman monitor metrics, postman workspace diff, postman spec generate collection sowie postman collection new und postman environment new zum lokalen oder Cloud-basierten Anlegen.

What’s New

See per-request latency history for a monitor

The new postman monitor metrics command shows a monitor’s per-request latency and outcomes, grouped by request and region. Use it to see which request is slow or failing and how its behavior has trended over time.

Preview local workspace changes before pushing

The new postman workspace diff command shows the differences between your local workspace and your Postman Cloud workspace, so you can preview what a postman workspace push would change. Use this read-only command to review drift before you push.

Generate a collection from a specification

The new postman spec generate collection command creates a Postman collection from an OpenAPI specification. Use --folder-strategy to group endpoints into folders by Paths (default) or Tags. Pass a local file path to generate the collection on disk, or a cloud spec ID to generate it in the Postman Cloud.

Scaffold collections and environments

The new postman collection new and postman environment new commands create an empty collection or environment locally. You can pass --workspace to create the element in a Postman Cloud workspace instead.

Get and list collections …

Originalquelle(öffnet in neuem Tab)Problem melden

Postman CLI von Postman

Postman CLI v1.58.0: Monitor- und Abhängigkeitsverwaltung

Die neue CLI-Version fügt Befehle zum Erstellen, Planen und Verwalten von Monitoren sowie zum Auflisten, Installieren und Aktualisieren von Abhängigkeiten hinzu.

What’s New

Create, schedule, and manage monitors

New postman monitor and postman runner commands let you manage monitors from the command line, not just run them. Create a collection-based monitor with a cron schedule and time zone, choose where it runs, and set failure notifications, retries, and run options. Update, pause, resume, delete, list, and get monitors, and inspect a monitor’s jobs and runs. The postman monitor run command gains --async, which returns the run’s job ID and Postman URL without waiting for the run to finish. The postman runner list and regions commands show your self-hosted runners and the valid region and runner values.

List, install, and update dependencies

New postman dependency list, install, and update commands inspect and materialize your project’s declared dependencies: list shows the dependencies in .postman/resources.yaml, install materializes them into postman/.dependencies/, and update refreshes them to the latest content.

Create and edit API specifications …

Originalquelle(öffnet in neuem Tab)Problem melden

Postman CLI von Postman

Postman CLI v1.57.0: Umgebungs- und Spezifikationsverwaltung

Neue CLI-Befehle ermöglichen die Verwaltung von Umgebungen sowie das Auflisten und Abrufen vollständiger API-Spezifikationen.

What’s New

Manage environments

New postman environment commands let you work with Postman environments from the command line: list environments, read an environment, and set, read, or remove individual variables. The commands work with local environment files and cloud environments referenced by ID. Add --json for machine-readable output.

List your API specifications

The postman spec list command lists API specifications. Pass a path to scan local specification files (OpenAPI or AsyncAPI) on disk, or run it without a path to list the specifications in your Postman workspace. The output includes specification names, IDs, types, and root files. Add --json for machine-readable output.

Get a full API specification

The postman spec get <spec> command reads a specification’s full definition by ID or local file path, including every file in a multi-file specification. It prints a summary of the specification, including its name, type, file count, and root file. It also lists each file the specification contains, showing its path, type (root or supporting file), size, and content. Add --json for machine-readable output.

Add workspace dependencies …

Originalquelle(öffnet in neuem Tab)Problem melden