Manage Gatekeeper
Old Post
This post is over two years old. 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