How to run migration script?

I am looking into this doc (https://orm.drizzle.team/kit-docs/overview#running-migrations) regarding running migrations and you provide a script that we can call. My question is how can we call this script outside our app. Maybe through the bash/terminal?
Drizzle Kit - DrizzleORM
Drizzle ORM | %s
3 Replies
Angelelz
Angelelz12mo ago
node my-migration-script.js
? tsx my-migration-script.ts Whatever you'd like to use to run your script. Even bun
nelsonprsousa
nelsonprsousa12mo ago
yeah... such a n00b guy.. sorry I came from C#, all new here 😅 Thanks, working like a charm 🙏
McLean 25
McLean 2512mo ago
This can be really annoying with ESM modules though. Really which there was a CLI command to run them
Want results from more Discord servers?
Add your server