From 6ddc5736585a439ac5532799c53256d5d3a88056 Mon Sep 17 00:00:00 2001 From: Rodolfo Berrios Date: Mon, 10 May 2021 17:47:24 -0400 Subject: [PATCH] update 2.2.0 --- README.md | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 65 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index a2665f8..054b2ff 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ Content-Type: multipart/form-data ### CLI API ```sh -php installer.php -a checkLicense -l LicenseKeyToCheck +php installer.php -a ``` ## API Actions @@ -69,6 +69,10 @@ Parameters: | ------- | --- | | license | l | +```sh +php installer.php -a checkLicense -l= +``` + ### checkDatabase Checks database credentials and privileges. @@ -83,6 +87,15 @@ Parameters (database credentials): | user | u | | userPassword | x | +```sh +php installer.php -a checkDatabase \ + -h localhost \ + -p 3306 \ + -n db_name \ + -u db_user \ + -x db_password +``` + ### cPanelProcess Creates a database, database user and grant privileges. @@ -94,6 +107,12 @@ Parameters (cPanel credentials): | user | u | | password | x | +```sh +php installer.php -a cPanelProcess \ + -u user \ + -x password +``` + ### download Download the target software. @@ -105,9 +124,16 @@ Parameters (license is optional, needed for software=`chevereto`): | software | s | | license | l | -Note: When using CLI pass `l=key`. +```sh +php installer.php -a download \ + -s chevereto \ + -l= +``` -- Software: `chevereto`, `chevereto-free` +```sh +php installer.php -a download \ + -s chevereto-free +``` ### extract @@ -121,7 +147,19 @@ Parameters: | workingPath | p | | filePath | f | -- Software: `chevereto`, `chevereto-free` +```sh +php installer.php -a extract \ + -s chevereto \ + -p /var/www/html/ \ + -f +``` + +```sh +php installer.php -a extract \ + -s chevereto-free \ + -p /var/www/html/ \ + -f +``` ## createSettings @@ -134,15 +172,27 @@ Generates `app/settings.php` containing the database details. | name | n | | user | u | | userPassword | x | +| filePath | f | + +```sh +php installer.php -a createSettings \ + -h localhost \ + -p 3306 \ + -n db_name \ + -u db_user \ + -x db_password \ + -f app/settings.php +``` ## submitInstallForm -Submits the installation form at `/install`. +Submits the installation form at `/install`. Parameters: | HTTP | CLI | | -------------------- | --- | +| website | w | | username | u | | email | e | | password | x | @@ -152,6 +202,16 @@ Parameters: - website_mode: `community`, `personal` +```sh +php installer.php -a submitInstallForm \ + -w http://localhost/ \ + -u user -e user@hostname.loc \ + -x password \ + -f from@hostname.loc \ + -i inbox@hostname.loc \ + -m community +``` + ### Response All responses are in JSON format and use HTTP status codes: