Perfect Your CI/CD Pipelines with MongoDB's New GitHub Action and Docker Image for the Atlas CLI
Do you use GitHub Actions for your CI/CD workflows? Or build using Docker containers? If so, you’ll probably be excited to hear that MongoDB has released: 1. An official GitHub Action and 2. A dedicated Docker image for the Atlas CLI. Together, these two releases make it easier than ever to develop applications with MongoDB Atlas. Since MongoDB announced the Atlas CLI at MongoDB World in 2022, it has become one of our most popular tools for building with the Atlas developer data platform. One of the great things about the Atlas CLI is that it not only caters to the individual developer wanting a mouseless terminal experience—it also makes it easy to programmatically manage Atlas resources throughout the entire development lifecycle. With the new releases for the Atlas CLI with GitHub Actions and Docker, you can easily use the Atlas CLI to build with Atlas while still working natively within your preferred CI/CD platforms. Within GitHub Actions, you now have access to a dedicated Action that allows you to seamlessly manage Atlas resources using your favorite Atlas CLI commands. You can use the predefined workflows available or create custom workflows leveraging native Atlas CLI commands. For example, with one of the predefined workflows you can: create a project, set up the Atlas CLI with an Atlas deployment, retrieve your connection string, and tear down your project and deployment. If you use a platform other than GitHub Actions to manage your CI/CD pipelines, or simply use Docker in your toolchain, you can now also use the Atlas CLI by pulling the Docker image with just one command: docker pull mongodb/atlas From there, you can enter an interactive shell to run Atlas CLI commands as you normally would: docker run --rm -it mongodb/atlas bash atlas --help You can also find detailed information in the MongoDB Documentation on how to run Docker in interactive mode or as a daemon (detached mode) for working with the Atlas CLI. Ready to get started? You can find the Atlas CLI GitHub Action in the GitHub Marketplace and the Atlas CLI Docker image on Docker Hub . If you have any feedback on either experience, share your thoughts with us in the Atlas CLI section of the MongoDB Feedback Engine .
Introducing: MongoDB CLI Atlas Quick Start
Expedite your intro to Atlas with MongoDB CLI quick start Atlas is built by developers for developers, and where do developers work? In the terminal. But the terminal can feel like a bit of black box (no pun intended) because there’s often little to no guidance when getting started. Developers are often left jumping in and out of the terminal to visit documentation for next steps and critical commands creating a flawed workflow that’s draining on productivity. But not anymore — The MongoDB CLI Atlas quick start provides a guided, interactive workflow that lets developers work from where they both need and want. The MongoDB CLI Atlas quick start allows you to spin up a fully functional, new cluster on Atlas in minutes without ever leaving your terminal. This guided experience streamlines the set up process in the CLI so you can begin working within Atlas, faster. For more information, check out our MongoDB CLI page and documentation . Demo Watch this short demo from our most recent MongoDB .live event to help you get started. Stay tuned We look forward to sharing more updates with you in the near future! We encourage you to share your suggestions and feedback with us in our CLI feedback engine so we can prioritize working on what helps you work best. Get started with MongoDB Atlas today!