66
loading...
This website collects cookies to deliver better user experience
mongocli atlas quickstart
which will prompt an interactive cluster creation flow. It's probably helpful to do this at least once. Now, it's going to default you to an M10
. This is probably as much as you need, but you are probably wondering how do I specify what tier I want!brew install mongocli
mongocli
more than just the rights to connect to an individual cluster. If you went ahead and tried the quickstart
command, you would see at the end of the flow, it ran mongosh
with your new connection string!mongoCli
, and then chose Project Owner for Organization Permissions. While it's possible to give it lower permissions and still be beneficial. I want to transition to start using the UI as little as possible. The next screen will be your public and private api keys. Copy this to a note or VsCode. Add Access List Entry
and then "Us Current IP Address". Forgetting to whitelist my IP is something we will all get hit with at-least-once. Done.mongocli config
create
argument. You can learn more about Mongo Atlas CLI commands here.mongocli atlas cluster create cliTest2 --provider AWS --region US_EAST_1 --members 3 --tier M30 --mdbVersion 5.0 --diskSizeGB 10
<clusterName>
with whatever your heart desires. But keep it close by, I chose cliTest2. If we head back to our Mongo UI, we should see that Mongo is deploying our cluster. This process takes about 7-10 minutes. Once it is done we can retrieve the connection string for our Atlas instance.mongocli atlas clusters connectionStrings describe cliTest2
mongosh
and start querying our databases. We are just scratching the surface with mongocli
- almost criminally so. The last thing we need to do to save our butts financially is terminate this cluster.mongocli atlas clusters delete cliTest2