spctl Command Examples

Manage the security assessment policy subsystem. Utility for managing Gatekeeper in macOS. More information: https://keith.github.io/xcode-man-pages/spctl.8.html.

spctl --master-disable

spctl --add --label {{rule_name}} {{path/to/file}}

spctl --master-enable

spctl --list