envs

Turso — edge SQLite

turso/database · version 1

envs add turso/database

This declares the keys below in your catalog and sets none of them. A template is a schema for keys; it never carries a value.

Key Needed Kind Notes
TURSO_DATABASE_URL required secret Turso databases answer on turso, libSQL ones on libsql, and the HTTP API on https. Turso states no sensitivity for anything here, so all four are secret.. Shape ^(turso|libsql|https)://.+$. where to get it
TURSO_AUTH_TOKEN required secret A JWT, minted per database. Turso says only to store these as environment variables, which is advice about placement rather than a statement about secrecy.. where to get it
TURSO_ORG optional config Which organisation the Platform API acts in. A slug.. where to get it
TURSO_PLATFORM_TOKEN optional secret For the Platform API, which creates and destroys databases rather than querying one. Wider reach than the token above.. where to get it

The JSON the CLI reads