documentation/Reference/Configuration Precedence.md
Settings are loaded in the following order (higher items in the list take precedence over lower ones):
This means that if flyway.url is both present in a config file and passed as -url= from the command-line,
the command-line argument will take precedence and be used.
By default, Flyway will load settings from configuration files located in directories in this order (higher items in the list take precedence over lower ones):
workingDirectory}/Note that this behavior can be overridden by explicitly specifying config files using the configFiles command line parameter.
TOML Configuration files (<filename>.toml) take precedence over legacy configuration (<filename>.conf) files
Flyway does not support the simultaneous use of both Legacy CONF format and TOML format in the same environment.
It will interpret configurations using only one of these methods. To determine which method to use, Flyway adheres to specific precedence rules as below:
If you are unsure about where Flyway is taking its configuration from then adding -X (capital X) to the command line will enable extended debugging.
./flyway info -X