Magento 2 Useful Commands List The list of most important CLI commands for Magento 2 for developer . Setup Upgrade Using Command Line php bin/magento setup:upgrade or php bin/magento s:up 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 …