Newman unable to read the environment on MacBook (zsh: -e command not found)

44 Views Asked by At

I'm trying to perform API calls with Newman on zsh on McBook.

I tried this command:

newman run https://api.getpostman.com/collections/{{$collectionID}}?apikey={{$APIkey}}
 -e https://api.getpostman.com/environments/{{$envID}}?apikey={$APIkey}

, but it doesn't recognize the collection:

(zsh: no matches found: https://api.getpostman.com/environments/{{$collectionID}}?apikey={$APIkey}})

When i try with quotes, it doesn't recognize the env parameter:

newman run "https://api.getpostman.com/collections/{{$collectionID}}?apikey={{$APIkey}}"
 -e "https://api.getpostman.com/environments/{{$envID}}?apikey={$APIkey}"
zsh: command not found: -e
0

There are 0 best solutions below