config:set
Sets a configuration value. Stored in core_config_data.
Synopsis
bin/magento config:setExamples
Set the secure base URL globally.
bin/magento config:set web/secure/base_url https://example.com/Set the unsecure base URL for the default store.
bin/magento config:set --scope=stores --scope-code=default web/unsecure/base_url https://example.com/Pin the value in env.php so it can't be edited via admin UI.
bin/magento config:set --lock-env web/secure/base_url https://prod.example.com/See also
Related commands in config
Other config:* commands you might want next.
Every Magento dev tool, in one hosted workspace.
Free to sign up. Nothing to install. Drafts, audits, and projects saved across every tool.