Documentation Index Fetch the complete documentation index at: https://docs.turso.tech/llms.txt
Use this file to discover all available pages before exploring further.
Create tokens for a single database or all databases in a group using the CLI:
# Token for a single database
turso db tokens create < database-nam e >
# Token for all databases in a group
turso group tokens create < group-nam e >
You can control token scope, permissions, and expiration:
Flag Description -r, --read-onlyCreate a read-only token (queries only, no writes) -p, --permissionsSet fine-grained permissions per table and action -e, --expirationSet token expiration (never, 7d, 30d, etc.)
Read-only token
Token with 7-day expiration
Fine-grained permissions
Combined scoping
turso db tokens create mydb --read-only
You can also create tokens using the Platform API .
Invalidating Tokens
You can invalidate all existing tokens for a database or group, which rotates the signing keys:
# Invalidate all tokens for a database
turso db tokens invalidate < database-nam e >
# Invalidate all tokens for a group (and all its databases)
turso group tokens invalidate < group-nam e >