Quickstart


IMPORTANT: If you're using an agentic coding solution, you can provide gluelang.dev/llms.txt as a reference, which contains all of these docs in Markdown format.
It will be able to figure out how to bootstrap Glue in your project.

#1. Install Glue

shell

#2. Create a Glue file

Start by creating a Glue file that defines your data models and intefaces using the Glue IDL.
You can also generate code from a URL or from standard input (stdin).

Example:

glue

Glue also support imports, so you can split your models into multiple files and import them:

glue

#3. Generate code

Pick a target (e.g., typescript, python, rust, go, openapi, jsonschema, protobuf) and generate code:

shell

#4. Configure code generation (optional)

To support different use-cases, you can configure code generation with a .gluerc file. For example:

yaml

#5. Install VS Code extension (optional)

For a better development experience, install the Glue VS Code extension for syntax highlighting, error diagnostics, hover definitions, go-to definitions and more for Glue files (by default, those ending with .glue).