1.1.0 • Published 3 years ago

@epilefapps/mongo-database-versioning v1.1.0

Weekly downloads
-
License
Apache 2.0
Repository
github
Last release
3 years ago

mongo-database-versioning

Mongo DB migration database versioning

oclif Version CircleCI Codecov Downloads/week License

Usage

$ npm install -g @epilefapps/mongo-database-versioning
$ mongo-migrate COMMAND
running command...
$ mongo-migrate (-v|--version|version)
@epilefapps/mongo-database-versioning/1.1.0 linux-x64 node-v16.2.0
$ mongo-migrate --help [COMMAND]
USAGE
  $ mongo-migrate COMMAND
...

Commands

mongo-migrate create OPTION FILE

command to create tenant, migration, seed or factory files

USAGE
  $ mongo-migrate create OPTION FILE

ARGUMENTS
  OPTION  (migration|seeder|factory|tenant) create the given file option
  FILE    create the given file name

OPTIONS
  -h, --help  show CLI help

EXAMPLE

         $ mongo-migrate create migration MigrationName
         $ mongo-migrate create seeder SeederName
         $ mongo-migrate create factory FactoryName
         $ mongo-migrate create tenant TenantName

See code: src/commands/create.ts

mongo-migrate factory

command to run factory files

USAGE
  $ mongo-migrate factory

OPTIONS
  -f, --file=file      factory file to run
  -h, --help           show CLI help
  -t, --tenant=tenant  tenant file to connect

EXAMPLE
  $ mongo-migrate factory

See code: src/commands/factory.ts

mongo-migrate help [COMMAND]

display help for mongo-migrate

USAGE
  $ mongo-migrate help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

mongo-migrate install

command to init mongo-migrate into a repository

USAGE
  $ mongo-migrate install

OPTIONS
  -h, --help  show CLI help

EXAMPLE

         $ mongo-migrate install

See code: src/commands/install.ts

mongo-migrate migrate

command to run migrations files

USAGE
  $ mongo-migrate migrate

OPTIONS
  -h, --help           show CLI help
  -t, --tenant=tenant  tenant file to connect

EXAMPLE
  $ mongo-migrate migrate

See code: src/commands/migrate.ts

mongo-migrate rollback

command to rollback migrations files

USAGE
  $ mongo-migrate rollback

OPTIONS
  -h, --help           show CLI help
  -t, --tenant=tenant  tenant file to connect

EXAMPLE
  $ mongo-migrate rollback

See code: src/commands/rollback.ts

mongo-migrate seed

command to run seed files

USAGE
  $ mongo-migrate seed

OPTIONS
  -f, --file=file      seed file to run
  -h, --help           show CLI help
  -t, --tenant=tenant  tenant file to connect

EXAMPLE
  $ mongo-migrate seed

See code: src/commands/seed.ts