To use the CLI API you need to run commands in the form:
php installer.php -a ACTION \
<PARAMETERS>
The following reference indicates which parameters you need to pass for each available action.
Checks Chevereto license status. Note that a valid license will be required at download step.
-a checkLicense
Parameter | Option |
---|---|
license | l |
php installer.php -a checkLicense -l=LICENSE_KEY
Creates a database, database user and grant privileges. This is only available for cPanel based servers.
-a cPanelProcess
Parameter | Option |
---|---|
cPanel User | u |
cPanel Password | x |
php installer.php -a cPanelProcess \
-u user \
-x password
Checks database credentials and privileges. Note that an empty database is required.
-a checkDatabase
Parameter | Option |
---|---|
host | h |
port | p |
name | n |
user | u |
userPassword | x |
php installer.php -a checkDatabase \
-h localhost \
-p 3306 \
-n db_name \
-u db_user \
-x db_password
Download the target Chevereto software. Note that the license must be active to download Chevereto.
-a download
Parameter | Options |
---|---|
Software | s |
Tag | t |
License | l |
php installer.php -a download \
-s chevereto \
-t=latest \
-l=LICENSE_KEY
You can check the license with the checkLicense action.
Extract the downloaded software file (filePath) in the target working path (absolute paths).
-a extract
Parameter | Option |
---|---|
Software | s |
WorkingPath | p |
FilePath | f |
php installer.php -a extract \
-s chevereto \
-p /var/www/html/ \
-f chevereto-pkg-*.zip
Generates app/settings.php
containing the database details.
-a createSettings
Parameter | Option |
---|---|
Database Host | h |
Database Port | p |
Database Name | n |
Database User | u |
Database User Password | x |
Filepath | f |
php installer.php -a createSettings \
-h localhost \
-p 3306 \
-n db_name \
-u db_user \
-x db_password \
-f app/settings.php
Creates a installer.lock
file to prevent using the installer.
php installer.php -a lock