Magento 2 SSH Commands
Below is the list of most important SSH / CLI commands for Magento 2 that I have found useful. To use these commands you will need to have SSH access to your server or use the Command Line for local access. Setup Upgrade Using Command Line php bin/magento setup:upgrade If you don’t want to remove pub/static files while installing/updating database then use following command. php bin/magento setup:upgrade --keep-generated Cache Clean Using Command Line php bin/magento cache:clean Cache Flush Using Command Line php bin/magento cache:flush View cache status Using Command Line php bin/magento cache:status Enable Cache Using Command Line php bin/magento cache:enable [cache_type] Disable Cache Using Command Line php bin/magento cache:disable [cache_type] Static Content Deploy Using Command Line (Use -f for force deploy on 2.2.x or later) php bin/magento setup:static-content:deploy Static Content Deploy For Particular Language Using Command Line php bin/ma...