Toggle Nav
My Cart 0

Magento 2 cli commands list

Magento 2 cli commands list

Magento 2 cli commands list

As you know in Magento 2 cli command is one of the most important part.

If you are interested in Magento 2 Ecommerce platform then this prost is especially useful to you for magento 2 cli commands.

Below is the list of most important SSH / CLI commands for Magento 2 that I have found useful. To use these commands, you will need to have SSH access to your server or use the Command Line for local access.

Magento 2 Setup Upgrade Using Command Line php bin/magento setup:upgrade
If you don’t want to remove pub/static files while installing/updating database then use following command. php bin/magento setup:upgrade --keep-generated
Magento 2 Cache Clean Using Command Line php bin/magento cache:clean
Magento 2 Cache Flush Using Command Line php bin/magento cache:flush
Magento 2 View cache status Using Command Line php bin/magento cache:status
Magento 2 Enable Cache Using Command Line php bin/magento cache:enable [cache_type]
Magento 2 Disable Cache Using Command Line php bin/magento cache:disable [cache_type]
Magento 2 Exclude Themes on Static Content Deploy and does not minify HTML files Using Command Line (Working on 2.1.1 or later) php bin/magento setup:static-content:deploy en_US --exclude-theme Magento/luma --no-html-minify
Magento 2 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
Magento 2 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"
Magento 2 Static Content Deploy For Particular Language Using Command Line php bin/magento setup:static-content:deploy en_US
Magento 2 Static Content Deploy Using Command Line (Use -f for force deploy on 2.2.x or later) php bin/magento setup:static-content:deploy
Magento 2 Reindexing Using Command Line php bin/magento indexer:reindex
Magento 2 View the list of indexers Using Command Line php bin/magento indexer:info
Magento 2 View indexer status Using Command Line php bin/magento indexer:status
Magento 2 Show the mode of all indexers Using Command Line php bin/magento indexer:show-mode
Magento 2 See all modules Status Using Command Line php bin/magento module:status
Magento 2 Enable module Using Command Line php bin/magento module:enable Namespace_Module
Magento 2 Disable module Using Command Line php bin/magento module:disable Namespace_Module
Magento 2 Uninstall Module Using Command Line php bin/magento module:uninstall Namespace_Module
Magento 2 Check Current Mode Using Command Line php bin/magento deploy:mode:show
Magento 2 Change To Developer Mode Using Command Line php bin/magento deploy:mode:set developer
Magento 2 Change To Production Mode Using Command Line php bin/magento deploy:mode:set production
Magento 2 Run the single-tenant Compiler Using Command Line php bin/magento setup:di:compile
Magento 2 Unlock Admin User Using Command Line php bin/magento admin:user:unlock adminusername
Magento 2 Enable Maintenance Mode Using Command Line php bin/magento maintenance:enable
Magento 2 To enable maintenance mode for all clients except 192.0.0.100 and 192.0.0.105: php bin/magento maintenance:enable --ip=192.0.0.100 --ip=192.0.0.200
Magento 2 To clear the list of IPs. php bin/magento maintenance:enable --ip=none
Magento 2 Disable Maintenance Mode Using Command Line php bin/magento maintenance:disable
Magento 2 Check Maintenance Mode Status Using Command Line php bin/magento maintenance:status
Magento 2 command for Allow IP on Maintenance Mode Using Command Line php bin/magento maintenance:allow-ips --ip=192.0.0.100 --ip=192.0.0.200
Magento 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
Magento 2 Remove Magento crontab Using Command Line php bin/magento cron:remove

We hope this cli command list is very useful for you. For develop your Magento 2 Ecommerce plateform.

For more Magento 2 Services contact us

July 31, 2020
Did you like this post?
0
0