Docs Home → Atlas Command Line Interface
Create and Configure an Atlas Cluster
This tutorial demonstrates how to use the atlas setup command to:
Create one cluster in your Atlas project.
Load sample data into your Atlas cluster.
Add your IP address to your project's IP access list.
Create a MongoDB user for your Atlas cluster.
Connect to your new cluster using the MongoDB Shell,
mongosh
.
To perform all of these steps while also creating a new Atlas account, see Get Started with Atlas.
To create a cluster using a configuration file, run the
atlas clusters create command with the --file
option instead
of atlas setup
. To learn more about the configuration file
for an Atlas cluster, see Cluster Configuration File.
You can also use atlas setup
to create an Atlas account and
authenticate with Atlas. To learn more, see
Get Started with Atlas.
Prerequisites
Before you begin, complete the following tasks:
Configure an Atlas Cluster
Use the atlas setup
command to create an M0
cluster in Atlas. M0
clusters have some operational limitations.
You can run this command in the following ways:
Default settings mode: the command creates a sample shared-tier cluster with the default settings.
Interactive mode: the command prompts you for the cluster settings and provides default values.
Noninteractive mode: you run the command with the options.
Click the tab to see the command for your preferred mode.
Take the Next Steps
Congratulations! You have successfully created a cluster to host your data.
Use the connection string
to connect to your cluster through mongosh
or your application.
To view the status of your cluster:
Run an
atlas clusters
command in the Atlas CLI.