Keitaro Command Tools

Create new admin

php bin/cli create_admin LOGIN PASSWORD

Run cron-tasks

php bin/cli cron

Migrations

List of migrations

php bin/cli migrations --list

Run all migrations

php bin/cli migrations --run-all

Run specific migration

php bin/cli migrations --run=VERSION

Update geo-dbs

Update all DBs

php bin/cli.php update_geodb --update-all

Update specific DB

php bin/cli.php update_geodb --update="NAME"

List of DBs

php bin/cli.php update_geodb --list

Update Keitaro TDS

php bin/cli.php update_system --update

Install Keitaro TDS

sudo -u nginx php install.php install \ 
    --domain=domain.com
    --key=NNNN-NNNN-NNNN-NNNN \
    --db-user=tds \
    --db-name=tds \
    --db-password=password \
    --admin-login=admin \
    --admin-password=password \
    --draft-storage=redis

The installation must be run by the user name of a web server.