Getting credentials
Contact your Atlas account team to receive access. You’ll need your account credentials to log in.Installing the CLI
Run the install script:CLI authentication
Configure the CLI with the Atlas server URL:~/.atlas/token and the server URL to ~/.atlas/url.
Export the token as an environment variable for use in API requests:
atlas login again when yours expires.
Environment variable overrides
You can override stored credentials with environment variables. These take precedence over values saved to~/.atlas/:
| Variable | Description |
|---|---|
ATLAS_URL | Atlas server URL |
ATLAS_TOKEN | Authentication token |
API authentication
All API requests require a Bearer token in theAuthorization header:
atlas login. You can retrieve it from ~/.atlas/token or set it via the ATLAS_TOKEN environment variable.
All API requests must be made over HTTPS. Requests without a valid Bearer token return
401 Unauthorized.
