You can use Newman and the Postman API to run Postman Collections in your continuous integration (CI) environment. First install Node.js and Newman in your CI environment. You can then use Newman to get and run your collection using the Postman API.
Before you begin, check the following prerequisites for running collections using Newman and the Postman API:
To learn how to install Newman and Node.js, see Install and run Newman.
You don’t need to install Node.js if your CI environment already has it installed.
To run a collection using Newman and the Postman API, use the following command:
If you need to provide an environment to the collection, add the --environment option with the appropriate parameters to the Newman command:
Learn more about using Newman with the Postman API.