-
- Open terminal
- Type
sudo spctl --master-disable
and press enter/return - The usual “unidentified developer” system dialog will appear – click OK
- Now do the usual
open -a /path/to/application.app
To re-enable this, alter step two thusly: sudo spctl --master-enable
Context for this: I wanted to install Spaces Renamer so that I can name my OSX workspaces. As of OS10.15, you still can’t rename them.
I also had to disable SIP, as I explained in How to turn off SIP (System Integrity Protection) in OSX.