Atlas - Manage Your Database Schema as Code

Atlas is a language-agnostic 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.
Supported Databases
PostgreSQL ·
MySQL ·
MariaDB ·
SQL Server ·
SQLite ·
ClickHouse ·
Redshift ·
Oracle ·
Snowflake ·
CockroachDB ·
TiDB ·
Databricks ·
Spanner ·
Aurora DSQL ·
Azure Fabric
Installation
macOS + Linux:
curl -sSf https://atlasgo.sh | sh
Homebrew:
brew install ariga/tap/atlas
Docker:
docker pull arigaio/atlas
NPM:
npx @ariga/atlas
See installation docs for all platforms.
Install the skills
Claude Code:
claude plugin marketplace add ariga/atlas
claude plugin install atlas@ariga
Codex, Cursor, or GitHub Copilot, from the root of your repository:
npx skills add ariga/atlas -a codex -y # or: -a cursor, -a github-copilot
[!NOTE]
The Atlas website has the most up-to-date version
of these skills: they are maintained there and copied to skills/ from time to time.
Key Features
- Declarative schema migrations: The
atlas schema command offers various options for inspecting, diffing, comparing, planning and applying migrations using standard Terraform-like workflows.
- Versioned migrations: The
atlas migrate command provides a state-of-the-art experience for planning, linting, and applying migrations.
- Schema as Code: Define your desired database schema using [SQL], [HCL], or your chosen [ORM]. Atlas supports 16 ORM loaders across 6 languages.
- Security-as-Code: Manage roles, permissions, and row-level security policies as version-controlled code.
- Data management: Manage seed and lookup data declaratively alongside your schema.
- Cloud-native CI/CD: Kubernetes operator, Terraform provider, GitHub Actions, GitLab CI, ArgoCD, and more.
- Testing framework: Unit test schema logic (functions, views, triggers, procedures) and migration behavior.
- 50+ safety analyzers: Database-aware migration linting that detects destructive changes, data-dependent modifications, table locks, backward-incompatible changes, and more.
- Multi-tenancy: Built-in support for multi-tenant database migrations.