This article assumes you are a proud owner of a Flyway Teams / Enterprise license. If you are not, head over to the download/pricing page to purchase a license or start a free trial.
If you are currently using Flyway Community and have obtained a license, first you will need to download Flyway Teams / Enterprise. You can find a link in the relevant usage section below. Please see license key to read about where to configure your license key.
If you are using the command line, first you need to download Flyway Teams / Enterprise here. Then, simply provide your license key through any of the supported methods.
For example:
./flyway -licenseKey=FL01... info
If you are using the API, simply swap your dependency from org.flywaydb
to org.flywaydb.enterprise
. Then provide your license key through any of the supported methods.
For example:
// gradle
dependencies {
compile 'org.flywaydb.enterprise:flyway-core:9.8.1'
}
// code
Flyway flyway = Flyway.configure()
.licenseKey("FL01...")
.load();
flyway.info();
If you are using the Gradle plugin, swap the plugin dependency from id "org.flywaydb.flyway" version "9.8.1"
to id "org.flywaydb.enterprise.flyway" version "9.8.1"
. Then provide your license key through any of the supported methods.
For example:
plugins {
id "org.flywaydb.enterprise.flyway" version "9.8.1"
}
flyway {
licenseKey = 'FL01...'
}
If you are using the Maven plugin, swap the plugin dependency from <groupId>org.flywaydb</groupId>
to <groupId>org.flywaydb.enterprise</groupId>
. Then provide your license key through any of the supported methods.
For example:
<plugin>
<groupId>org.flywaydb.enterprise</groupId>
<artifactId>flyway-maven-plugin</artifactId>
<version>9.8.1</version>
<configuration>
<licenseKey>FL01...</licenseKey>
</configuration>
</plugin>
Now that you are using the Teams / Enterprise edition of Flyway, you can take advantage of all the powerful new features at your disposal:
… and much more. See parameters for all the Teams configuration parameters.