drizzle-team / drizzle-team/drizzle-orm

[BUG]: CLI options --dialect and --url not working for drizzle-kit migrate

Open
#3,669 8 comments 7 reactions 0 assignees View on GitHub
bug drizzle/kit priority
Dominant language
TypeScript
Stars
35.8k
Forks
1.6k
Avg merge
2d 7h
Merged PRs (30d)
4

Description

### Report hasn't been filed before.

- [X] I have verified that the bug I'm about to report hasn't been filed before.

### What version of `drizzle-orm` are you using?

---

### What version of `drizzle-kit` are you using?

0.28.1

### Other packages

_No response_

### Describe the Bug

Following the [docs](https://orm.drizzle.team/docs/drizzle-kit-migrate), there are cli options for `drizzle-kit migrate` and the example shows the followings:

`--dialect`
`--url`
`--config`

I tested `--config` and it works.

But `--dialect` and `--url` aren't recognized:

![image](https://github.com/user-attachments/assets/eb1dfbb5-1cf8-4c5e-a6f4-f563f6eb5d86)

Currently i'm working around creating a config file and and then deleting after running `drizzle-kit migrate --config=file` for my e2e tests implementation.

Using the options `--dialect` and `--url` would make it much more easier.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.