How to use postman cli with local yaml files

I upgrade my postman app, my local files which are integrated with our git were no longer supported and they have been migrated to the yaml format. Fine, yaml is actually nicer to work with than the mega json collection file.

However, it’s unclear how to run the collection using the local files now.

Previously I would provide a path to the json collection. It isn’t apparent how do do this locally with yaml files. Our set up is not in a position to run the collection using the cloud collection id. It always has to use the local files. Any ideas?

Hey @joint-operations-co8 :waving_hand:t2:

Welcome to the Community! :postman:

You can run those yaml files using the Postman CLI:

You would need to point to the directory, rather than a single collection file.

postman collection run "<postman/collections/<folderName>"

With elements like environments or globals, you can use the same flags (-e, -g) and point directly at the yaml file.