Simulator commands
Postman Simulator is available on Postman Solo, Team, and Enterprise plans. For more information, see the pricing page.
This topic covers simulator commands for the Postman CLI. The command isn’t supported for code mocks in the Postman cloud.
postman simulate run
You can use the postman simulate run command to start a code mock with a simulation applied to it. This enables you to observe how your service responds to disruptions and performance constraints. With simulations, you can identify and fix issues before deploying to staging or production.
The command runs the simulator configuration file that defines the mock and selected scenarios for simulating real-world conditions.
Add this command to your CI/CD script to run your service against simulated dependencies. This enables you to catch issues related to latency, errors, and rate limits before changes are deployed. Once running, your service or external tests can send requests to the mock URL and observe the responses with the simulated conditions applied.
To run a collection with a simulation, use the --simulate option with the postman collection run command.
To create a simulation and apply it to a code mock, see Simulate real-world conditions in Postman.
Usage
The path to the <simulation-name>.sim.yaml configuration file.