Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: unknown option '--config' #423

Closed
s97712 opened this issue May 21, 2024 · 5 comments
Closed

error: unknown option '--config' #423

s97712 opened this issue May 21, 2024 · 5 comments
Assignees
Milestone

Comments

@s97712
Copy link

s97712 commented May 21, 2024

When I run drizzle-kit --config schema/drizzle.config.ts "generate",I get the error error: unknown option '--config'
The config option can only be placed at the end.

I want to reuse the config option as shown in the example below.

// package.json
"scripts": {
    "db:kit": "drizzle-kit --config schema/drizzle.config.ts",
    "db:migrate": "pnpm db:kit migrate",
    "db:push": "pnpm db:kit push",
    "db:studio": "pnpm db:kit studio",
}

But it seems very difficult.

@serhii-kucherenko
Copy link

serhii-kucherenko commented May 22, 2024

try --config=schema/drizzle.config.ts

@AlexBlokh
Copy link
Contributor

@s97712 please let me know if that worked?

@s97712
Copy link
Author

s97712 commented May 30, 2024

@s97712 please let me know if that worked?

that not worked

@AlexBlokh AlexBlokh self-assigned this May 30, 2024
@AlexBlokh AlexBlokh added this to the v0.21.5 milestone May 30, 2024
@AlexBlokh
Copy link
Contributor

that's fixed, will be in next release

@AndriiSherman
Copy link
Member

fixed in [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants