Search code examples
command-line-interfaceflyway

Installing flyway CLI gives command not found


I try to run flyway repair on my server, but I have a problem installing the cli. i extracted it on the server and i am at ~/flyway/flyway-4.2.0$ but it says command not found. Am I missing something? (Java is installed)

Manual only says this


Solution

  • Try running the command as ./flyway repair

    It appears you are on a linux server and it is necessary to run the command this way (see https://unix.stackexchange.com/questions/4430/why-do-we-use-to-execute-a-file). The Flyway docs are for a windows cmd prompt.