Skip to content

Not able to run command line options in sbt shell #50

@milindpatel-kt

Description

@milindpatel-kt

I'm trying to run flywayMigrate on a different database as opposed to the once that I have already configured in my build.sbt

For that, I'm trying to pass cli arguments in sbt shell like so, flyway -url="jdbc:postgresql://someserver:1234/testdb" -driver="org.postgresql.Driver" -username="postgres" -password="abcd" migrate
OR
flyway -configFiles=path/to/myAlternativeConfig.conf migrate

But looks like sbt doesn't take cli arguments dynamically this way: https://flywaydb.org/documentation/commandline/#command-line-arguments

Can someone help me with this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions