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 an agent skill for Claude Code, Codex, Cursor, and GitHub Copilot. Paste the prompt for your agent and it installs the skill, then sets up schema management in your project.

Paste into Claude Code. Installs for every project on this machine. Use .claude/skills/atlas at the repository root to commit the skill with one repository. See Claude Code with Atlas for the instructions-file alternative.

Install the Atlas skill: download https://atlasgo.io/skills/atlas/SKILL.md to ~/.claude/skills/atlas/SKILL.md and
each reference file listed in its Files section to ~/.claude/skills/atlas/references/<name>.
Overwrite existing files without editing them. Then install the Atlas CLI if it is missing (curl -sSf https://atlasgo.sh | sh) and set up Atlas
for database schema management in this project.

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