Commands CLI

Before this, you need to run the command: sudo su magento

Neither: sudo + …….. !!!

php bin/magento setup:upgrade - System update after installing new modules.

 

php bin/magento indexer:reindex - File structure update.

php bin/magento cache:clean - Clear the cache.

php bin/magento cache:flush - Cache update.

php bin/magento setup:static-content:deploy -f

php bin/magento setup:static-content:deploy en_GB -f - If you have changed the translation file and see the changes.

php bin/magento setup:static-content:deploy es_ES -f - If you have changed the translation file and see the changes.

php bin/magento setup:static-content:deploy fr_FR -f - If you have changed the translation file and see the changes.

php bin/magento setup:static-content:deploy it_IT -f - If you have changed the translation file and see the changes.

php bin/magento setup:static-content:deploy de_DE -f - If you have changed the translation file and see the changes.

php bin/magento setup:static-content:deploy ja_JP -f - If you have changed the translation file and see the changes.

php bin/magento setup:static-content:deploy zh_Hans_CN -f - If you have changed the translation file and see the changes.

 

---------------------------------------------------------------------------------------------------------------

 

php bin/magento deploy:mode:show - Show site operation mode.

php bin/magento deploy:mode:set developer - Setting developer mode.

 

-----------------------------------------------------------------------------------------------------------

 

php bin/magento module:status - View installed modules.

 

php bin/magento module:enable <Module name> - Disabling a module.

php bin/magento module:uninstall -r <Vendor>_<Module>

 

composer remove VendorName/VendorExtensionRepository