Docs Menu
Docs Home
/ /

Connect from the Atlas CLI

When you connect to an existing Atlas account from the Atlas CLI, you can authenticate with one of the following options for the atlas auth login command:

Option
Authentication Method
Use Case

UserAccount

Atlas login credentials and an authentication token

Best for non-programmatic use

ServiceAccount

Service Account

Best for programmatic use with a Service Account

APIKeys

API keys

Best for programmatic use with an API Key

Important

For Atlas CLI versions before 1.47, 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. Atlas CLI 1.47+ attempts to store credentials securely.

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.

Back

Verify Packages

On this page