flywaydb-cli

0.9.0 • Public • Published

flywaydb-cli

A simple script installer for flywaydb cli

Usage Examples

"scripts": {
  "migrate": "flyway -X -configFile=conf/flyway.conf migrate"
}
"scripts": {
  "migrate": "flyway -X -user=postgres -schemas=public,another migrate"
}

Motivation

After looking into a couple other packages and having issues with JS wrappers. I decided to simply install flyway command-line tools from source and make it usage in npm.

Installation

npm i -S flywaydb-cli

Flyway version support

flywaydb-cli now supports setting the version of Flyway that will be installed. By default flywaydb-cli will resolve the latest "releasedVersion" which is published by Flyway. If you wish to set the version place a .flyway file in your applications root path with the version you want to install. Version numbers are absolute, so look here for the available versions list.

Note, only the absolute version number is allowed in the .flyway file e.g. 5.2.4

CMD Reference

This simple installs the latest flyway command-line tools from source. All the auguments that flyway allows are available.

Tests

TODO

Contributors

Maintainer/Publisher sgraham785

Thank you to:

markgardner for the inspiration node-flywaydb

LiranBri for the updated source installer

License

Apache-2

Package Sidebar

Install

npm i flywaydb-cli

Weekly Downloads

2,379

Version

0.9.0

License

Apache-2.0

Unpacked Size

33.4 kB

Total Files

17

Last publish

Collaborators

  • sgraham785