# mongocli を Homebrew, MacPorts でインストール

mongocli のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

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

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install mongocli
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install mongocli
```

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

## パッケージ情報

- **パッケージキー:** brew:mongocli
- **パッケージマネージャ:** Homebrew
- **バージョン:** 2.0.7
- **ソース概要:** MongoDB CLI enables you to manage your MongoDB in the Cloud
- **ホームページ:** <https://www.mongodb.com/docs/mongocli/current/>
- **リポジトリ:** <https://github.com/mongodb/mongodb-cli>
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- mongocli (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 2.0.7
## プロジェクトの歴史と使われ方

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.

### プロジェクトの歴史

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.

### 使われ方

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.

### ソース

- <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>


## セキュリティノート

infrastructure mutation or orchestration signal.

- **Geiger リスク:** orange / 中
- 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
## 他のパッケージマネージャ記録

- 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


## Combined YAML source

View the package source record on GitHub. [combined/mongocli.yml](https://github.com/mxcl/pkgdb/blob/main/combined/mongocli.yml)


## ソース

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
