I\'m evaluating Flyway for use in my project. Our current SQL scripts contain placeholders for things like URLs which will have a different domain names depending on the env
From my experience, it's much easier to use environment variables instead of CLI or config file (especialy when using docker and k8s).
You can use environment variables in the following format -
export FLYWAY_PLACEHOLDERS_USER=${USER}
Then in you sql statement, use this variable like this -
INSERT INTO tmptable (user)
VALUES ('${user}')
read more about environment variables here