Manage Gatekeeper

2018-Feb-24

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

Gist on GitHub