# Install mongosh with npm

MongoDB Shell CLI REPL. Version 2.8.3 via npm; verified 2026-05-01.

## Install

```sh
sudo av install npm:mongosh
```

Additional install commands:

### Portable and language managers

- npm (100%):

```sh
npm install -g mongosh
```

  Evidence: local npm package metadata

## Package facts

- **Package key:** npm:mongosh
- **Package manager:** npm
- **Package manager page:** <https://www.npmjs.com/package/mongosh>
- **Version:** 2.8.3
- **Source summary:** MongoDB Shell CLI REPL
- **Homepage:** <https://github.com/mongodb-js/mongosh/>
- **Repository:** <https://github.com/mongodb-js/mongosh>
- **Upstream docs:** <https://github.com/mongodb-js/mongosh/>
- **License:** Apache-2.0
- **Source archive:** <https://registry.npmjs.org/mongosh/-/mongosh-2.8.3.tgz>
- **Issue tracker:** <https://github.com/mongodb-js/mongosh/issues>
- **Published:** 2026-05-01T17:04:16.139Z
- **Last updated:** 2026-05-01T17:04:16.139Z
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- mongosh (cli)

## Dependencies

- @mongosh/cli-repl

## Install behavior

- Post-install hook: not defined
- Bottle: not available

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 2.8.3
- Package-manager updated: 2026-05-01
- Local data: ok
- Upstream repository: https://github.com/mongodb-js/mongosh
- info: No cached GitHub release or tag data was available.

## Security Notes

No matching local secret-handling manifest was found for mongosh. Nucleus package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** npm registry
- **Dist Tags:** Latest: 2.8.3
- **Version Count:** 119
- **Maintainers:** devtoolsbot, addaleax, alexander_schroll, nirinchev, mcasimir_mdb, mcasimir
- **Publisher:** devtoolsbot
- **Engines:** Node: >=16.15.0
- **Integrity:** sha512-ycRo+S8MjqvQVcD0GYRpgX6xT0Fp+rDOgAwgiqAp//xIhfX+AQ05pyMpQdQ3grpKsUMcib04m5YXjPToNphG2w==
- **Shasum:** 9cda200967c5d3a1d63b904aa12e12803338b09d
- **Unpacked Size:** 17,408
- **File Count:** 0
- **Created At:** 2020-09-18T13:59:21.344Z
- **Latest Published At:** 2026-05-01T17:04:16.139Z
- **Modified At:** 2026-05-01T17:04:16.315Z

## Other Package-Manager Records

- Nix - mongosh: normalized package name match | nixpkgs package indexes: pkgs/by-name/mo/mongosh/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Scoop - extras/mongosh: normalized package name match | Scoop official bucket manifest trees: bucket/mongosh.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1


## Related links

- [Database and data packages](https://www.automicvault.com/pkg/database-data-tools/) - Matched curated package taxonomy and local package facts.
- [mongosh](https://www.automicvault.com/pkg/brew/mongosh/) - Same normalized package name appears in another local ecosystem. Shared terms: cli, database, mongodb, mongosh, repl.
- [mongodb-mcp-server](https://www.automicvault.com/pkg/npm/mongodb-mcp-server/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, data, database, database-tools, mongodb.
- [m](https://www.automicvault.com/pkg/npm/m/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, data, database, database-tools, mongodb.
- [mongosh](https://www.automicvault.com/pkg/brew/mongosh/) - Same normalized package name exists in another local package ecosystem.

## Sources

- Nucleus package database
- package-page enrichment
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
