Postman CLI - Auto refreshing tokens, supported?

Hi All,

Just a quick question: Does the latest version of Postman CLI support the auto-refreshing tokens implemented in the Postman desktop client?

I can see it’s working with the desktop client, but I see a 400 staus error in Postman cli logs.

Thanks in advance
Paul.

Hey @cruxto :wave:

I don’t believe that it’s been implemented:

You can use auto-refresh when manually sending the request. Auto-refresh isn’t supported for scheduled runs, monitors, the Postman CLI, or Newman.

I can check with the team to get some more information here though.

1 Like

Thanks, @danny-dainton, There doesn’t seem to be feature parity between Postman & the cli.

We are in the process of moving as much as we can to CI, and we are discovering things as we go.

Do you have documentation anywhere that lists what is and isn’t supported in Postman CLI, as it would be really helpful?

I extracted that quote from the link that you shared in the learning center.

I don’t believe that there will ever be a full 1:1 mapping of all the Postman App features to the Postman CLI - In the same way that not all features were available in Newman.

There are mentions of several limitations throughout the learning center but there is no single page that lists them all.

The best person to provide more information about the Postman CLI would be @malvika-chaudhary, who is the Senior Product Manager for the Postman CLI.

1 Like

Hi @cruxto

thanks for your feedback. Adding colleague Giridhar to the thread about OAuth 2.0.

Regarding parity between Postman CLI and Postman APP, the idea is to build the capabilities in a way that collection runs can be automated through CLI. If you are facing challenges with specific things, please let us know. I’d be happy to take that feedback and see where we can support.

Here is a calendar link if you like to meet and talk with me: Calendly - Malvika Chaudhary

Regards,
Malvika

Hi @cruxto ,

Typically, only the Client Credientials Grant type is recommended for CLI usage. Can you confirm if you are using this or any other grant type?

Hi Girdhar,

We are using the Client Credentials with clientId and secret,

This works in the Postman client fine, but when I ran the same collection via CLI the authentication was not happening for me, which meant the request failed with a 401 status code.

So I reverted to using a Pre-Request script which works for both Client and CLI.

Cheers