Authentication
Manage API keys and profiles for the Atlas CLI
Getting an API Key
- Log in to the Atlas Portal
- Navigate to Settings > API Keys
- Click Create New Key
- Copy the key — it will only be shown once
Login
The CLI validates your key by calling the Atlas API. On success, credentials are saved to ~/.atlas/config.
Verify Login
Output:
Multi-Profile Support
Manage multiple accounts or environments with named profiles:
List Profiles
Output:
Switch Profile
Logout
Config File
Credentials are stored in ~/.atlas/config with restricted file permissions (0600):
Never share your API key or commit the config file to version control.
