CLI Configuration Order
Published 31 October 2023
Settings are loaded in the following order (higher items in the list take precedence over lower ones):
- Command-line arguments
- Environment variables
- Standard input
- Custom config files
TOML Configuration file (.toml) takes precedence over a legacy configuration (.conf) file and then the following filesystem locations- {workingDirectory}/
- {executionDir}/
- {userhome}/
- {installDir}/conf/
- Flyway command-line defaults
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.
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