TypebaseTypebase
CLI

typebase-io-cli codegen

Regenerate type definitions for your project.

Last updated on

Regenerate the type definitions in _generated/.

npx typebase-io-cli codegen

Only run this after you:

  • Add, remove, or rename a file inside actions/
  • Add or remove auth.ts
  • Add or remove db/schema.ts or db/relations.ts

You do not need to run it when editing the contents of existing files. This command updates:

  • _generated/server.ts: the router type and action builder
  • _generated/db.d.ts: the database types