Litestone guide / Reference
CLI
litestone <command> reads litestone.config.js and the schema beside it. Every command and flag is in the CLI doc; this is the list of what exists.
bunx litestone migrate dev add-notes # create the migration from the schema diff, then apply it
bunx litestone explain # look a word up, no schema needed
What else it can do
initscaffolds a project, anddoctorchecks setup and database healthmigrate create,dry-run,dev,apply,status,verify,check,lock,baselineandacceptare the migration verbsdb pushapplies the schema with no file written, for prototypingstudioopens the browser UI, andrepla console at a chosen user or leveltypeswrites the.d.ts, andjsonschemathe JSON Schema documentexplainlooks up a word, andcatalogandspecwrite the generated reference pagesadvisereads the schema for what is legal and wrong, or legal and missingvalidatelists the stored rows the schema would now refuseaccesswrites or diffs the permission surface, andreleasegrades a change for deployddlwrites the DDL snapshot, andmutatereports what the checks miss when the schema is mutatedimportreads a Prisma, Rails, SQL or Frappe schema, andintrospectreads a live SQLite fileseedandseed runrun seeders, andexporttakes a graded bulk extractedge ejectpromotes an edge field to a model, andmirror exitwrites each mirror out as what it derivedbackup,rsync,replicateandrestorecopy and recover databases, andoptimizemerges FTS5 segmentsrekeyandkey-checkrotate and inspect encryption keystransformruns the anonymize and shard pipelinetenantlists, creates, inspects, deletes and migrates tenantsassistantbuilds a chat-model schema assistant to paste- Global flags are
--config,--schema,--db,--migrations,--env-file,--no-env,--debugand--version
In depth: CLI § Every command, § Migration commands, § Development commands, § Global flags