SlideShare uma empresa Scribd logo
Magento 2 useful command Part 1
Today, I am explaining you, if you are developing Magento 2 website so this post is very useful for
you. I am providing you list of magento 2 command. here is some basic commands list that are
related to Cache, Admin, Modules, Indexer and Info commands. I have also mentioned some short
command so you can also use short command as well.
Cache Commands –
Here list of some command that are related to Magento 2 cache manipulation. below are some
command that will provide cache enable, disable, clean, flush or check status of Magento cache.
1) Enable all caches or specific cache type
Command :
php bin/magento cache:enable
OR
php bin/magento c:e
2) Disable all caches OR specific cache type
Command :
php bin/magento cache:disable
OR
php bin/magento c:d
3) Check the status of cache types and their status
Command :
php bin/magento cache:status
OR
php bin/magento c:s
4) Deletes all cache of the same storage. it will delete all cache that also available third party will
also delete all cache.
Command :
php bin/magento cache:flush
OR
php bin/magento c:f
5) delete cache types linked with Magento website.
Command :
php bin/magento cache:clean
OR
php bin/magento c:c
Admin Commands –
Here list of some command that are related to Magento 2 create a new admin user, edit or unlock
the user that is already created through Magento CLI.
1) Create admin account command. here is basic syntax it also need some other parameter like
admin‐user,admin‐password,admin‐email,admin‐firstname and admin‐lastname.
Command :
php bin/magento admin:user:create
OR
php bin/magento a:u:c
2) Unlock admin user account
Command :
php bin/magento admin:user:unlock adminusername
OR
php bin/magento a:u:u adminusername
Module Commands –
Here list of some command that are related to Magento 2 module . here you check enable, disable,
uninstall or check the status of module.
1) check the status of magento 2 module
Command :
php bin/magento module:status
OR
php bin/magento mo:s
2) enable specific Magento module by its name.
Command :
php bin/magento module:enable module_name
OR
php bin/magento mo:e module_name
3) disable specific Magento module by its name.
Command :
php bin/magento module:disable module_name
OR
php bin/magento mo:d module_name
4) uninstall specific Magento module by its name.
Command :
php bin/magento module:uninstall
OR
php bin/magento mo:u
Indexer Commands –
Here list of some command that are related to Magento 2 indexer things. but FYI, in magento 2
admin section having option to indexing. in reindexing, you can set indexing mode and check the
status of indexer via Magento command.
1) it will list of all indexers.
Command :
php bin/magento indexer:info
OR
php bin/magento i:i
2) change the indexer mode.
Command :
php bin/magento indexer:set-mode
OR
php bin/magento i:set
3) status of all indexers
Command :
php bin/magento indexer:status
OR
php bin/magento i:st
4) reindex all the indexer
Command :
php bin/magento indexer:reindex
OR
php bin/magento i:rei
5) for viewing indexer configuration
Command :
php bin/magento indexer:show-mode
OR
php bin/magento i:show
6) invalidate all the indexer
Command :
php bin/magento indexer:reset
OR
php bin/magento i:res
Info Commands –
Here list of some command that are related to Magento 2 information command. like adminuri,
backup and currecy etc.
1) it will displays the Magento 2 admin URI
Command :
php bin/magento info:adminuri
OR
php bin/magento i:a
2) it prints list of available backup files
Command :
php bin/magento info:backups:list
OR
php bin/magento i:b:l
3) it shows number of dependencies Magento framework
Command :
php bin/magento info:dependencies:show-framework
OR
php bin/magento i:d:show-framework
4) it displays the list of available currencies
Command :
php bin/magento info:currency:list
OR
php bin/magento i:c:l
5) it shows number of dependencies between modules
Command :
php bin/magento info:dependencies:show-modules
OR
php bin/magento i:d:show-modules
6) it displays the list of available language locales
Command :
php bin/magento info:language:list
OR
php bin/magento i:l:l
7) it displays the list of available timezones
Command :
php bin/magento info:timezone:list
OR
php bin/magento i:t:l
Write-up
In webdeveloperindia tutorial, I have covered some basic Magento 2 commands. I hope you got this
tutorial very useful. If you want to give any feedback or share it in the comments section below.
Related posts:
How to create migration and rollback in Laravel 8?
Laravel Passport integration
How to send OTP in the email on registration using Laravel API

Mais conteúdo relacionado

Semelhante a Magento 2 useful command Part 1.pdf

Magento 2 Import Coupon Codes
Magento 2 Import Coupon CodesMagento 2 Import Coupon Codes
Magento 2 Import Coupon Codes
MageAnts
 
