Dark mode switch icon Light mode switch icon

Manage Gatekeeper

1 min read

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

Originally published on by Lucas Cantor