1.0.4 • Published 5 years ago

underbase-cli v1.0.4

Weekly downloads
2
License
ISC
Repository
github
Last release
5 years ago

DEPRECATED: see underbase instead

underbase-cli

build status release dependencies

MongoDB migrations done right. Abstract framework and CLI app for writing, executing, and organizing your database migrations.

Look at underbase for programmatic usage.

Installation

This package can be installed through yarn or npm. Type:

$ npm i underbase-cli

# or ...

$ yarn add underbase-cli

Usage

CLI commands :

$ underbase-cli --help

Usage: underbase-cli <command> [OPTIONS]

Commands:
  underbase-cli migrate <migration>  Execute migrations
  underbase-cli list                 Show all migrations versions
  underbase-cli status               Show migrations status

Options:
  --version                 Show underbase-cli package version         [boolean]
  --db <url>                MongoDB connection URL
  --migrations-dir <dir>    Migrations versions directory
  --backup                  Enable automatic backups
  --backups-dir <dir>       Backups directory
  --collection-name <name>  Migrations state collection
  --logs                    Enable logs
  --rerun                   Force migrations execution
  --chdir <dir>             Change the working directory
  -h, --help                Show this help message                     [boolean]

See documentation.

1.0.4

5 years ago

1.0.3

5 years ago

1.0.0

5 years ago