Can we run shell scripts using Postman or Newman?

Archived topic — this may be out of date.
Newman has been replaced by the Postman CLI, Postman’s official, signed command-line tool. It runs collections as Newman did, and also lints API specs, runs mocks and monitors, and syncs local files with Postman from your terminal, CI/CD pipeline or coding agent.
Working with an AI coding agent? The Postman plugin lets agents in Claude Code, Cursor, Codex and others design, mock, test and ship APIs with Postman.
For current help, see the Postman docs, try the free Postman tools (no account needed), or join us on Discord.

I have a requirement where I need to first run API request using Postman and once request is successful, I need to run couple of shell scripts.

I can run the scripts manually but ideally I want postman/newman to automatically run the shell script once API request is successful.

Any help on this would be really appreciated.

@Swaroop_Varma

Can you create a shell script that will run the POSTMAN collection using “newman run” and then incorporate your other shell script logic into this script ?

Hi @dhoyt, thanks for the suggestion.

I will try it tomorrow and I will let you know.