Docs Menu

Docs HomeAtlas Command Line Interface

Connect from the Atlas CLI

On this page

  • Select a Connection Method
  • Connect With Minimum Required Settings
  • Complete the Prerequisites
  • Follow These Steps
  • Take the Next Steps

When you connect to an existing Atlas account from the Atlas CLI, you can authenticate with one of the following commands:

Command
Authentication Method
Use Case
atlas auth login
Atlas login credentials and an authentication token
Best for non-programmatic use
atlas config init
API keys
Best for programmatic use

Important

API keys are stored in plaintext in the Atlas CLI configuration file. Your API keys are like passwords. Ensure that you secure the configuration file appropriately.

To create a new Atlas account or onboard an existing account that doesn't have any clusters, see Get Started with Atlas.

Select a use case below to learn more about the available connection options:

Select a use case and follow the steps to connect from the Atlas CLI with minimum required settings.

Select a use case and follow the procedure to quickly connect from the Atlas CLI.

Start using the Atlas CLI commands.

To save connection settings by modifying the default profile or create a different profile, see Save Connection Settings.

←  Check CompatibilitySave Connection Settings →
Give Feedback
© 2022 MongoDB, Inc.

About

  • Careers
  • Investor Relations
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2022 MongoDB, Inc.