Manage the security assessment policy subsystem. Utility for managing Gatekeeper in macOS. More information: https://www.unix.com/man-page/osx/8/SPCTL/.
spctl --master-disable
spctl --add --label {{rule_name}} {{path/to/file}}
spctl --master-enable
spctl --list