CLI
init, generate
init
npx @bettersync/cli initScaffolds sync into an existing project.
generate
# New database
npx @bettersync/cli generate --config lib/sync.ts
# Existing database
npx @bettersync/cli generate --config lib/sync.ts --alter --backfill
# Save to file
npx @bettersync/cli generate --output migrations/sync.sql