CLI Reference — calista db¶
The calista db command is a thin wrapper around Alembic migrations.
calista db¶
Database management commands.
Usage:
calista db [OPTIONS] COMMAND [ARGS]...
Options:
| Name | Type | Description | Default |
|---|---|---|---|
-h, --help |
boolean | Show this message and exit. | False |
calista db current¶
Show current DB revision.
Usage:
calista db current [OPTIONS]
Options:
| Name | Type | Description | Default |
|---|---|---|---|
--verbose, -v |
boolean | Show alembic's more verbose output. | False |
-h, --help |
boolean | Show this message and exit. | False |
calista db heads¶
Show available head revisions.
Usage:
calista db heads [OPTIONS]
Options:
| Name | Type | Description | Default |
|---|---|---|---|
--verbose, -v |
boolean | Show alembic's more verbose output. | False |
-h, --help |
boolean | Show this message and exit. | False |
calista db history¶
Show revision history.
Usage:
calista db history [OPTIONS]
Options:
| Name | Type | Description | Default |
|---|---|---|---|
--verbose, -v |
boolean | Show alembic's more verbose output. | False |
--indicate-current, -i |
boolean | Indicate the current revision. | False |
-h, --help |
boolean | Show this message and exit. | False |
calista db status¶
Show database connection and schema status.
Usage:
calista db status [OPTIONS]
Options:
| Name | Type | Description | Default |
|---|---|---|---|
-h, --help |
boolean | Show this message and exit. | False |
calista db upgrade¶
Upgrade the database to the head revision.
Usage:
calista db upgrade [OPTIONS]
Options:
| Name | Type | Description | Default |
|---|---|---|---|
--sql |
boolean | Generate SQL without executing. | False |
--force |
boolean | Upgrade without confirmation. | False |
-h, --help |
boolean | Show this message and exit. | False |