Quickly Approve Your Mac’s Gatekeeper Apps From the Command Line
Newer versions of OS X have a Gatekeeper feature that prevents you from installing applications from unknown developers without your permission. Typically, you need to go to System Preferences to approve the apps you want to install, but OS X Daily offers a slightly faster way through the command line.
To approve an application for Gatekeeper, you just need to open Terminal (Applications> Terminal) and enter this command, substituting the path and application name for your information:
spctl --add /Path/To/Application.app
To change this, simply --add
and --remove.
This process is slightly faster than going to System Preferences when you get used to it.
How to Add Gatekeeper Exceptions from the Command Line in Mac OS X | OS X Daily