Check which migrations are still pending

d1 & hyperdrive

// what it does

Lists the migration files not yet applied to the target database — a quick pre-flight before apply so you know exactly what's about to run against production. Swap --remote for --local to inspect your dev DB.

// shell

$ wrangler d1 migrations list <database> --remote

// gotcha

An empty list means the remote is already up to date, not that your migrations folder is empty. Defaults to --local if you omit the flag.