CLI Usage¶
This page provides documentation for the sqly command line command.
-
sqly migration= create a new migration. Example: -
sqly migrations= list the migrations. Example: -
sqly migrate= migrate the database to a migration. Example:
sqly¶
Usage:
Options:
| Name | Type | Description | Default |
|---|---|---|---|
--help |
boolean | Show this message and exit. | False |
sqly migrate¶
Migrate database_url to the given MIGRATION_KEY (up or dn).
Usage:
Options:
| Name | Type | Description | Default |
|---|---|---|---|
-u, --database-url |
text | Datebase to migrate; default = env $DATABASE_URL | None |
-d, --dialect |
text | N/A | None |
-r, --dryrun |
boolean | If present, shows but does not run the migrations | False |
--help |
boolean | Show this message and exit. | False |
sqly migration¶
Create a Migration in APP (importable python module) incorporating dependencies from OTHER_APPS
Usage:
Options:
| Name | Type | Description | Default |
|---|---|---|---|
-n, --name |
text | A couple words describing the Migration’s purpose | None |
--help |
boolean | Show this message and exit. | False |
sqly migrations¶
List the Migrations in APPS
Usage:
Options:
| Name | Type | Description | Default |
|---|---|---|---|
-i, --include-depends |
boolean | Include dependencies | False |
--help |
boolean | Show this message and exit. | False |