Magento 2 Useful Commands Shortcut
List of useful commands for Magento 2 shortcuts
To know the Magento version running
php bin/magento --version
Setup Upgrade Using Command Line
php bin/magento setup:upgrade
If you don’t want to remove pub/static files while installing/updating the database then use the following command.
php bin/magento setup:upgrade --keep-generated
Cache Clean Using Command Line
php bin/magento cache:clean
Cache Flush Using Command Line
php bin/magento cache:flush
View cache status Using following command Line
php bin/magento cache:status
Enable Cache Using Command Line
php bin/magento cache:enable
Disable Cache Using Command Line
php bin/magento cache:disable [cache_type]
Static Content Deploy Using Command Line
php bin/magento setup:static-content:deploy
(Use -f for force deploy on 2.2.x or later)
php bin/magento setup:static-content:deploy -f
Static Content Deploy For Particular Language Using Command Line
php bin/magento setup:static-content:deploy en_US
Static Content Deploy For Magento Backend Theme Using Command Line (Working on 2.1.1 or later)
php bin/magento setup:static-content:deploy --theme="Magento/backend"
Static Content Deploy For Specific Themes Using Command Line (Working on 2.1.1 or later)
php bin/magento setup:static-content:deploy --theme Magento/luma --theme Magento/second_theme
Enable module Using Command Line
php bin/magento module:enable Namespace_Module
Disable module Using Command Line
php bin/magento module:disable Namespace_Module
Uninstall Module Using Command Line
php bin/magento module:uninstall Namespace_Module
Reindexing Using Command Line
php bin/magento indexer:reindex
View the list of indexers Using Command Line
php bin/magento indexer:info
View indexer status Using Command Line
php bin/magento indexer:status
Show the mode of all indexers Using Command Line
php bin/magento module:status
Check Current Mode Using Command Line
php bin/magento deploy:mode:show
Change To Developer Mode Using Command Line
php bin/magento deploy:mode:set developer
Change To Production Mode Using Command Line
php bin/magento deploy:mode:set production
Run the single-tenant Compiler Using Command Line
php bin/magento setup:di:compile
Unlock Admin User Using Command Line
php bin/magento admin:user:unlock adminusername
Enable Maintenance Mode Using Command Line
php bin/magento maintenance:enable
To enable maintenance mode for all clients except 192.0.0.1 and 192.0.0.2
php bin/magento maintenance:enable --ip=192.0.0.1 --ip=192.0.0.2
To clear the list of IPs.
php bin/magento maintenance:enable --ip=none
Disable Maintenance Mode Using Command Line
php bin/magento maintenance:disable
Check Maintenance Mode Status Using Command Line
php bin/magento maintenance:status
How to Allow IP on Maintenance Mode Using Command Line
php bin/magento maintenance:allow-ips --ip=192.0.0.1 --ip=192.0.0.2
Set Magento crontab Using Command Line
php bin/magento cron:install --force (Use --force to rewrite an existing Magento crontab.)
To view the crontab, enter the following command as the Magento file system owner.
crontab -l
Remove Magento crontab Using Command Line
php bin/magento cron:remove
Enable Merge CSS
php bin/magento config:set dev/css/merge_css_files 1
Disable Merge CSS
php bin/magento config:set dev/css/merge_css_files 0
Enable Merge JS
php bin/magento config:set dev/js/merge_files 1
Disable Merge JS
php bin/magento config:set dev/js/merge_files 0
Enable Frontend template hints
php bin/magento dev:template-hints:enable
Disable Frontend template hints
php bin/magento dev:template-hints:disable
Check to determine whether or not you need to upgrade the database (using setup:upgrade)
php bin/magento setup:db:status
Enable database query log
php bin/magento dev:query-log:enable
products have Turning Carbide Inserts avantgarde design , which can make you look stylish and modern in any occasion.Numerous returned https://carbideinserts.bcz.com/ customers possess a Kennametal Inserts passion to enjoy probably the most product good carbide inserts because of their super quality but lowest price.
This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information. Keep it up. Keep blogging. Looking to reading your next post. 무료웹툰
Excellent Submit, I will be a huge believer inside submitting feedback about web sites to be able to allow the website copy writers understand that they’ve extra one thing useful to be able to the net!메이저사이트
I am thankful to you for sharing this plethora of useful information. I found this resource utmost beneficial for me. Thanks a lot for hard work.사설토토사이트
Thank you so much for the post you do. I like your post and all you share with us is up to date and quite informative, i would like to bookmark the page so i can come here again to read you, as you have done a wonderful job.アリエクプロモコード
nice post, keep up with this interesting work. It really is good to know that this topic is being covered also on this web site so cheers for taking time to discuss this! apollo tv app
It was a very good post indeed. I thoroughly enjoyed reading it in my lunch time. Will surely come and visit this blog more often. Thanks for sharing.apollo tv app
We are really grateful for your blog post. You will find a lot of approaches after visiting your post. I was exactly searching for. Thanks for such post and please keep it up. Great work.대출사이트
It was a very good post indeed. I thoroughly enjoyed reading it in my lunch time. Will surely come and visit this blog more often. Thanks for sharing. 광주룸싸롱
The betting playground is gradually becoming more vibrant than ever with a series of bookmakers from all over. Here, hb88 bookmaker emerged as a central game hall that was warmly received by players across the country. Click here to go to the website Readmore: hb88
Thank you very much for this useful article. I like it.카지노솔루션
The online game betting market is becoming more vibrant than ever with a series of bookmakers being introduced to Vietnam. In which, i9bet stands out with its new way of operating the game, attracting a large number of supporters from bettors everywhere. Today we introduce i9bet - the most popular bookmaker today. Readmore: i9bet
bj38 is known as one of the newest and most reputable bookmakers in 2024 in Asia. Website bj38 will share all necessary information for those who need it. This is bj38's latest homepage - please click here Readmore: bj38
8kbet is known as one of the leading bookmakers in Asia. Operating from 2018 until now. The 8kbet website has attracted nearly 1,000,000 member registrations. Therefore, 8Kbet provides a lot of useful information for those who need it. This is the latest homepage of 8kbet - please click here Readmore: 8kbet
789win is known as one of the leading bookmakers in Asia. The 789win website will share all the necessary information for those who need it. This is 789win's newest homepage - please click here Readmore: 789win
Please rotate your device
We don't support landscape mode on your device. Please rotate to portrait mode for the best view of our site