Controlling macOS Gatekeeper from the command line Terminal

  1. Knowledge Base
  2. Operating System
  3. Systems Administration
  4. MacOS
  5. Controlling macOS Gatekeeper from the command line Terminal

To disable/enable the Gatekeeper run the following respectively:
sudo spctl --master-disable
sudo spctl --master-enable

Check the status of Gatekeeper:
spctl --status

To add/remove an application to the approved application list:
spctl --add /Path/To/Application.app
spctl --remove /Path/To/Application.app

Leave a Reply

Your email address will not be published. Required fields are marked *