mongoass
v0.0.2
Published
MONGOASS is an assistant to MongoDB, mostly for running common admin operations.
Readme
mongoass
MONGOASS is an assistant to MongoDB, mostly for running common admin operations.
Installation
npm install mongoass -gUsage
Usage: mongoass [options] [uri]
Arguments:
uri MongoDB connection string (optional when MONGODB_URI or MONGO_URI is set)
Options:
--operations-list List current operations
--operations-kill Kill matching operations
--indexes-list-subsumed List indexes that are subsumed by another index
--indexes-remove-subsumed [list] Remove subsumed indexes, optionally restricted to a comma-separated list of index names or db.collection:index names
--max-pool <n> Max pool size for the client (default: 5)
--select-app-name <name> Select by application name
--select-users <list> Comma-separated list of users to include
--select-min-runtime <milliseconds> Select operations running for at least this many milliseconds
--select-databases <list> Comma-separated list of database names to include
--select-collections <list> Comma-separated list of collection names to include
--select-include-reads Include only read operations
--select-include-writes Include only write operations
-h, --help display help for command--indexes-list-subsumed lists indexes whose key pattern is a strict prefix of another directional compound index on the same collection, provided the relevant index options match.
--indexes-remove-subsumed drops all such indexes. You can pass an optional comma-separated list to restrict removal to specific subsumed indexes. Bare index names are allowed when they are unambiguous; otherwise qualify them as db.collection:indexName.
The MongoDB connection string can be passed either as the uri argument or through MONGODB_URI / MONGO_URI. If both are present, the command-line argument takes precedence.
License
Apache-2.0
