I am wondering is it possible to install Magento 2 with a shell script?
Like we run shell script and Magento 2 will be installed automatically?
Just like softaculous on cpanel ?
Any help will be appreciated.
Thanks.
command lineinstallationmagento2
I am wondering is it possible to install Magento 2 with a shell script?
Like we run shell script and Magento 2 will be installed automatically?
Just like softaculous on cpanel ?
Any help will be appreciated.
Thanks.
Best Answer
I created a shell script for installing automatically Magento2 with composer, the script is on GitHub
The shell file contains that:
This file has the .sh extension.
In .sh file, you must change the value of variables.
The Readme file contains that:
The command for your helper of this script is:sh m2_install.sh -h
sh m2_install.sh --help
Result:
The command to installing Magento 2 without sample data is:
The command to installing Magento 2 with sample data is:sh m2_install.sh -r
sh m2_install.sh --run-instalation
For create alias of script, view example:sh m2_install.sh -rs
sh m2_install.sh --run-instalation-sampledata
alias m2i="/your/sh/file/path/file.sh"
After created alias of script, you can run next commands:
With sample data:
m2i -rs
m2i --run-instalation-sampledata
Without sample data:
m2i -r
m2i --run-instalation