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

i really enjoy this site, hope you can keep improving this site. ft lauderdale translation services

I recently ordered from White Fox UK, and I’m so happy with my purchase! The hoodie is soft, warm, and super stylish. Delivery was fast, and the fit is perfect. I love how it looks and feels. I’ll definitely be shopping again at whitefoxwear.com

Eric Emanuel Short Shops is my go-to for stylish mesh shorts! The quality is top-notch, and the fit is perfect. I love the bold colors and unique designs. Shipping was fast, and the customer service was great. I’ll definitely be shopping here again. Highly recommend for streetwear fans! ericemanuelshortshops.com

The White Fox hoodie is super soft, stylish, and perfect for everyday wear. It fits true to size and keeps you warm without feeling heavy. The fabric feels high-quality, and the colors don’t fade. I love wearing it out or lounging at home. Highly recommend for comfort and style! white fox hoodie

Incredible articles and awesome design. Your blog entry merits the greater part of the positive input it"s been getting. buy league of legends account

It turns out that even the hottest port has a few places where you can get off the beaten path. Here are some recommendations that will make you feel like you're in the know buy dota 2 account

I can recommend primarily decent and even responsible tips, as a result view it: ستلايت

For many people this is the best solution here see how to do it. عطور لافان

Beaver says I also have such interest, you can read my profile here: clean factory watches

I propose merely very good along with reputable data, consequently visualize it: بنشر متنقل

Your writing is not only informative but also engaging. It keeps me hooked from the beginning to the end of each post. ft lauderdale translators

The examples you provided add a real-world context to the concepts discussed. Thanks for making it relatable! hangende oogleden zonder operatie

I appreciate how you tackle [subject] with a balanced approach. It's refreshing to see a nuanced perspective. plab exam

I love how you break down complex ideas into easy-to-understand points. It makes learning about [subject] so much more enjoyable. traductor uscis

The practical tips you include make it easy for readers to apply the concepts discussed. Very helpful! ooglidcorrectie den haag
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