For developers/CLI & tooling

One CLI for
the whole lifecycle.

Scaffold a project, introspect a database you already have, move the schema, regenerate the types, run both halves in dev, and install the skills your coding agent needs.

Command Reference

Every command you need, from scaffolding to production migration.

Schema Generate

schema
$ rebase schema generate

Read your TypeScript collection definitions and generate a Drizzle ORM schema file. Run this after adding or modifying collections.

DB Push

db
$ rebase db push

Apply the current Drizzle schema directly to your database. A development shortcut that skips migration files.

Schema Introspect

schema
$ rebase schema introspect

Introspect your live PostgreSQL database and generate Rebase collection definitions from existing tables, columns, and relations.

DB Generate

db
$ rebase db generate

Compare your current Drizzle schema against the last entity and generate SQL migration files for the differences.

DB Migrate

db
$ rebase db migrate

Run all pending SQL migrations against your database. Safe for production deployments.

Generate SDK

sdk
$ rebase generate-sdk

Generate a fully-typed database.types.ts file from your collection definitions. Use with createRebaseClient<Database>() for end-to-end type safety.

Dev Server

dev
$ rebase dev

Start the frontend and backend concurrently in development mode with hot reload.

Reset Password

auth
$ rebase auth reset-password

Set a user's password from the terminal, by email — for when nobody can get back into the admin panel.

The Rebase Workflow

Collections are the source of truth. Everything flows from them.

Define Collections

TypeScript

Generate Schema

rebase schema generate

Push & Deploy

rebase db push

Generates → REST API

Generates → Admin UI

Generates → Typed Client SDK

Get started with your project

The whole lifecycle, one terminal.

Scaffold a project, push a schema, run it, back it up — every step is a command you can put in CI.

~pnpm dlx @rebasepro/cli init