Magento 2 Useful Commands

Magento2
Here you see a list of some useful commands for Magento development and customization.For these commands, you need to have SSH access to your server or use the Command Line for local access.These commands are run within the /magento2 folder and reference the /magento2/bin folder. Magento 2 Cache Commands To flush Magento 2 cache: Go to the Magento root directoryphp bin/magento cache:cleanphp bin/magento cache:flush Magento 2 cache status php bin/magento cache:status Magento 2 cache clean php bin/magento cache:clean Magento 2 disable cache Command will disable all cache types php bin/magento cache:disable Disable specific cache type php bin/magento cache:disable CACHE_TYPELike: php bin/magento cache:disable config Magento 2 Enable cache All cache types php bin/magento cache:enable Specific cache typephp bin/magento cache:enable CACHE_TYPELike: php bin/magento cache:enable layout Magento 2 Reindexing Using Command Line php…
Read More

Reindex using Command line in Magento2

Magento2
Explain how to reindex using the command line in Magento 2. It is extremely useful for Magento 2 extension development. In the root Magento directory. [sourcecode language="plain"]php bin/magento indexer:reindex[/sourcecode] In the root/bin directory [sourcecode language="plain"]php magento indexer:reindex[/sourcecode] To get the index name to run index one by one, first write the following command to get information. in the Magento root directory. [sourcecode language="plain"]php bin/magento indexer:info[/sourcecode] To execute a single reindexing command [sourcecode language="plain"]php bin/magento indexer:reindex indexer_name[/sourcecode] Indexer name that we got from indexer:info [JWD-Magento-Development]
Read More