# ariga/atlas

Declarative schema migrations with schema-as-code workflows

Repository: https://github.com/ariga/atlas
Canonical: https://ross.abutalabs.com/products/ariga-atlas
Homepage: https://atlasgo.io
Language: Go
License: Apache-2.0
License Family: permissive
Last push: 2026-08-02T09:01:02+00:00

## Health v2 (maintenance only)
Score: 92/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 95, release rhythm 84, longevity 100
- inputs: {"age_days": 1951, "days_push": 31, "days_rel": 31, "gap_med": 42, "n_releases_24m": 16}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 8685, forks 373 (observed 2026-08-28T04:10:24.225545+00:00)

## What it is
Atlas is a language-agnostic CLI tool for managing and migrating database schemas as code, supporting declarative (Terraform-like) and versioned migration workflows. It supports many databases (PostgreSQL, MySQL, SQLite, SQL Server, ClickHouse, and more) and integrates with ORMs, CI/CD systems, Kubernetes, and Terraform.

## Use cases
- generate sql migrations from schema changes
- apply database schema migrations in ci/cd
- manage database schema as code like terraform
- lint and review migration files before applying
- detect schema drift between environments
- run database migrations on kubernetes with gitops
- migrate postgres schema from orm models
- manage migrations for multiple databases in one tool

## When to choose
- you want automated migration planning instead of hand-writing ALTER statements
- you need schema-as-code workflows with review, linting, and CI/CD integration
- you manage schemas across many database engines and want one tool
- you want GitOps or Terraform-based database schema management

## When to avoid
- you only need a tiny embedded migration runner inside a single-language app
- your database engine is not among the supported ones
- you prefer hand-written, fully manual SQL migration files without tooling

## Facets
- artifact type: cli-tool
- maturity: stable
- function: database, infrastructure-as-code, ci-cd, deployment, developer-tools
- domain: databases, developer-tools, infrastructure-as-code
- platform: windows, cli, cross-platform
- tags: schema-migrations, schema-as-code, database-migrations, terraform-like, orm-integration, gitops, drift-detection, devops, automation, linux, macos, docker, kubernetes

## Member repositories
- ariga/atlas (main) score 92

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:24.225545+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:25:35.358008+00:00, confidence not recorded.
  - readme: https://github.com/ariga/atlas (fetched 2026-08-28T04:10:24.225545+00:00, sha 419b87f80609)
  - homepage: https://atlasgo.io (fetched 2026-08-29T08:26:04.593693+00:00, sha e844b8891256)
  - site_page: https://atlasgo.io/docs (fetched 2026-08-29T08:26:04.603479+00:00, sha 65ebf6556da8)
  - site_page: https://atlasgo.io/getting-started (fetched 2026-08-29T08:26:04.645896+00:00, sha f0056acce961)
  - site_page: https://atlasgo.io/pricing (fetched 2026-08-29T08:26:04.605935+00:00, sha ba24ccca7ffa)
  - site_page: https://atlasgo.io/integrations/kubernetes (fetched 2026-08-29T08:26:04.610459+00:00, sha 7c6373594bb2)
  - site_page: https://atlasgo.io/integrations/terraform-provider (fetched 2026-08-29T08:26:04.613115+00:00, sha e4c91a4f7d64)
  - site_page: https://atlasgo.io/integrations/github-actions (fetched 2026-08-29T08:26:04.655154+00:00, sha f0be6ce2d270)
  - site_page: https://atlasgo.io/integrations/gitlab-ci-components (fetched 2026-08-29T08:26:04.658093+00:00, sha ecd471393456)
  - site_page: https://atlasgo.io/integrations/circleci-orbs (fetched 2026-08-29T08:26:04.660823+00:00, sha a6eb7f6e7f31)
- Data as of 2026-08-30T08:39:29.467469+00:00.
