CLI
typebase-io-cli codegen
Regenerate type definitions for your project.
Last updated on
Regenerate the type definitions in _generated/.
npx typebase-io-cli codegenOnly run this after you:
- Add, remove, or rename a file inside
actions/ - Add or remove
auth.ts - Add or remove
db/schema.tsordb/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
npx typebase-io-cli deploy runs the same logic as part of every deploy, so you only need this command when you're iterating
without redeploying (for example, while running the server locally).