Use the following commants on Magento 2 terminal
/www/server/php/74/bin/php -d memory_limit=-1 bin/magento setup:upgrade
/www/server/php/74/bin/php -d memory_limit=-1 bin/magento cache:clean
/www/server/php/74/bin/php -d memory_limit=-1 bin/magento indexer:reindex
/www/server/php/74/bin/php -d memory_limit=-1 bin/magento setup:static-content:deploy
/www/server/php/74/bin/php -d memory_limit=-1 bin/magento setup:static-content:deploy -f
If your php is not default you need to find the PHP path first.
2 thoughts on “Common Magento 2 terminal commands after installation or migration”
Comments are closed.