Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How to add Gatekeeper exceptions for command line tools, at the command line?

When first running a command-line tool not compiled on the local system, it is necessary to attempt to run the command, dismiss a graphical notification, open System Preferences, click "allow", attempt to run the command again, click another "allow", and finally successfully run the command. For directories containing large numbers of binaries this is prohibitively cumbersome, and cannot be scripted. It does not seem to be possible (or at least documented) how to add an exception using spctl for something that is not an .app, although clearly such exceptions can be created via the graphical tool.

Posted on Oct 16, 2019 8:13 AM

Reply

Similar questions

There are no replies.

How to add Gatekeeper exceptions for command line tools, at the command line?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.