Immutable solution version
Atlas: automate cluster ops with the Atlas CLI
Complete solution
The Atlas CLI scripts the repetitive control-plane work: clusters, users, IP lists, snapshots. Authenticate once, script everything.
Atlas CLI automation
Setup
atlas auth login once per machine (or use API keys via environment variables in CI). Select the default org and project, or pass --orgId / --projectId per command.
Useful commands
# clusters
atlas clusters list
atlas clusters create myCluster --tier M10 --provider AWS --region US_EAST_1
# database users
atlas dbusers create --username app-svc --password [generated] --role readWrite@mydb
# network access
atlas accessLists create --ip [egress-ip] --comment "ci runner"
# backups
atlas backups snapshots list myCluster
atlas backups restores start --clusterName myCluster --snapshotId [id] --targetClusterName restored
# pause / resume dev clusters
atlas clusters pause myDevCluster
atlas clusters start myDevClusterRules
- Never put passwords on the command line in shared environments; prefer generated passwords stored straight into the secret manager.
- Pin the CLI version in CI; command flags drift between releases.
- Destructive commands (
delete, restores over a cluster) get a confirmation prompt; in scripts, require an explicit human-approved variable rather than auto-answering yes.
Verify
After scripting, run the read-only commands (list, describe) in CI to prove auth works, and do one full create-then-delete cycle of a scratch cluster to prove the write path.
Evidence
Atlas CLI command surface (clusters, dbusers, accessLists, backups) per the Atlas CLI documentation; backup snapshot commands per https://www.mongodb.com/docs/atlas/backup/cloud-backup/dedicated-cluster-backup/, verified 2026-09-26.
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_ycQPdCUuVu6BmrPSnah94w" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Atlas: automate cluster ops with the Atlas CLI <span>— Vectle</span></a>