12 Amazing Features of Magento 2
12 Amazing Features of Magento 212 Amazing Features of Magento 2
12 Amazing Features of Magento 2
Schogini Systems Pvt Ltd
 
How to-create-a-simple-module-in-magento-2.0
How to-create-a-simple-module-in-magento-2.0How to-create-a-simple-module-in-magento-2.0
How to-create-a-simple-module-in-magento-2.0
Daniele Crupi
 
Magento 2 Event Manager Extension
Magento 2 Event Manager ExtensionMagento 2 Event Manager Extension
Magento 2 Event Manager Extension
MageAnts
 
Store pickup for magento 2
Store pickup for magento 2Store pickup for magento 2
Store pickup for magento 2
MageAnts
 
Nagios Conference 2013 - Jake Omann - Developing Nagios XI Components and Wiz...
Nagios Conference 2013 - Jake Omann - Developing Nagios XI Components and Wiz...Nagios Conference 2013 - Jake Omann - Developing Nagios XI Components and Wiz...
Nagios Conference 2013 - Jake Omann - Developing Nagios XI Components and Wiz...
Nagios
 
Introduction to Mangento
Introduction to Mangento Introduction to Mangento
Introduction to Mangento
Ravi Mehrotra
 
Mangento
MangentoMangento
Mangento
Ravi Mehrotra
 
Magento 2 wholesale fast order
Magento 2 wholesale fast orderMagento 2 wholesale fast order
Magento 2 wholesale fast order
MageAnts
 
Magento 2 Extra Fee Extension
Magento 2 Extra Fee ExtensionMagento 2 Extra Fee Extension
Magento 2 Extra Fee Extension
MageAnts
 
Magento 2 Duplicate Category
Magento 2 Duplicate CategoryMagento 2 Duplicate Category
Magento 2 Duplicate Category
MageAnts
 
BEGINNERS’ GUIDE TO MAGENTO PLUGINS, EXTENSIONS, MODULES
BEGINNERS’ GUIDE TO MAGENTO PLUGINS, EXTENSIONS, MODULESBEGINNERS’ GUIDE TO MAGENTO PLUGINS, EXTENSIONS, MODULES
BEGINNERS’ GUIDE TO MAGENTO PLUGINS, EXTENSIONS, MODULES
Kuldeep Sharma
 
Magento 2 Order Attributes
Magento 2 Order Attributes Magento 2 Order Attributes
Magento 2 Order Attributes
MageAnts
 
Wholesale configurable product for magento 2
Wholesale configurable product for magento 2Wholesale configurable product for magento 2
Wholesale configurable product for magento 2
MageAnts
 
Wholesale configurable product for magento 2
Wholesale configurable product for magento 2Wholesale configurable product for magento 2
Wholesale configurable product for magento 2
MageAnts
 
5 easy steps dynamic remarketing magento
5 easy steps dynamic remarketing magento5 easy steps dynamic remarketing magento
5 easy steps dynamic remarketing magento
Etietop Demas
 
Magento 2 Spam and Bot Blocker
Magento 2 Spam and Bot BlockerMagento 2 Spam and Bot Blocker
Magento 2 Spam and Bot Blocker
MageAnts
 
Make implementation of third party elements in magento 2 in 5-times easier
Make implementation of third party elements in magento 2 in 5-times easierMake implementation of third party elements in magento 2 in 5-times easier
Make implementation of third party elements in magento 2 in 5-times easier
Elena Kulbich
 
Federico Soich - Upgrading Magento Version
Federico Soich - Upgrading Magento VersionFederico Soich - Upgrading Magento Version
Federico Soich - Upgrading Magento Version
Meet Magento Italy
 
Magento 2 integration tests
Magento 2 integration testsMagento 2 integration tests
Magento 2 integration tests
Dusan Lukic
 

Semelhante a Magento 2 useful command Part 1.pdf (20)

Magento 2 Import Coupon Codes
Magento 2 Import Coupon CodesMagento 2 Import Coupon Codes
Magento 2 Import Coupon Codes
 
12 Amazing Features of Magento 2
12 Amazing Features of Magento 212 Amazing Features of Magento 2
12 Amazing Features of Magento 2
 
How to-create-a-simple-module-in-magento-2.0
How to-create-a-simple-module-in-magento-2.0How to-create-a-simple-module-in-magento-2.0
How to-create-a-simple-module-in-magento-2.0
 
Magento 2 Event Manager Extension
Magento 2 Event Manager ExtensionMagento 2 Event Manager Extension
Magento 2 Event Manager Extension
 
Store pickup for magento 2
Store pickup for magento 2Store pickup for magento 2
Store pickup for magento 2
 
