View and set admin configurations using the command line
A demonstration for how to view, set, and find config values with the Commerce CLI. Understand where the values are saved and also where the default values come from.
Who is this video for?
- ÃÛ¶¹ÊÓƵ Commerce developers
Video content
Some commands used in the tutorial
Change the password security setting to recommended:
$ php bin/magento config:set admin/security/password_is_forced 0
Show the email address for the sales order auto copy functionality
$ php bin/magento config:show sales_email/order/copy_to
Show the empty result for a configuration that has a value in the admin
php bin/magento config:show trans_email/ident_sales/email
Mysql queries used in the tutorial
SELECT * FROM core_config_data WHERE path = 'sales_email/order/copy_to';
SELECT * FROM core_config_data WHERE path = 'sales_email/order_comment/copy_to';
SELECT * FROM core_config_data WHERE path = 'trans_email/ident_sales/email';
Where to find the default sales email
How to find the configuration value that is defined somewhere in codebase?grep -rnw vendor/magento/ -e 'sales@example.com'
To view a page in terminal and show line numbers cat -n vendor/magento/module-email/etc/config.xml