Skip to content

supabase-tools ​

GitHub stars

Portable toolkit for local Supabase development without the Supabase CLI.

Quick Start ​

bash
# Install core CLI
npm install @sbtools/core

# Install a plugin (example: ERD generation)
npm install @sbtools/plugin-erd

# Add to supabase-tools.config.json
# Run commands
npx sbt help

Packages: @sbtools/core · All packages on npm

What's Included ​

  • Docker services — Start/stop Supabase stack locally
  • Migrations — Apply SQL from supabase/migrations/
  • Snapshot — Export DB schema to filesystem
  • Dashboard — React SPA with ERD, depgraph, logs, migrations, and a Commands runner (sbt dashboard, port 3400)
  • ERD — Mermaid diagram generation per table (via plugin-erd)
  • Tests — pgTAP + PGlite in-memory runner (via plugin-db-test)
  • Docs — Swagger UI, ReDoc, SchemaSpy (via built-in docs command)

Core Commands ​

CommandDescription
startStart Supabase stack (DB, API, etc.)
stopStop Supabase stack
restartRestart Supabase stack
statusShow service URLs and connection info
migrateApply SQL migrations
snapshotExport DB objects to filesystem
generate-atlasGenerate Backend Atlas data (JSON)
dashboardStart React dashboard UI (port 3400)
docsStart Swagger UI / ReDoc / SchemaSpy
initGenerate config file

Plugin commands (generate-erd, test, etc.) — Plugins.

All commands: npx sbt <command>

Next Steps ​