Getting Started
Published 12 July 2023
Getting Started
Welcome to Flyway, database migrations made easy.
Ready to get started? Take a 5 minute tutorial:
Command Line
For non-JVM users and environments without build tools
> flyway migrate -url=... -user=... -password=...
API Usage
Migrate directly from within your application
Flyway flyway = Flyway.configure().dataSource(url, user, password).load();
flyway.migrate();
Maven usage
Seamless integration with Maven 2/3 builds
> mvn flyway:migrate -Dflyway.url=... -Dflyway.user=... -Dflyway.password=...
Gradle usage
Seamless integration with Gradle builds
> gradle flywayMigrate -Dflyway.url=... -Dflyway.user=... -Dflyway.password=...