Skip to main content

Welcome to the Atlas Documentation

Atlas is a language-independent tool for managing and migrating database schemas using modern DevOps principles. It offers two workflows:

  • Declarative: Similar to Terraform, Atlas compares the current state of the database to the desired state, as defined in an HCL, SQL, or ORM schema. Based on this comparison, it generates and executes a migration plan to transition the database to its desired state.

  • Versioned: Unlike other tools, Atlas automatically plans schema migrations for you. Users can describe their desired database schema in HCL, SQL, or their chosen ORM, and by utilizing Atlas, they can plan, lint, and apply the necessary migrations to the database.

Quick Start

Get started with Atlas in under 5 minutes.

Installation​

To download and install the latest release of the Atlas CLI, simply run the following in your terminal:

curl -sSf https://atlasgo.sh | sh

The default binaries distributed in official releases are released under the Atlas MSA. If you would like obtain a copy of Atlas Community Edition (under an Apache 2 license) follow the instructions here.

For users who want to use specific drivers such as Oracle, Snowflake, or Google Spanner that are not included in the standard Atlas CLI release, follow the instructions here.

Set Up With Your Coding Agent​

Atlas ships agent skills for Claude Code, Codex, Cursor, and GitHub Copilot. Install them, then start the onboarding skill from your repository. It takes the project from a first scan to production, one stage at a time, with a check at the end of each stage. When the project uses PostgreSQL, MySQL, MariaDB, SQL Server, ClickHouse, Snowflake, Databricks, Redshift, Oracle, or Spanner, the agent also loads the matching database skill.

Install the skills from a terminal. It installs the Atlas plugin, with all its skills, for every project on this machine.

claude plugin marketplace add ariga/atlas
claude plugin install atlas@ariga

Then start the onboarding skill in Claude Code. See Claude Code with Atlas for the other ways to use the skills.

/atlas:atlas-onboard

Schema-as-Code​

Choose your preferred way to represent the desired state of your database.

Generating Migrations​

Atlas offers two workflows to generate and plan migration changes. In both workflows, Atlas automatically plans schema migrations based on your desired schema. Choose which one works best for you.

Verifying Migration Safety​

Atlas verifies your migrations by running them against various checks to ensure their safety and validity. Verify these changes locally or as part of your CI process.

Deploying Migrations​

Deploy migrations to target databases in production by integrating natively with the rest of your infrastructure management.

Declarative Security & Data Management​

Manage database security objects and seed data as code alongside your schema.

Atlas Cloud​

Gain full visibility into the databases in your development and production environments with visualizations, detailed logs, and troubleshooting capabilities.

Testing Framework​

Atlas provides a database testing framework that allows you to test database schemas and migrations much like you would test your own code.

Supported Databases​

All Databases

Latest Guides​

View all guides