Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

Commit

Permalink
update 2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rodber committed May 10, 2021
1 parent 1d546d8 commit 6ddc573
Showing 1 changed file with 65 additions and 5 deletions.
70 changes: 65 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Content-Type: multipart/form-data
### CLI API

```sh
php installer.php -a checkLicense -l LicenseKeyToCheck
php installer.php -a <ACTION> <PARAMETERS>
```

## API Actions
Expand All @@ -69,6 +69,10 @@ Parameters:
| ------- | --- |
| license | l |

```sh
php installer.php -a checkLicense -l=<LICENSE_KEY>
```

### checkDatabase

Checks database credentials and privileges.
Expand All @@ -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.
Expand All @@ -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.
Expand All @@ -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=<LICENSE_KEY>
```

- Software: `chevereto`, `chevereto-free`
```sh
php installer.php -a download \
-s chevereto-free
```

### extract

Expand All @@ -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 <DOWNLOADED_FILENAME>
```

```sh
php installer.php -a extract \
-s chevereto-free \
-p /var/www/html/ \
-f <DOWNLOADED_FILENAME>
```

## createSettings

Expand All @@ -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 `<website>/install`.

Parameters:

| HTTP | CLI |
| -------------------- | --- |
| website | w |
| username | u |
| email | e |
| password | x |
Expand All @@ -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:
Expand Down

0 comments on commit 6ddc573

Please sign in to comment.