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.