underbase-cli
v1.0.4
Published
CLI app for underbase - MongoDB schema migration library
Downloads
6
Readme
DEPRECATED: see underbase instead
underbase-cli
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.