|
| 1 | +.. _atlas-cli-onboarding: |
| 2 | + |
| 3 | +========================== |
| 4 | +Get Started with |service| |
| 5 | +========================== |
| 6 | + |
| 7 | +.. default-domain:: mongodb |
| 8 | + |
| 9 | +.. contents:: On this page |
| 10 | + :local: |
| 11 | + :backlinks: none |
| 12 | + :depth: 1 |
| 13 | + :class: singlecol |
| 14 | + |
| 15 | +You can get started with |service| via the {+atlas-cli+} using a single |
| 16 | +command: ``atlas setup``. |
| 17 | + |
| 18 | +This tutorial demonstrates how to use ``atlas setup`` to: |
| 19 | + |
| 20 | +1. Sign up for an |service| account. |
| 21 | +#. Authenticate with the new |service| account. |
| 22 | +#. Create one free database. |
| 23 | +#. Load :atlas:`sample data </sample-data/available-sample-datasets/>` |
| 24 | + into your |service| database. |
| 25 | +#. Add your IP address to your project's IP access list. |
| 26 | +#. Create a MongoDB user for your |service| {+database-deployment+}. |
| 27 | +#. Connect to your new {+database-deployment+} using the MongoDB Shell, |
| 28 | + {+mongosh+}. |
| 29 | + |
| 30 | +You can also run ``atlas setup`` if you have an |service| account and |
| 31 | +an organization/project but you haven't set up a {+cluster+}. |
| 32 | + |
| 33 | +.. _atlas-cli-onboarding-reqs: |
| 34 | + |
| 35 | +Complete The Prerequisites |
| 36 | +-------------------------- |
| 37 | + |
| 38 | +Before you begin, you must :ref:`install the {+atlas-cli+}<install-atlas-cli>`. |
| 39 | + |
| 40 | +Follow These Steps |
| 41 | +------------------ |
| 42 | + |
| 43 | +Complete the following procedure to get started with |service|. |
| 44 | + |
| 45 | +.. procedure:: |
| 46 | + |
| 47 | + .. step:: Run the ``atlas setup`` command in the terminal. |
| 48 | + |
| 49 | + .. code-block:: sh |
| 50 | + |
| 51 | + atlas setup |
| 52 | + |
| 53 | + After you run the command, enter :guilabel:`Y` to open the default browser. A browser window displays the :guilabel:`Create Your Account` |
| 54 | + screen. |
| 55 | + |
| 56 | + If you want to log into an existing |service| account, click |
| 57 | + :guilabel:`Log in now` and log in. |
| 58 | + |
| 59 | + If you're already logged into an existing |service| account, |
| 60 | + proceed to step 3. |
| 61 | + |
| 62 | + .. step:: Sign up and verify your account. |
| 63 | + |
| 64 | + Enter your account information and click :guilabel:`Sign Up`. |
| 65 | + Follow the prompts to verify your email or register using |
| 66 | + third-party authentication. |
| 67 | + |
| 68 | + .. step:: Verify your {+atlas-cli+} session. |
| 69 | + |
| 70 | + When you reach the :guilabel:`Activation` screen, copy the |
| 71 | + verification code from the {+atlas-cli+} and paste it into the |
| 72 | + browser. Then, click :guilabel:`Confirm Authorization` and return |
| 73 | + to the terminal window. |
| 74 | + |
| 75 | + .. step:: Accept the default {+cluster+} creation settings. |
| 76 | + |
| 77 | + After you verify your {+atlas-cli+} session, ``atlas setup`` |
| 78 | + creates an ``M0`` cluster. ``M0`` clusters have some operational |
| 79 | + :ref:`limitations <atlas-free-tier>`. |
| 80 | + |
| 81 | + If you log into an existing account and have existing |
| 82 | + organizations and projects, ``atlas setup`` prompts you to select |
| 83 | + a default organization and default project. Select a default |
| 84 | + organization and project and press |
| 85 | + :guilabel:`Enter`. |
| 86 | + |
| 87 | + When the {+atlas-cli+} prompts ``Do you want to set up`` |
| 88 | + ``your first free database in Atlas with default`` |
| 89 | + ``settings? It's free forever!``, enter :guilabel:`Y` to create your {+cluster+} with the default settings. |
| 90 | + |
| 91 | + The command creates a sample ``M0`` shared-tier cluster with the |
| 92 | + following default settings: |
| 93 | + |
| 94 | + - Cluster name: ``Cluster<number>`` |
| 95 | + - Cloud provider and region: ``AWS - US_EAST_1`` |
| 96 | + - Database Username: ``Cluster<number>`` |
| 97 | + - Database User Password: ``abcdef12345`` |
| 98 | + - Load Sample Data: ``Yes`` |
| 99 | + - Allow connection from IP: ``<YourIPAddress>`` |
| 100 | + |
| 101 | + .. io-code-block:: |
| 102 | + |
| 103 | + .. input:: |
| 104 | + :language: sh |
| 105 | + |
| 106 | + Do you want to set up your first free database in |
| 107 | + Atlas with default settings? It's free forever! Y |
| 108 | + |
| 109 | + .. output:: |
| 110 | + :language: sh |
| 111 | + |
| 112 | + We are deploying Cluster9876543... |
| 113 | + |
| 114 | + Please store your database authentication access details in a secure location. |
| 115 | + Database User Username: Cluster9876543 |
| 116 | + Database User Password: abcdef12345 |
| 117 | + |
| 118 | + Creating your cluster... [Its safe to 'Ctrl + C'] |
| 119 | + |
| 120 | + |
| 121 | +.. _atlas-cli-onboarding-summary: |
| 122 | + |
| 123 | +Take the Next Steps |
| 124 | +------------------- |
| 125 | + |
| 126 | +Congratulations! You have successfully set up your |service| account. |
| 127 | + |
| 128 | +Use the :manual:`connection string </reference/connection-string/#connection-string-options>` |
| 129 | +to connect to your cluster through {+mongosh+} or your application. |
| 130 | + |
| 131 | +To view the status of your cluster, run the :ref:`atlas-clusters` |
| 132 | +command. |
0 commit comments