Type generation

Generate typed definitions and a typed SDK from your tenant's schema with revenexx types and revenexx generate, so your editor and compiler catch mistakes before you ship.

The CLI can turn your tenant's schema into typed code. Use it so your editor autocompletes fields and your compiler catches a renamed or mistyped attribute before it reaches production.

There are two commands. types emits type definitions for the language you're working in. generate emits a full typed SDK tailored to your tenant.

Generate type definitions

types writes type definitions to an output directory. It detects your language from the project by default; pass --language to set it explicitly.

Shell
revenexx types ./generated

Supported languages: ts, js, php, kotlin, swift, java, dart, cs. With --language auto (the default) the CLI infers it from your project.

Shell
revenexx types ./generated --language ts

Pass --strict to convert field names to the target language's naming conventions.

Generate a typed SDK

generate produces a typed SDK from your project configuration — typed helpers built from your tenant's schema, ready to import into your app.

Shell
revenexx generate --output generated --language typescript
  • --output sets the destination directory (defaults to generated).
  • --language sets the target; omit it to auto-detect from your project.

Sign in and select a tenant first so the CLI has your tenant context. See Configuration.

What's next

Was this page helpful?