Here I will show you how to exploit all commands in Magento 2 CLI (Part 4)
Part 4: Form Magento store using CLI
In this article we going to discuss about Magento command line CLI
Everyone knows Magento 2 has a powerful command-line interface tools (CLI). It permits you to complete task including installation, configuration, database backups, compiling LESS etc. Here I will show you how to form magento store using command-line. Before starting this guide please, refer our previous guidelines
- Magento 2 CLI Overview
- Examine Caches in Magento 2 using CLI
- Examine indexers in Magento 2 using CLI
- Examine modules in Magento 2 using CLI
Form the store
php bin/magento setup:store-config:set [–<parameter_name>=<value>, …]
This command permits you to modify the form value of Magento store. Here I will show you the list of popular form below:
Parameters | Description |
–base-url | In Base Url Magento store, for example: http://www.my-magento-store.com |
–language | The language to use in the storefront and Backend You can view the list by php bin/magento info:language:list
|
currency | Default currency to use in the storefrontphp bin/magentoinfo:currency:list |
–timezone | Default time zone to use in the Storefront and Backendphp bin/magento info:timezone:list |
–use-rewrites | · 1 means you can use Web server rewrites for generated links in the Storefront and Backend. · 0 does not use Web Server rewrites. This is default |
-use-secure | · 1 allow the use of SSL in all URLs of Storefront and Backend · 0 do not use SSL with Magento. This is the default |
-base Url-secure | Base secure url of Magento st6ore. It is used when you set use-secure=1 |
-use-secure-admin | · 1 means you can use SSl to access the Backend · 0 do not use SSl with the Backend. This is the default |
The above mentioned tabulation defines you to form Magento store using Command line (CLI)
Leave a Reply