@tenantscale/cli
v0.1.2
Published
Scaffold multi-tenant SaaS projects with TenantScale
Readme
@tenantscale/cli
Scaffold multi-tenant SaaS projects with TenantScale. Generate tenant-scoped middleware, migrations, and configuration for your framework of choice.
Install
npm install -g @tenantscale/cli
# or
pnpm add -g @tenantscale/cliUsage
# Add TenantScale to an existing project
tenantscale init
# Generate migration artifacts
tenantscale migrate
# Show help
tenantscale --helptenantscale init
Interactive setup wizard that:
- Detects your framework (Express, Hono, Next.js)
- Installs the correct adapter package
- Generates tenant-scoped middleware
- Creates database migration files
tenantscale init --framework hono
tenantscale init --framework express --table organizationstenantscale migrate
Generate migration SQL and middleware for existing projects:
tenantscale migrateFeatures
- 🔍 Auto-detects Express, Hono, and Next.js
- 🎯 Generates framework-specific middleware
- 🗄️ Creates Supabase migration files
- 🔧 Non-interactive mode for CI/dev containers
