Awesome
<div align="center">asdf-mongo-tools
mongo-tools plugin for the asdf version manager.
</div>ARCHIVAL NOTICE
I stopped using asdf-vm and archived this repository. If you're using this plugin, please consider forking the repository and having it added to the upstream plugin list at https://github.com/asdf-vm/asdf-plugins.
Contents
Plugin Dependencies
git
- for downloads of upstream releasesgo 1.15
- to build the tools
On Linux (Debian/Ubuntu) you also need some extra development headers:
libsasl2-dev
- Plugin is built with SASL authentication availablelibpcap-dev
- Needed bymongoreplay
On Fedora/RHEL the libraries are called cyrus-sasl-devel
and libpcap-devel
, respectively.
Install
Plugin:
$ asdf plugin-add mongo-tools https://github.com/itspngu/asdf-mongo-tools.git
mongo-tools:
# Show all installable versions
$ asdf list-all mongo-tools
# Install specific version
$ asdf install mongo-tools latest
# Set a version globally (in your ~/.tool-versions file)
$ asdf global mongo-tools latest
Check asdf readme for more instructions on how to install & manage versions.
mongo-tools
bsondump
- display BSON files in a human-readable formatmongoimport
- Convert data from JSON, TSV or CSV and insert them into a collectionmongoexport
- Write an existing collection to CSV or JSON formatmongodump/mongorestore
- Dump MongoDB backups to disk in .BSON format, or restore them to a live databasemongostat
- Monitor live MongoDB servers, replica sets, or sharded clustersmongofiles
- Read, write, delete, or update files in GridFSmongotop
- Monitor read/write activity on a mongo server
Refer to the upstream mongo-tools repository for documentation and usage instructions of the included tools.
License
See LICENSE