---
title: "supabase-db-pull"
description: "Pulls schema changes from a remote database. A new migration file will be created under `supabase/migrations` directory."
type: skill
canonical_url: https://claudary.paisolsolutions.com/skills/pull
source: "Claudary"
difficulty: intermediate
author: "Claude Code Knowledge Pack"
date: 2026-07-10T11:37:15.787Z
license: CC-BY-4.0
attribution: "supabase-db-pull — Claudary (https://claudary.paisolsolutions.com/skills/pull)"
---

# supabase-db-pull
Pulls schema changes from a remote database. A new migration file will be created under `supabase/migrations` directory.

## Overview

# supabase-db-pull

Pulls schema changes from a remote database. A new migration file will be created under `supabase/migrations` directory.

Requires your local project to be linked to a remote database by running `supabase link`. For self-hosted databases, you can pass in the connection parameters using `--db-url` flag.

> Note this command requires Docker Desktop (or a running Docker daemon), as it starts a local Postgres container to diff your remote schema.

Optionally, a new row can be inserted into the migration history table to reflect the current state of the remote database.

If no entries exist in the migration history table, `pg_dump` will be used to capture all contents of the remote schemas you have created. Otherwise, this command will only diff schema changes against the remote database, similar to running `db diff --linked`.

---

Source: [Claudary](https://claudary.paisolsolutions.com/skills/pull) · https://claudary.paisolsolutions.com
