Magento command line tool

Magento 2 comes with the command line tool «magento». On a Bolt you can simply write «magento» (rather than bin/magento or php bin/magento like a lot of online docs say) from anywhere, to switch deploy modes, rebuild static assets – or use any of the other command line features.

For most day-to-day management, we usually prefer to use n98-magerun2 instead, as it has a lot of extra features. It’s available as «magerun2» on the command line.