Manage Gatekeeper
Disclaimer: This is an old post. Content may be out of date.
The spctl
utility can be used to manage the configuraton of macOS’ Gatekeeper security system.
Check current Gatekeeper configuration status:
spctl --status
Disable Gatekeeper entirely:
spctl --master-disable
Enable Gatekeeper again:
spctl --master-disable
Reset all user-defined Gatekeeper rules:
spctl --reset-default