{"id":12935,"date":"2021-10-16T10:29:39","date_gmt":"2021-10-16T04:59:39","guid":{"rendered":"https:\/\/www.hiddentechies.com\/blog\/?p=12935"},"modified":"2021-10-16T10:29:39","modified_gmt":"2021-10-16T04:59:39","slug":"set-system-configuration-value","status":"publish","type":"post","link":"https:\/\/www.hiddentechies.com\/blog\/magento-2\/set-system-configuration-value\/","title":{"rendered":"Magento 2 &#8211; How to Set System Configuration Value Using CLI Command"},"content":{"rendered":"<p>The SSH access or Command Line Interface (CLI) provides facility for developers to run commands provided by Magento 2 extensions. In this post I am going to explain How to Set System Configuration Value Using CLI Command in Magento 2.<\/p>\n<p>Using below commands, you can set or display configuration values<\/p>\n<p>To set the value of configuration setting<\/p>\n<p><strong>Syntax:<\/strong><\/p>\n<p>php bin\/magento config:set [&lt;config_path&gt;] [value]<\/p>\n<p>The config path is &lt;section_id&gt;\/&lt;group_id&gt;\/&lt;field_id&gt;<\/p>\n<p>If the path is incorrect, this command returns an error. The &#8220;wrong\/config\/path&#8221; does not exist<\/p>\n<p><strong>For Example,<\/strong><\/p>\n<p>php bin\/magento config:set web\/secure\/base_url https:\/\/www.example.com\/<\/p>\n<p>Now below is the example to set value website wise<\/p>\n<p>php bin\/magento config:set &#8211;scope=websites &#8211;scope-code=base web\/secure\/base_url https:\/\/www.example.com\/<\/p>\n<p>Now below is the example to set value store wise<\/p>\n<p>php bin\/magento config:set &#8211;scope=stores &#8211;scope-code=default web\/secure\/base_url https:\/\/www.example.com\/<\/p>\n<p>Now to the value of configuration settings<\/p>\n<p><strong>Syntax:<\/strong><\/p>\n<p>php bin\/magento config:show [&lt;config_path&gt;]<\/p>\n<p><strong>For Example,<\/strong><\/p>\n<p>php bin\/magento config:show web\/secure\/base_url<\/p>\n<p>That&#8217;s it.<\/p>\n<p>If you have any query about the above code then you can ask in the comment section below.<\/p>\n<p>Check this <a href=\"https:\/\/www.hiddentechies.com\/blog\/magento-2\/identify-current-page-type\/\">Best Magento 2 Tutorial<\/a>.<\/p>\n<p>Thank You.<\/p>\n<div class=\"angwp_12010 _ning_cont _ning_hidden _ning_outer _align_center responsive\" data-size=\"custom\" data-bid=\"12010\" data-aid=\"0\" style=\"max-width:800px; width:100%;height:inherit;\"><div class=\"_ning_label _left\" style=\"\"><\/div><div class=\"_ning_inner\" style=\"\"><a href=\"https:\/\/www.hiddentechies.com\/blog?_dnlink=12010&t=1775802918\" class=\"strack_cli _ning_link\" target=\"_blank\">&nbsp;<\/a><div class=\"_ning_elmt\"><img decoding=\"async\" src=\"https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/angwp\/items\/12010\/Banner-2.png\" \/><\/div><\/div><\/div><div class=\"clear\"><\/div>","protected":false},"excerpt":{"rendered":"<p>The SSH access or Command Line Interface (CLI) provides facility for developers to run commands provided by Magento 2 extensions. In this post I am going to explain How to Set System Configuration Value Using CLI Command in Magento 2. Using below commands, you can set or display configuration values To set the value of&#8230; <\/p>\n<div class=\"actions\"><a href=\"https:\/\/www.hiddentechies.com\/blog\/magento-2\/set-system-configuration-value\/\">Continue Reading<\/a><\/div>\n","protected":false},"author":10,"featured_media":13189,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[59,2138],"tags":[729,9,10,2376,2377,2378],"_links":{"self":[{"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/posts\/12935"}],"collection":[{"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/comments?post=12935"}],"version-history":[{"count":5,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/posts\/12935\/revisions"}],"predecessor-version":[{"id":13188,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/posts\/12935\/revisions\/13188"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/media\/13189"}],"wp:attachment":[{"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/media?parent=12935"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/categories?post=12935"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/tags?post=12935"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}