Nagios Conference 2013 - Jake Omann - Developing Nagios XI Components and Wiz...
Nagios Conference 2013 - Jake Omann - Developing Nagios XI Components and Wiz...Nagios Conference 2013 - Jake Omann - Developing Nagios XI Components and Wiz...
Nagios Conference 2013 - Jake Omann - Developing Nagios XI Components and Wiz...
 
Introduction to Mangento
Introduction to Mangento Introduction to Mangento
Introduction to Mangento
 
Mangento
MangentoMangento
Mangento
 
Magento 2 wholesale fast order
Magento 2 wholesale fast orderMagento 2 wholesale fast order
Magento 2 wholesale fast order
 
Magento 2 Extra Fee Extension
Magento 2 Extra Fee ExtensionMagento 2 Extra Fee Extension
Magento 2 Extra Fee Extension
 
Magento 2 Duplicate Category
Magento 2 Duplicate CategoryMagento 2 Duplicate Category
Magento 2 Duplicate Category
 
BEGINNERS’ GUIDE TO MAGENTO PLUGINS, EXTENSIONS, MODULES
BEGINNERS’ GUIDE TO MAGENTO PLUGINS, EXTENSIONS, MODULESBEGINNERS’ GUIDE TO MAGENTO PLUGINS, EXTENSIONS, MODULES
BEGINNERS’ GUIDE TO MAGENTO PLUGINS, EXTENSIONS, MODULES
 
Magento 2 Order Attributes
Magento 2 Order Attributes Magento 2 Order Attributes
Magento 2 Order Attributes
 
Wholesale configurable product for magento 2
Wholesale configurable product for magento 2Wholesale configurable product for magento 2
Wholesale configurable product for magento 2
 
Wholesale configurable product for magento 2
Wholesale configurable product for magento 2Wholesale configurable product for magento 2
Wholesale configurable product for magento 2
 
5 easy steps dynamic remarketing magento
5 easy steps dynamic remarketing magento5 easy steps dynamic remarketing magento
5 easy steps dynamic remarketing magento
 
Magento 2 Spam and Bot Blocker
Magento 2 Spam and Bot BlockerMagento 2 Spam and Bot Blocker
Magento 2 Spam and Bot Blocker
 
Make implementation of third party elements in magento 2 in 5-times easier
Make implementation of third party elements in magento 2 in 5-times easierMake implementation of third party elements in magento 2 in 5-times easier
Make implementation of third party elements in magento 2 in 5-times easier
 
Federico Soich - Upgrading Magento Version
Federico Soich - Upgrading Magento VersionFederico Soich - Upgrading Magento Version
Federico Soich - Upgrading Magento Version
 
Magento 2 integration tests
Magento 2 integration testsMagento 2 integration tests
Magento 2 integration tests
 

Último

ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
PECB
 
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
Nguyen Thanh Tu Collection
 
math operations ued in python and all used
math operations ued in python and all usedmath operations ued in python and all used
math operations ued in python and all used
ssuser13ffe4
 
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
Nguyen Thanh Tu Collection
 
B. Ed Syllabus for babasaheb ambedkar education university.pdf
B. Ed Syllabus for babasaheb ambedkar education university.pdfB. Ed Syllabus for babasaheb ambedkar education university.pdf
B. Ed Syllabus for babasaheb ambedkar education university.pdf
BoudhayanBhattachari
 
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) CurriculumPhilippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
MJDuyan
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
Himanshu Rai
 
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching AptitudeUGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
S. Raj Kumar
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
GeorgeMilliken2
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience
Wahiba Chair Training & Consulting
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
Katrina Pritchard
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
Colégio Santa Teresinha
 
How to deliver Powerpoint Presentations.pptx
How to deliver Powerpoint  Presentations.pptxHow to deliver Powerpoint  Presentations.pptx
How to deliver Powerpoint Presentations.pptx
HajraNaeem15
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
Jyoti Chand
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Excellence Foundation for South Sudan
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
Celine George
 
Constructing Your Course Container for Effective Communication
Constructing Your Course Container for Effective CommunicationConstructing Your Course Container for Effective Communication
Constructing Your Course Container for Effective Communication
Chevonnese Chevers Whyte, MBA, B.Sc.
 
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Leena Ghag-Sakpal
 

Último (20)

ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
 
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
 
math operations ued in python and all used
math operations ued in python and all usedmath operations ued in python and all used
math operations ued in python and all used
 
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
 
B. Ed Syllabus for babasaheb ambedkar education university.pdf
B. Ed Syllabus for babasaheb ambedkar education university.pdfB. Ed Syllabus for babasaheb ambedkar education university.pdf
B. Ed Syllabus for babasaheb ambedkar education university.pdf
 
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) CurriculumPhilippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
 
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching AptitudeUGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
 
How to deliver Powerpoint Presentations.pptx
How to deliver Powerpoint  Presentations.pptxHow to deliver Powerpoint  Presentations.pptx
How to deliver Powerpoint Presentations.pptx
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
 
Constructing Your Course Container for Effective Communication
Constructing Your Course Container for Effective CommunicationConstructing Your Course Container for Effective Communication
Constructing Your Course Container for Effective Communication
 
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
 

Magento 2 useful command Part 1.pdf

  • 1. Magento 2 useful command Part 1 Today, I am explaining you, if you are developing Magento 2 website so this post is very useful for you. I am providing you list of magento 2 command. here is some basic commands list that are related to Cache, Admin, Modules, Indexer and Info commands. I have also mentioned some short command so you can also use short command as well. Cache Commands – Here list of some command that are related to Magento 2 cache manipulation. below are some command that will provide cache enable, disable, clean, flush or check status of Magento cache. 1) Enable all caches or specific cache type Command : php bin/magento cache:enable OR php bin/magento c:e 2) Disable all caches OR specific cache type Command : php bin/magento cache:disable OR php bin/magento c:d 3) Check the status of cache types and their status Command : php bin/magento cache:status OR php bin/magento c:s
  • 2. 4) Deletes all cache of the same storage. it will delete all cache that also available third party will also delete all cache. Command : php bin/magento cache:flush OR php bin/magento c:f 5) delete cache types linked with Magento website. Command : php bin/magento cache:clean OR php bin/magento c:c Admin Commands – Here list of some command that are related to Magento 2 create a new admin user, edit or unlock the user that is already created through Magento CLI. 1) Create admin account command. here is basic syntax it also need some other parameter like admin‐user,admin‐password,admin‐email,admin‐firstname and admin‐lastname. Command : php bin/magento admin:user:create OR php bin/magento a:u:c 2) Unlock admin user account Command :
  • 3. php bin/magento admin:user:unlock adminusername OR php bin/magento a:u:u adminusername Module Commands – Here list of some command that are related to Magento 2 module . here you check enable, disable, uninstall or check the status of module. 1) check the status of magento 2 module Command : php bin/magento module:status OR php bin/magento mo:s 2) enable specific Magento module by its name. Command : php bin/magento module:enable module_name OR php bin/magento mo:e module_name 3) disable specific Magento module by its name. Command : php bin/magento module:disable module_name OR php bin/magento mo:d module_name 4) uninstall specific Magento module by its name. Command :
  • 4. php bin/magento module:uninstall OR php bin/magento mo:u Indexer Commands – Here list of some command that are related to Magento 2 indexer things. but FYI, in magento 2 admin section having option to indexing. in reindexing, you can set indexing mode and check the status of indexer via Magento command. 1) it will list of all indexers. Command : php bin/magento indexer:info OR php bin/magento i:i 2) change the indexer mode. Command : php bin/magento indexer:set-mode OR php bin/magento i:set 3) status of all indexers Command : php bin/magento indexer:status OR php bin/magento i:st 4) reindex all the indexer
  • 5. Command : php bin/magento indexer:reindex OR php bin/magento i:rei 5) for viewing indexer configuration Command : php bin/magento indexer:show-mode OR php bin/magento i:show 6) invalidate all the indexer Command : php bin/magento indexer:reset OR php bin/magento i:res Info Commands – Here list of some command that are related to Magento 2 information command. like adminuri, backup and currecy etc. 1) it will displays the Magento 2 admin URI Command : php bin/magento info:adminuri OR php bin/magento i:a 2) it prints list of available backup files
  • 6. Command : php bin/magento info:backups:list OR php bin/magento i:b:l 3) it shows number of dependencies Magento framework Command : php bin/magento info:dependencies:show-framework OR php bin/magento i:d:show-framework 4) it displays the list of available currencies Command : php bin/magento info:currency:list OR php bin/magento i:c:l 5) it shows number of dependencies between modules Command : php bin/magento info:dependencies:show-modules OR php bin/magento i:d:show-modules 6) it displays the list of available language locales Command : php bin/magento info:language:list OR php bin/magento i:l:l
  • 7. 7) it displays the list of available timezones Command : php bin/magento info:timezone:list OR php bin/magento i:t:l Write-up In webdeveloperindia tutorial, I have covered some basic Magento 2 commands. I hope you got this tutorial very useful. If you want to give any feedback or share it in the comments section below. Related posts: How to create migration and rollback in Laravel 8? Laravel Passport integration How to send OTP in the email on registration using Laravel API