Some of these commands have hidden features that can be enabled in the mongo-hacker config, to make the command output even more useful: count indexes: list all collections and display the size of all indexes.count documents/ count docs: count the number of documents in all (non- system) collections in the database.count collections/ count tables: count the number of collections in each of the mongo server's databases.To make interactive use of the MongoDB shell even more convenient, mongo-hacker adds the following shell commands: The MongoDB shell offers various "shell commands" (sometimes referred to as "shell helpers" as well) that make interactive use of the shell much more convenient than proper, Javascript-only scripted use of the shell.
Colorized query output for console/terminal windows supporting ANSI color codes.You can still use default format by appending. Custom prompt: hostname(process-version) db>.Option to sort document keys (config: sort_keys).Disable notification of "Type 'it' for more".Default indent is 2 spaces instead of tab (config: indent).In green if query time is at or below slowms.Highlight query time if verbose shell is enabled.To toggle temporarily run setVerboseShell(false).
Verbose shell is enabled by default (config: verbose_shell).