This article discusses the new command-line interface (CLI) tool in Magento 2.0. The Magento CLI enables you to run and automate common installation and configuration tasks from the command line.
Magento 2.0 introduces a new command-line interface (CLI). The CLI enables you to do many common installation and configuration tasks from the command line, including:
Because the CLI is run from the command line, you can automate these tasks in shell script files or cron jobs.
To configure and run the Magento CLI, follow these steps:
chmod 744 bin/magento
To run the CLI and view the available command options, type the following command:
The CLI has many command options. For example, to flush the caches, type the following command:
For detailed information about all of the CLI's options, please visit the official Magento documentation at http://devdocs.magento.com/guides/v2.0/config-guide/cli/config-cli.html.
For detailed information about the Magento CLI, please visit http://devdocs.magento.com/guides/v2.0/config-guide/cli/config-cli.html.
Subscribe to receive weekly cutting edge tips, strategies, and news you need to grow your web business.
No charge. Unsubscribe anytime.
Did you find this article helpful? Then you'll love our support. Experience the A2 Hosting difference today and get a pre-secured, pre-optimized website. Check out our web hosting plans today.