This article demonstrate how to install Opencart via CLI (Command Line Interface). CLI SAPI(Server Application programming Interface) uses to develop shell application. Where the user commands to the program in the form of lines of texts and Shell or Command Language Interpreter handles the interface.
1. Download the latest Opencart 3.x.x.x from this https://www.opencart.com/index.php?route=cms/download/download&download_id=56.
2. Then extract the zip and upload the files and folders which are in upload folder, to your root directory.
3. open your system terminal and go to your Opencart root directory in which you have uploaded the Opencart files.
To run a php file you needs to check whether CLI is installed in your server. For this you have to check by run php -v command on the terminal.
Opencart Company ? Find out More
In the above screen shot you can see the PHP 7.0.22-0ubuntu0.16.04.1 (cli) means cli is installed on your server.
Now you just have to run the cli_install.php file by passing some arguments in the terminal. Here is the arguments
just run this above command with proper arguments then Opencart will be installed on your server.