Options

Options

The following options are available:

OptionNameDescriptionRequired
-dDatabase TypeOne of the [supported databasses](../requirements/index.md#Supported Databases), in lowercase. Defaults to sqliteYes
-cConnection StringThe database connection stringYes
-pVersions Directory PathThe path to the location of the migration filesYes
-sSchemaThe schema to apply the migrations toNo
-qQuiet ModeRun queries without prompting. Defaults to falseNo
-tTarget VersionThe version to migrate/rollback/update the database toNo
-eHistory EntriesThe number of descriptions of applied migration to retrieve from the database. Defaults to 10No
-vVerbose ModePrint out migration queries as they are executed. Defaults to falseNo
-rDry Run ModeRollback migrations immediately after applying them. Defaults to falseNo