如何通过终端设置 Magento 2 配置设置?

How to set Magento 2 configuration setting through terminal?

在我的例子中,我想从命令行设置 Stores -> Configuration -> Services -> Magento Web API -> Web API security -> Allow Anonymous Guest Access = Yes。 (如果需要,我也可以访问 mysql)。

哦...找到答案了,可以直接用mysql

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