List of commands in magento2

List of commands in magento2
 
  • Installing Magento (and related tasks such as creating or updating the database schema, creating the deployment configuration, and so on)
  • Clearing the cache
  • Managing indexes, including reindexing
  • Creating translation dictionaries and translation packages
  • Generating non-existent classes such as factories and interceptors for plug-ins, generating the dependency injection configuration for the object manager.
  • Deploying static view files
  • Creating CSS from LESS

Using below command-line utility (for example, enable or disable cache types, run indexers, set up translations, and so on) you can Configure the Magento2

Note:

Local system:

Open command prompt in your local machine and get magento installation directory

cd <your Magento install dir>

Server:

Through SSH you can use these commands

cd <your Magento install dir>

  • Get Admin URI
php bin/magento info:adminuri    

  • Remove sample data
php bin/magento sampledata:remove 

  • Prepare to update sample data
php bin/magento sampledata:reset

  • Enable module
php bin/magento module:enable VendorName_ModuleName

  • Disable module
php bin/magento module:disable VendorName_ModuleName

  • Check module status
php bin/magento module:status

  • Update the database
php bin/magento setup:upgrade

  • Reindexing
php bin/magento indexer:reindex

  • Flush Cache
php bin/magento cache:flush

  • Check Cache status
php bin/magento cache:status

  • Maintenance mode status
php bin/magento maintenance:status

  • Maintenance mode enable
php bin/magento maintenance:enable --ip=192.0.2.10 --ip=192.0.2.11

  • Maintenance mode disable
php bin/magento maintenance:disable --ip=192.0.2.10 --ip=192.0.2.11

  • Uninstall language package
php bin/magento i18n:uninstall [-b|--backup-code] {language package name} ... {language package name}

Write Your Comment

Only registered users can write comments. Please, log in or register