In my case, I would like to set Stores -> Configuration -> Services -> Magento Web API -> Web API security -> Allow Anonymous Guest Access = Yes
from the command line. (I also have access to mysql if needed).
Ooo... Found the answer, can do this directly with mysql
REPLACE INTO core_config_data (path, value) VALUES('webapi/webapisecurity/allow_insecure', 1);