We’re talking, of course, about a new feature of Magento 2, its console component.
Root folder now contains a new directory – /bin, and in it a ‘Magento’ script, used to start the console component. By typing bin/Magento in a terminal, we receive a number of commands we can run like:
- create an admin user (admin:user:create)
- clear, disable, enable cache (cache:clean, cache:enable, cache:disable, etc.)
- run cron (cron:run)
- enable and disable modules (module:enable, module:disable)
- check indexer status, and reindex if needed (indexer:info, indexer:reindex, etc.)
and many more