Setup Upgrade Using Command Line
Cache Clean Using Command Line
Cache Flush Using Command Line
Static Content Deploy
Reindexing
View the list of indexers
See all modules Status
Enable module
Disable module
To run unit test case
To run specific unit test case
To run specific integration test case
After Install Magento2 Do some basic configration in project
Set Developer Mode
Magento comes different modes. (developer, production)
To enable developer module open the .htaccess file and uncomment the line “SetEnv MAGE_MODE developer”
after you uncomment magento2 will be set in developer model
Also run
Login into magento admin, navigate to
System -> Cache Management
disable all caches here
you can manage cache from command line using
If you get permission error, cannot create directory error in any of the above command or in website
make sure to do below
php bin/magento setup:upgrade
php bin/magento cache:clean
php bin/magento cache:flush
php bin/magento setup:static-content:deploy
php bin/magento indexer:reindex
php bin/magento indexer:info
php bin/magento module:status
php bin/magentomodule:enable Namespace_Module
php bin/magento module:disable Namespace_Module
php bin/magento dev:tests:run unit
./vendor/bin/phpunit -c dev/tests/unit/phpunit.xml
../../../vendor/bin/phpunit --testsuite "test suite name"
Set Developer Mode
Magento comes different modes. (developer, production)
To enable developer module open the .htaccess file and uncomment the line “SetEnv MAGE_MODE developer”
after you uncomment magento2 will be set in developer model
Also run
php bin/magento deploy:mode:set developer
php bin/magento deploy:mode:show
Disable CacheLogin into magento admin, navigate to
System -> Cache Management
disable all caches here
you can manage cache from command line using
php bin/magento cache:disable
php bin/magento cache:clean
php bin/magento cache:flush
php bin/magento cache:status
php bin/magento cache:enable
Set PermissionsIf you get permission error, cannot create directory error in any of the above command or in website
make sure to do below
sudo chmod -R 777 pub/
sudo chmod -R 777 var/
Comments
Post a Comment