Magento 2 Command-Line Interface

The Magento Command-Line Interface (CLI) seeks to automate processes and make life easier for developers to create unique solutions, serving as support for the execution of important procedures. The Magento 2 CLI tool can generate specific codes, perform deployment, change the status of the store, and even make backups by performing routines from the command line.

In previous versions of Magento, to disable the system cache, you would access the administrative area and change this option on the dashboard. With the Magento 2 CLI tool, it is possible perform this task with a simple command: php bin/magento cache:disable.

The Magento 2 CLI tool is available through the terminal (Unix-based) or command prompt (Windows) in the root directory of your Magento installation 2. You simply go to your root directory via the terminal or prompt and type the command php bin/magento list:

Magento 2 Command-Line Interface

Tip

Remember that the environment variable for PHP must be properly configured according to the XAMPP installation or any other environment to which you choose to work. See more at http://php.net/manual/en/install.php .

The php bin/magento list command displays a list of all the possible commands for use with the Magento 2 CLI tool. The commands are illustrated in the following table:

Magento 2 Command-Line Interface

Magento 2 Command-Line Interface

Magento 2 Command-Line Interface

Magento 2 Command-Line Interface

Magento 2 Command-Line Interface

Magento 2 Command-Line Interface

Magento 2 Command-Line Interface

Tip

Remember to use the php bin/magento help command to view which parameters can be used for a particular command. See more at http://devdocs.magento.com/guides/v2.0/config-guide/cli/config-cli.html .

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.128.79.88