My CLI will open for a millisecond then immediately close.
Any suggestions?
My CLI will open for a millisecond then immediately close.
Any suggestions?
Yes. I am on a Windows machine. I go to search>Postman Cli>Open, it will open just for a split second and then immediately close.
It’s a command line tool, if you open a new terminal on your machine and run the command:
postman --version
Do you see the current version returned?
I get this - 1.24.2, which does not appear to be the newest verstion.
I ran this in my cmd
npm install -g postman-cli
It is still saying version 1.24.2
That’s the latest version of the Postman CLI.
Are you looking to do something with the CLI? Running Collections in a terminal or a CI/CD pipeline?
I was wanting to experiment with it, yes.
If you’re seeing a response from the version command, it looks like you’re good to go. ![]()
You can run a Collection:
Experiment with using the built-in reporters:
You could even try out the new postman request command:
postman request 'https://postman-echo.com/get'
The Code snippet section in the right sidebar, will given you the code for a request you have open in the workbench: