Cheatography
https://cheatography.com
Creating a comprehensive Magento 2 cheatsheet for all the CLI commands is challenging due to the extensive range of commands available. However, I can provide a condensed cheatsheet covering some essential Magento 2 CLI commands.
Module Management
bin/magento module:enable Vendor_Module |
Enable a module |
bin/magento module:disable Vendor_Module |
Disable a module |
bin/magento module:status |
Check the status of modules |
Cache Management
bin/magento cache:clean |
Clean the cache |
bin/magento cache:flush |
Flush all cache storage |
bin/magento cache:status |
Check cache status |
Database Operations
bin/magento setup:db:status |
Check database status |
bin/magento setup:db:config:show |
Display database connection configuration |
bin/magento setup:rollback |
Rollback database schema and data changes |
System Information
bin/magento info:adminuri |
Display the Magento Admin URI |
bin/magento info:currency:list |
List available currencies |
bin/magento info:language:list |
List installed languages |
Cron Jobs
bin/magento cron:run |
Run cron jobs |
bin/magento cron:history |
Display cron job history |
Extensions and Updates
bin/magento setup:backup |
Create a backup |
bin/magento setup:rollback |
Rollback to a previous backup |
Deploy Commands
php bin/magento deploy:mode:set |
Set application mode. |
php bin/magento deploy:mode:show |
Displays current application mode. |
|
|
Setup and Upgrade
bin/magento setup:upgrade |
Apply database schema and data changes |
bin/magento setup:di:compile |
Compile DI configuration |
bin/magento setup:static-content:deploy |
Deploy static view files |
Index Management
bin/magento indexer:reindex |
Reindex data |
bin/magento indexer:info |
Display indexers status |
bin/magento indexer:reset |
Reset indexer status |
Developer Tools
bin/magento dev:template:hints |
Display block and template hints |
bin/magento dev:source-theme:deploy |
Deploy themes |
bin/magento dev:tests:run |
Run tests |
Maintenance Mode
bin/magento maintenance:enable |
Enable maintenance mode |
bin/magento maintenance:disable |
Disable maintenance mode |
Customer and User Management
bin/magento admin:user:create |
Create a new admin user |
bin/magento customer:create |
Create a new customer |
Store
php bin/magento store:list |
Displays the list of stores |
php bin/magento store:website:list |
Displays the list of websites |
|
Created By
Metadata
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets
More Cheat Sheets by Bhavi