MageSmith
config · Magento 2.4.9 (extracted from source · curated examples)

config:set

Sets a configuration value. Stored in core_config_data.

Synopsis

bin/magento config:set

Examples

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

Every Magento dev tool, in one hosted workspace.

Free to sign up. Nothing to install. Drafts, audits, and projects saved across every tool.