Tethys Platform
Table Of Contents
Table Of Contents

db command

Setup and manage a Tethys database.

usage: tethys db [-h] [-d DB_ALIAS] [-n USERNAME] [-p PASSWORD]
                 [-N SUPERUSER_NAME] [-P SUPERUSER_PASSWORD]
                 [--portal-superuser-name PORTAL_SUPERUSER_NAME]
                 [--portal-superuser-email PORTAL_SUPERUSER_EMAIL]
                 [--portal-superuser-password PORTAL_SUPERUSER_PASSWORD]
                 {init,start,stop,status,create,migrate,createsuperuser,configure,sync}

Positional Arguments

command

Possible choices: init, start, stop, status, create, migrate, createsuperuser, configure, sync

DB command to run.

Named Arguments

-d, --database

Name of the database options from portal_config.yml to use (e.g. 'default').

Default: "default"

-n, --username

Name of database user to add to database when creating.

Default: "tethys_default"

-p, --password

Password for the database user.

Default: "pass"

-N, --superuser-name

Name of database super user to add to database when creating.

Default: "tethys_super"

-P, --superuser-password

Password for the database super user.

Default: "pass"

--portal-superuser-name, --pn

Name for the Tethys portal super user.

Default: "admin"

--portal-superuser-email, --email, --pe

Email of the Tethys portal super user.

Default: ""

--portal-superuser-password, --pp

Password for the Tethys portal super user.

Default: "pass"