Flyway

CLI Configuration Order

Settings are loaded in the following order (higher items in the list take precedence over lower ones):

  1. Command-line arguments
  2. Environment variables
  3. Standard input
  4. Custom config files
    TOML Configuration file (.toml) takes precedence over a legacy configuration (.conf) file and then the following filesystem locations
    1. {workingDirectory}/
    2. {executionDir}/
    3. {userhome}/
    4. {installDir}/conf/
  5. 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


Didn't find what you were looking for?