MongoDB Compass and mongosh keyboard shortcuts

Compass has keys for its tabs, its aggregation focus mode and the shell built into it, and mongosh, MongoDB's command-line shell, has a handful of its own. Where MongoDB's shortcuts page and the shipping app disagree, the keys here are the ones Compass 1.51 uses and shows, and the notes say which. mongosh runs in a terminal, so its keys are the same on Windows and a Mac.

48 shortcutsWindows and MacChecked 27 September 2026

Checked against MongoDB Docs — Compass: Keyboard Shortcuts, MongoDB Docs — Compass release notes, Compass repository, v1.51.0 — application menu, Compass repository, v1.51.0 — workspace tab keys, Compass repository, v1.51.0 — aggregation focus mode keys, Compass repository, v1.51.0 — the embedded shell's keyboard shortcuts list, Compass repository, v1.51.0 — editor keys, MongoDB Docs — mongosh: Run Commands, MongoDB Docs — mongosh: Use an Editor for Commands and MongoDB Docs — mongosh: Configure Settings. Version: MongoDB Compass 1.51.0 and mongosh 2.12.0, default keys.

48 shortcuts

The top 16 are the MongoDB shortcuts this page marks as the ones to learn first, in the order they appear here. The drill asks the marked ones first too, shuffled. Or tick your own and print those.

Next