0

I am trying to run a postman collection with newman on Macbook but getting the following error.

zsh: no matches found: https://api.getpostman.com/collections

I haven't shared complete URL due to reason.

Please let me know how can I fix this issue as I am new to using Macbook.

Abandev
  • 95
  • 1
  • 1
  • 14

2 Answers2

0

You need to click on your profile image top right, then click settings, and then create an API key.

enter image description here

Once you have an API key add it to the Auth tab in your API call, with the key x-api-key and the value is your API key.

enter image description here

This link shows how to add the API key when running with Newman.

https://blog.postman.com/newman-run-and-test-your-collections-from-the-command-line/

w4dd325
  • 527
  • 5
  • 21
0

Use the below command

newman run "https://api.getpostman.com/collections"
Jeremy Caney
  • 7,102
  • 69
  • 48
  • 77