MongoScope

CLI flags

mongoscope startup flags

mongoscope --help
# or: bun start --help

During development, bun link exposes the mongoscope command on your PATH (same entry as bun start). bun run build produces a separate standalone binary at dist/mongoscope.

FlagDescription
-h, --help / -v, --versionPrint and exit immediately (version from package.json)
--log-dirWelcome screen’s second log list (default .)
--log-pathParse that log file on startup (skips picker; invalid path exits 1)
--uriEphemeral live connect for this session (not saved to the OS keychain)
--host, --port, --username, --password, --auth-dbBuild a URI and ephemeral-connect (do not combine with --uri; default port 27017)

Live-only startup (connection flags without --log-path) opens the dashboard with Slow Queries / Logs in live mode. Combining --log-path with live flags parses the log (static sources) and connects in parallel.