Skip to content

Introducing Type generation: Automate your type definitions with Appwrite_

Automatically generate types from your tables with support for multiple languages.

4 min readUpdated Jun 29, 2026

We're excited to announce Appwrite’s newest CLI feature, Type generation. Designed specifically to enhance your developer experience. Type generation automates the creation of type definitions directly from your database tables, seamlessly integrating with your preferred programming language.

Say goodbye to manual mapping

Manually creating and maintaining complex type definitions can be tedious, error-prone, and time-consuming. With Type generation, Appwrite does the heavy lifting for you. Automatically generate accurate and up-to-date type definitions, ensuring your code always syncs with your database schema.

Effortless multi-language support

Whether you work with PHP, Swift, Dart, TypeScript, JavaScript, Java, or Kotlin, Type generation has you covered. The Appwrite CLI automatically detects your project's language and generates the appropriate type definitions, handling complex scenarios including Enums, class relationships, and language-specific semantics. We will continue to add support for more languages over time.

Simplified workflow, immediate benefits

Using Type generation is straightforward.

First, ensure you have the Appwrite CLI installed and your project is initialised. Then, run the following command in your terminal to pull tables from your Appwrite project:

Bash
appwrite pull tables

To generate types, you can use the Appwrite CLI command:

Bash
appwrite types [options] <output-directory>

To automatically detect the language used in your project, you can skip the [options] parameter.

Bash
appwrite types <output-directory>

Workflow
Workflow

Better experience

  • Time savings: Eliminate hours of manual work and dedicate your time to building impactful features.
  • Reduced errors: Keep your types consistently aligned with your database schema, drastically reducing outdated and mismatched types.
  • Faster iterations: Automatically propagate schema changes, allowing for rapid development and seamless collaboration.

Built with you in mind

Type generation was built explicitly for developers, addressing key pain points and enhancing your productivity. Whether using Appwrite in a cloud environment or self-hosted, Type generation fits seamlessly into your workflow.

Many other solutions offer type generation limited to TypeScript, Appwrite expands your capabilities with robust multi-language support, ensuring you have flexibility and comprehensive integration, regardless of your preferred technology stack.

By simplifying integration and reducing friction, type generation helps accelerate onboarding and ensures long-term satisfaction, significantly benefiting developer teams and their organizations.

More resources

Read next

Introducing Appwrite Explorer

Eldad Fux

Appwrite Explorer brings the Appwrite REST API into the Console. Browse every endpoint, build requests with guided forms, send live calls against your project, and inspect responses without leaving the browser.

8 min read

Introducing Appwrite Terminal

Eldad Fux

Appwrite Terminal runs the Appwrite CLI directly inside the Console. Your session and project context are preconfigured, with keyboard-first controls and multi-tab workflows, so you can inspect resources without leaving the project.

7 min read

Ready to build?_