Just make your flyway.conf
file and then migrate using this file.
Example flyway.conf in your ~/ folder.
flyway.url=jdbc:postgresql://localhost:5432/your_database
flyway.user=your_user
flyway.password=your_password
And then use -configFiles
directive like: flyway -configFiles=flyway.conf migrate