1.0.2 • Published 7 months ago

@neoxr/mex v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
7 months ago

Mex

Easy to use CLI program like Mongodb Tools to perform Mongo database backups and migrations.

Usage : mex <command> [option]

Commands :
  export  Export all collections from database
  import  Import backup files to new database

Options :
  --help, -h     Display help about this program
  --version, -v  Print version
  --uri          Set mongodb uri
  --db           Set database name
  --output       Set backup folder

Export

$ mex export --uri="mongodb+srv://localhost" --db="bot"

Import

$ mex import --uri="mongodb+srv://localhost" --db="bot"