Database migration and seed management tool for libSQL, SQLite, and Turso databases. Current stable version is 1.3.5 with regular updates. Provides a CLI for creating, running, and reverting migrations with lifecycle hooks, configurable migration and seed directories, and multiple environment support (development, production). Differentiates from other SQLite migration tools by being purpose-built for libSQL (the open-source fork of SQLite used by Turso) and supporting remote database connections with authentication tokens.
npm install libsql-migrateNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Global install, init project, create a migration, and apply it to a local SQLite database.
Use export default { ... } instead of module.exports = { ... }Ensure your migration files have export async function up(client) { ... } and export async function down(client) { ... }Update Node.js to version 18.4.0 or later.
Add authToken: 'your-token' to the connection object in the production environment.
Add 'type': 'module' to your package.json or use .mjs extension for the config file, and ensure Node >=18.4.0
Run: npm install @libsql/client
Use: npx libsql-migrate <command>
No dependency data recorded yet.