Docs Home → MongoDB Command Line Interface
Install or Update the MongoDB CLI
You can use the MongoDB Command Line Interface (mongocli
) to deploy and manage MongoDB clusters in
Atlas, Cloud Manager, and Ops Manager. For operating system and MongoDB
service version requirements, see Compatibility.
Install the MongoDB CLI
To install the MongoDB CLI, choose one of the following methods:
Install with a package manager like Homebrew, Yum, or Apt.
Download and extract the binary.
Clone the GitHub repository and install the MongoDB CLI with Go.
Procedure
Update the MongoDB CLI
To update the MongoDB CLI, follow the procedure for the method with which you installed the MongoDB CLI:
Next Steps
Configure the MongoDB CLI for your environment.
Enable autocomplete to see available commands and their syntax directly in your shell.