# Install mongocli with Homebrew, MacPorts

MongoDB CLI enables you to manage your MongoDB in the Cloud. Version 2.0.7 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:mongocli
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install mongocli
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install mongocli
```

  Evidence: MacPorts ports tree: databases/mongocli/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:mongocli
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/mongocli>
- **Version:** 2.0.7
- **Source summary:** MongoDB CLI enables you to manage your MongoDB in the Cloud
- **Homepage:** <https://www.mongodb.com/docs/mongocli/current/>
- **Repository:** <https://github.com/mongodb/mongodb-cli>
- **Upstream docs:** <https://www.mongodb.com/docs/mongocli/current>
- **License:** Apache-2.0
- **Source archive:** <https://github.com/mongodb/mongodb-cli/archive/refs/tags/mongocli/v2.0.7.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- mongocli (cli)
- mongocli (alias)

## Build dependencies

- go

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 2.0.7
- Local data: ok
- Upstream repository: https://github.com/mongodb/mongodb-cli
- Upstream latest detected: mongocli/v2.0.7 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

MongoDB CLI, invoked as mongocli, was built by MongoDB as a terminal interface for MongoDB management services. Its repository describes it as a modern command-line interface for managing MongoDB services from the terminal, with simple one-line commands for Ops Manager and Cloud Manager automation.

### Project history

The tool's role narrowed after MongoDB separated Atlas administration into the Atlas CLI. MongoDB CLI 2.0.0, released on 2024-03-14, fully deprecated mongocli atlas commands and directed users to migrate Atlas workflows to the Atlas CLI. That leaves mongocli primarily in the Ops Manager and Cloud Manager niche: automation, alerts, backups, clusters, agents, logs, maintenance windows, metrics, processes, and security settings for managed MongoDB deployments outside the dedicated Atlas CLI path.

### How it is used

Homebrew and MacPorts package it as a single mongocli executable for administrators and CI jobs that need scripted access to Cloud Manager or Ops Manager without using the web UI.

### Sources

- <https://formulae.brew.sh/formula/mongocli>
- <https://github.com/mongodb/mongodb-cli>
- <https://www.mongodb.com/docs/mongocli/current/command/mongocli-ops-manager/>
- <https://www.mongodb.com/docs/mongocli/current/release-notes/>
- <https://www.mongodb.com/try/download/mongocli>


## Security Notes

infrastructure mutation or orchestration signal.

- **Geiger risk:** orange / medium
- infrastructure mutation or orchestration signal


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Linux: $XDG_CONFIG_HOME/mongocli/config.toml, ~/.config/mongocli/config.toml
- macOS: /Users/{username}/Library/Application Support/mongocli/config.toml
- Windows: %AppData%\mongocli\config.toml

## Credential files

- Linux: $XDG_CONFIG_HOME/mongocli/config.toml, ~/.config/mongocli/config.toml
- macOS: /Users/{username}/Library/Application Support/mongocli/config.toml
- Windows: %AppData%\mongocli\config.toml
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** mongocli
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- MacPorts - mongocli: normalized package name match | MacPorts ports tree: databases/mongocli/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related links

- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [go](https://www.automicvault.com/pkg/brew/go/) - Build dependency declared by Homebrew.
- [grafanactl](https://www.automicvault.com/pkg/brew/grafanactl/) - Shares av.db curated category or tags: automation, cli, developer-tools.
- [mongo-orchestration](https://www.automicvault.com/pkg/brew/mongo-orchestration/) - Shares av.db curated category or tags: cli, developer-tools, mongodb.
- [mongosh](https://www.automicvault.com/pkg/brew/mongosh/) - Shares av.db curated category or tags: cli, developer-tools, mongodb.
- [pyp](https://www.automicvault.com/pkg/brew/pyp/) - Shares av.db curated category or tags: automation, cli, developer-tools.
- [recur](https://www.automicvault.com/pkg/brew/recur/) - Shares av.db curated category or tags: automation, cli, developer-tools.
- [xe](https://www.automicvault.com/pkg/brew/xe/) - Shares av.db curated category or tags: automation, cli, developer-tools.
- [ahoy](https://www.automicvault.com/pkg/brew/ahoy/) - Shares av.db curated category or tags: automation, cli, developer-tools.
- [all-repos](https://www.automicvault.com/pkg/brew/all-repos/) - Shares av.db curated category or tags: automation, cli, developer-tools.

## Combined YAML source

View the package source record on GitHub. [combined/mongocli.yml](https://github.com/automic-vault/db/blob/main/combined/mongocli.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
