You can migrate your Newman scripts to use the Postman CLI commands. The Postman CLI is the recommended command-line tool for running collections and interacting with Postman features locally and in CI/CD pipelines.
Newman isn’t compatible with capabilities introduced in Postman v12, including Native Git workflows and the collection v3 format. Because Postman v12 collections in Local View use the v3 format, Newman can’t run collections created or updated in later versions of Postman. To continue running your collections and use these capabilities, migrate from Newman to the Postman CLI.
The following sections outline key differences, migration steps, and command mappings to help you migrate your Newman scripts to the Postman CLI.
The following capabilities require the Postman CLI and aren’t supported in Newman:
To migrate your scripts, replace your existing Newman commands with their equivalent Postman CLI commands. Use the postman collection run command to run collections with the Postman CLI, which has a similar set of options and syntax. Learn about mapping Newman commands to the Postman CLI.
For existing collections in your repository, use the postman collection migrate command to convert them to the new v3 format, making them compatible with Native Git workflows.
After you connect your Git project to your workspace, collections created in Local View are automatically stored in v3 format.
The following table maps common Newman commands to their equivalent Postman CLI commands: