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.
|
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
|
|
bin/magento cache:clean
|
Clean the cache
|
|
bin/magento cache:flush
|
Flush all cache storage
|
|
bin/magento cache:status
|
Check cache status
|
|
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
|
|
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
|
|
bin/magento cron:run
|
Run cron jobs
|
|
bin/magento cron:history
|
Display cron job history
|
|
bin/magento setup:backup
|
Create a backup
|
|
bin/magento setup:rollback
|
Rollback to a previous backup
|
|
php bin/magento deploy:mode:set
|
Set application mode.
|
|
php bin/magento deploy:mode:show
|
Displays current application mode.
|
|
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
|
|
bin/magento indexer:reindex
|
Reindex data
|
|
bin/magento indexer:info
|
Display indexers status
|
|
bin/magento indexer:reset
|
Reset indexer status
|
|
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
|
|
bin/magento maintenance:enable
|
Enable maintenance mode
|
|
bin/magento maintenance:disable
|
Disable maintenance mode
|
|
bin/magento admin:user:create
|
Create a new admin user
|
|
bin/magento customer:create
|
Create a new customer
|
|
php bin/magento store:list
|
Displays the list of stores
|
|
php bin/magento store:website:list
|
Displays the list of websites
|
No comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.