thanks vLew99 that worked for me - instructions below for those new to permission setting:
https://support.apple.com/en-ng/guide/terminal/apdd100908f-06b3-4e63-8a87-32e712...
you will still need to allow it to run in the security system preferences depending on which MacOS you are running...