Page 1 of 1

How to install extensions on command line?

Posted: Thu Nov 02, 2017 1:38 pm
by nemolf
Hi,
I want to install modules and make them enabled by commands on terminal, to make auto-installation script.
Please teach me how to do that.
- Opencart version : 3.0.2

<What I want to do>
Using Ansible,
- build server applications (nginx, php, mysql ...) --- OK
- install default Opencart -- OK
- make initialization of Opencart -- OK
- install and enabled some modules ---- Now here.. I will write a shell script for this process.
< Premise>
- Zip files (modules) are already on a target server.
- Terminal on the server is available. (bash, python, php or some other LWL)

Re: How to install extensions on command line?

Posted: Fri Nov 03, 2017 12:58 pm
by IP_CAM
Well, you will probably require commercial Support for this, I assume, it's
related to a Business Server Application, and of no concern to 'regular'
OC Users, possibly even able to be of free help. And others won't share their
Wisdom on such with possible future Competitors either, just for the fun of it.... ::)
Sorry for the bad News, it's not meant personal !
Ernie

Re: How to install extensions on command line?

Posted: Fri Nov 03, 2017 9:52 pm
by yodapt
With PHP and cURL you can automate extension installation and configuration. You'll most likely need a mask for each of them since they all have diferent parameters, but it should be quite easy to do.

Re: How to install extensions on command line?

Posted: Tue Nov 07, 2017 9:20 am
by tslack
nemolf wrote:
Thu Nov 02, 2017 1:38 pm
- install and enabled some modules ---- Now here.. I will write a shell script for this process.
< Premise>
- Zip files (modules) are already on a target server.
- Terminal on the server is available. (bash, python, php or some other LWL)
Honestly, I'm going the same route and I'm finding it much easier to download the opencart source via Git and then use my own Git structure to build releases of different setups. This way, I've found, one could potentially build any instance, with any modification/fixtures/extension, desired.

Cheers

Re: How to install extensions on command line?

Posted: Wed Nov 08, 2017 1:27 am
by IP_CAM
I found something, possibly matching your requirements:
mithereal - turnkey-opencart
https://github.com/mithereal/turnkey-opencart
Good Luck! ;)
Ernie