magento2 Magento 2 Commands for daily use code compilation

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Example

php bin/magento setup:di:compile

You might need to delete var/di (including the folder) in order to go through compilation.

rm -rf var/di


Got any magento2 Question?