Back to Flyway

Working Directory Parameter

documentation/Reference/Command-line Parameters/Working Directory Parameter.md

latest2.3 KB
Original Source

Description

The working directory to consider when dealing with relative paths. If configured, this parameter will affect the below areas:

Type

String

Default

<i>none</i>

Usage

Command-line

powershell
./flyway -workingDirectory="my_project" info

Environment Variable

Not available

API

java
Flyway.configure()
        .workingDirectory("my_project")
        .load()

Gradle

Not available

Maven

xml
<configuration>
    <workingDirectory>my_project</workingDirectory>
</configuration>

Notes

If this parameter is left empty, Flyway will use the directory that Flyway is executed in.