Search code examples
magentomagento2

How to set Magento 2 configuration setting through terminal?


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).


Solution

  • Ooo... Found the answer, can do this directly with mysql

    REPLACE INTO core_config_data (path, value) VALUES('webapi/webapisecurity/allow_insecure', 1);