![]() ![]() ![]() ![]() This is the comprehensive list of all important and useful commands for Magento 2. Php bin/magento indexer:set-mode Įxample: php bin/magento indexer:set-mode schedule catalog_category_product catalog_product_category Collect all phrases in the Magento with 4 columns using the CLI: php bin\magento i18n:collect-phrases -o "\var\\var\-ip=127.0.0.2 Allow IP on maintenance mode using the CLI: php bin/magento maintenance:allow-ips -ip=127.0.0.1 -ip=127.0.0.2 Clear the list of IPs using the CLI: php bin/magento maintenance:enable -ip=none Disable maintenance mode using the CLI: php bin/magento maintenance:disable Check maintenance mode status using the CLI: php bin/magento maintenance:status Display the list of stores using the CLI: php bin/magento store:list Display the list of websites using the CLI: php bin/magento store:website:list Take a backup of Magento Application code base, media, and database using the CLI: php bin/magento setup:backup Conclusion ![]() schedule: Sets the specified indexers to save according to the cron schedule.realtime: Equivalent of M1 update on save.Magento 2 Useful Commands List Create an admin user using the CLI: php bin/magento admin:user:create -admin-user='admin' -admin-password='admin123' -admin-firstname='Johy' -admin-lastname='Roy Unlock admin user account using the CLI: php bin/magento admin:user:unlock username Setup upgrades using the CLI: php bin/magento setup:upgrade Setup upgrades without removing pub/static files using the CLI: php bin/magento setup:upgrade -keep-generated Uninstalling the Magento application using the CLI: php bin/magento setup:uninstall Cache cleaning using the CLI: php bin/magento cache:clean Cache cleaning with specific type using the CLI: php bin/magento cache:clean cache_typeĭisable cache using the CLI: php bin/magento cache:disable Disable cache with specific type using the CLI: php bin/magento cache:disable cache_type Enable cache using the CLI: php bin/magento cache:enable Enable cache with specific type using the CLI: php bin/magento cache:enable cache_type Flush cache using the CLI: php bin/magento cache:flush Flush cache with specific type using the CLI: php bin/magento cache:flush cache_type Check cache status using the CLI: php bin/magento cache:status Static content deploy using the CLI: (Use -f for force deploy on 2.2.x or later) php bin/magento setup:static-content:deploy or php bin/magento -f setup:static-content:deploy Deploy for specific language using the CLI: php bin/magento setup:static-content:deploy en_US Deploy for Magento backend theme using the CLI: php bin/magento setup:static-content:deploy -theme="Magento/backend" Static content deploy for specific themes using the CLI: php bin/magento setup:static-content:deploy -theme Magento/luma -theme Magento/theme_number_two Exclude themes on static content deploy and does not minify HTML files using the CLI: php bin/magento setup:static-content:deploy en_US -exclude-theme Magento/luma -no-html-minify Creates resized product images using the CLI: php bin/magento catalog:images:resize Removes unused product attributes using the CLI: php bin/magento catalog:product:attributes:cleanup Set Magento crontab using the CLI: php bin/magento cron:install -force Run jobs by schedule using the CLI: php bin/magento cron:run Remove Magento crontab using the CLI: php bin/magento cron:remove Reindexing using the CLI: php bin/magento indexer:reindex List of indexers using the CLI: php bin/magento indexer:info View indexer status using the CLI: php bin/magento indexer:status Show the mode of all indexers using the CLI: php bin/magento indexer:show-mode Reset indexer status to invalid using the CLI: php bin/magento indexer:reset Set index mode type using the CLI: We know this because many of our own developers have experienced the same thing, which is why we’ve decided to help you out with the best resource to find all useful Magento 2 Command list in a single place.īelow, you’ll find the list of all important Magento 2 SSH / CLI commands that you’ll often need when working on a project. If you’re starting out as a Magento 2 developer, you might sometimes find yourself juggling through different sites to find the right Magento 2 commands. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |