This chapter covers
- Discovering the Atlas platform and its command- line interface
- Loading a sample data set into your MongoDB Atlas cluster
- Getting started with the MongoDB shell (
mongosh
) - Managing data with databases, collections, and documents
- Examining time-series and capped collections
In this chapter, we will take our first steps with MongoDB Atlas and delve into data management within a MongoDB deployment. We will explore the concepts, features, and techniques for storing data in MongoDB.
Part 2 of this book gives you a more comprehensive understanding of MongoDB Atlas. For now, our focus is on taking the first steps to build the first MongoDB Atlas cluster using the Atlas command-line interface (CLI). Building this cluster is essential because it allows us to conduct practical exercises and gain a deeper understanding of MongoDB concepts, providing a hands-on experience that illustrates the platform’s capabilities and benefits in real-world applications.
2.1 Setting up your first Atlas cluster using Atlas CLI
The quickest way to establish a MongoDB Atlas database cluster is to use the Atlas CLI. This interface, designed specifically for MongoDB Atlas, enables programmatic interaction with the Atlas platform, including features like Atlas Search and Vector Search, right from the terminal. It uses concise, intuitive commands, permitting the execution of database management operations in mere seconds.