|
1 | | -<p align="center"> |
2 | | - <img width="80" height="80" src="https://raw.github.com/mongodb/mongocli/master/mongocli.svg" alt="MongoDB CLI Logo"> |
3 | | -</p> |
4 | | - |
| 1 | +## MongoDB Atlas CLI |
5 | 2 |
|
6 | 3 |  |
7 | 4 |  |
8 | 5 |
|
9 | | -The MongoDB CLI is a modern command line interface that enables you to manage your MongoDB services from the terminal. |
10 | | - |
11 | | - |
| 6 | +The MongoDB Atlas CLI repository contains the following modern command line interfaces: |
| 7 | +- [Atlas CLI](atlascli.md) |
| 8 | +- [MongoDB CLI](mongocli.md) |
12 | 9 |
|
13 | 10 | Use simple, one-line commands to interact with MongoDB Atlas, Cloud Manager, or Ops Manager, and to automate management tasks for your deployments. |
14 | 11 |
|
15 | | -## Documentation |
16 | | - |
17 | | -See the [official docs](https://docs.mongodb.com/mongocli/stable/) for instructions on how to |
18 | | -install, set up, and reference available commands. |
19 | | - |
20 | | -## Installing |
21 | | - |
22 | | -### Homebrew on macOS |
23 | | - |
24 | | -```bash |
25 | | -brew install mongocli |
26 | | -``` |
27 | | - |
28 | | -### Pre-built Binaries |
29 | | - |
30 | | -Download the appropriate version for your platform from [mongocli releases](https://github.com/mongodb/mongocli/releases). |
31 | | -Once downloaded, the binary can be run from anywhere. |
32 | | -You don't need to install it into a global location. |
33 | | -This works well for shared hosts and other systems where you don't have a privileged account. |
34 | | - |
35 | | -Ideally, you should place this binary somewhere in your `PATH` for easy use. |
36 | | -`/usr/local/bin` is the most probable location. |
37 | | - |
38 | | -### Build From Source |
39 | | - |
40 | | -#### Prerequisite Tools |
41 | | -- [Git](https://git-scm.com/) |
42 | | -- [Go (at least Go 1.17)](https://golang.org/dl/) |
43 | | - |
44 | | -#### Fetch Source |
45 | | - |
46 | | -```bash |
47 | | -git clone https://github.com/mongodb/mongocli.git |
48 | | -cd mongocli |
49 | | -``` |
50 | | - |
51 | | -#### Build |
52 | | - |
53 | | -To build `mongocli`, run: |
54 | | - |
55 | | -```bash |
56 | | -make build |
57 | | -``` |
58 | | - |
59 | | -The resulting `mongocli` binary is placed in `./bin`. |
60 | | - |
61 | | -#### Install |
62 | | - |
63 | | -To install the `mongocli` binary in `$GOPATH/bin`, run: |
64 | | - |
65 | | -```bash |
66 | | -make install |
67 | | -``` |
68 | | - |
69 | | -**Note:** running `make build` is not needed when running `make install`. |
70 | | - |
71 | | -## Usage |
72 | | - |
73 | | -Run `mongocli help` for a list of available commands |
74 | | -or check our [online documentation](https://docs.mongodb.com/mongocli/master/) for more details. |
75 | | - |
76 | | -### Getting API Keys |
77 | | - |
78 | | -To use `mongocli` you'll need to get API keys, to get them follow the documentation |
79 | | -appropriate for the service you're using, |
80 | | -[Atlas](https://docs.atlas.mongodb.com/configure-api-access/), |
81 | | -[Ops Manager](https://docs.opsmanager.mongodb.com/current/tutorial/configure-public-api-access/), |
82 | | -or [Cloud Manager](https://docs.cloudmanager.mongodb.com/tutorial/manage-programmatic-api-keys/) |
83 | | - |
84 | | -### Configuring `mongocli` |
85 | | - |
86 | | -Run `mongocli config` to set up your credentials, |
87 | | -this is optional, you can use [env variables](https://docs.mongodb.com/mongocli/stable/configure/environment-variables/) instead. |
88 | | - |
89 | | -If you're working with Atlas Gov, Ops Manager or Cloud Manager you need to define the service using `--service` |
90 | | - |
91 | | -For Atlas Gov, `mongocli config --service cloudgov`. |
92 | | - |
93 | | -For Ops Manager, `mongocli config --service ops-manager`. |
94 | | - |
95 | | -For Cloud Manager, `mongocli config --service cloud-manager`. |
96 | | - |
97 | | -### Shell Completions |
98 | | - |
99 | | -If you install via [homebrew](#hombrew-on-macos) no additional actions are needed. |
100 | | - |
101 | | -To get specific instructions for your preferred shell run: |
102 | | - |
103 | | -```bash |
104 | | -mongocli completion <bash|zsh|fish|powershell> --help |
105 | | -``` |
106 | | - |
107 | 12 | ## Contributing |
108 | 13 |
|
109 | 14 | See our [CONTRIBUTING.md](CONTRIBUTING.md) guide. |
110 | 15 |
|
111 | 16 | ## License |
112 | 17 |
|
113 | | -MongoDB CLI is released under the Apache 2.0 license. See [LICENSE](LICENSE) |
| 18 | +MongoDB CLI and Atlas CLI are released under the Apache 2.0 license. See [LICENSE](LICENSE) |
0 commit comments