status
List migrations and show which ones have been applied.
Usage
- npm
- pnpm
- Bun
- Yarn
npx durcno status [--config path/to/durcno.config.ts]
pnpm dlx durcno status [--config path/to/durcno.config.ts]
bun x durcno status [--config path/to/durcno.config.ts]
yarn dlx durcno status [--config path/to/durcno.config.ts]
What it shows
- A list of migrations found in your configured
outdirectory. - For each migration: the identifier (folder name), whether it has been applied, and typically a timestamp when it was applied.
When to use
- After generating or applying migrations to confirm the current state.
- Before rolling back to locate the migration identifier you want to target.
Example
- npm
- pnpm
- Bun
- Yarn
npx durcno status
pnpm dlx durcno status
bun x durcno status
yarn dlx durcno status
Troubleshooting
- If a migration appears applied but you don't find a corresponding record, verify your
durcno.config.tsdatabase settings and check for multiple environments or databases.
Next: apply or roll back migrations using npx durcno migrate or npx durcno down.