Turso drizzle-kit CLI: Passing dbCredentials via CLI options

Hi, I'm building a multi-tenant database and trying to configure drizzle-kit using CLI options. However, I’m unsure whether it's possible to pass the dbCredentials part of the config via CLI, and if so, how to do it.
dbCredentials: {
url: process.env.TURSO_DATABASE_URL,
authToken: process.env.TURSO_AUTH_TOKEN,
},
dbCredentials: {
url: process.env.TURSO_DATABASE_URL,
authToken: process.env.TURSO_AUTH_TOKEN,
},
I couldn’t find any documentation covering this configuration for CLI usage. Could anyone clarify if it's supported and how to do it?
1 Reply
oke
oke3d ago
If it's an environment variable, maybe you can just pass in directly into the command ?
TURSO_DATABASE_URL=abc... npm run dev
TURSO_DATABASE_URL=abc... npm run dev
Or create a .env file and use source to source the envs

Did you find this page helpful?