-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[4.3] Add a CLI installation for Joomla #38325
Conversation
excited to try this. would it not make more sense for it to be in the cli folder? |
Unfortunately the application in the |
…o 4.2-installer-cli
Fair enough |
Co-authored-by: Brian Teeman <brian@teeman.net>
I removed the double error string. I just want to point out, that that is the error you get in the web installer when the credentials are wrong. So you are requesting different, stricter standards for the CLI installer than for the normal web installer. But whatever. Here you go, there is your fixed translation string. I also sorted the translation strings for the CLI file alphanumerically. Can we please merge this now? BTW: Dieter Ziller was so kind to help with the documentation. See the link added to the first post in this PR. |
@Hackwar thank you for documenting the CLI installation process. Great job. |
….2-installer-cli # Conflicts: # .drone.yml
….2-installer-cli # Conflicts: # .drone.yml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested on php 7.2.16 with manual input and console parameter.
Thanks |
Thank you! |
This PR adds a method to install Joomla via command line to simplify API tests and installations with one-click-setups. The new installation method can be triggered by running
php installation/joomla.php install
in the root of the Joomla folder. The different options are documented by runningphp installation/joomla.php help install
.All options can be given either by option directly on the command line or when running the install command interactively. If a default value is given for an option and that option is not defined, that default value is taken.
Summary of Changes
This adds a new CLI entry file, similar to
cli/joomla.php
to the installation with all necessary steps to run the installation. The code uses as much of the current installation as possible and validates the options from thesetup.xml
file.Testing Instructions
php installation/joomla.php install
in your installation and check that afterwards Joomla is properly installed.php installation/joomla.php install
with all necessary CLI optionsIf you are using a dev version (checked out the GIT version) the installation folder is preserved, otherwise the folder is deleted.
Documentation Changes Required
The CLI installation is documented here: https://docs.joomla.org/J4.x:Joomla_CLI_Installation as well as in
installation/INSTALL
.Acknowledgement
I'd like to thank Mittwald for supporting this improvement.