Language PreviewDTL is currently in alpha. Explore the language, try the playground, and learn how to use it.Alpha release coming soon.
Command Line Tool

DTL CLI

Compile, validate, and work with DTL files directly from your terminal. Perfect for build pipelines and automation.

Alpha Release Coming Soon

The DTL CLI is currently in development and will be available for installation in the alpha release. In the meantime, you can explore DTL syntax and features in the playground.

Installation (Coming Soon)

Install globally using npm or pnpm:

After installation, use dtl command from anywhere

Commands

Compile

Compile DTL files to CSS or JSON format. The output format is automatically detected based on the file extension, or you can specify it explicitly.

Compile Commands

Tip: Use --output to specify a custom output path, or omit it to output to stdout.

Watch Mode

Automatically recompile files when they change. Perfect for development workflows.

Watch Commands

Note: Watch mode will continue running until you stop it with Ctrl+C.

Validate

Check DTL files for syntax errors and type mismatches without generating output. Useful for CI/CD pipelines.

Validate Commands

Exit codes: Returns 0 on success,1 on validation errors.

Common Use Cases

Build Pipelines

Integrate DTL compilation into your build process. Compile tokens as part of your CI/CD workflow.

Development

Use watch mode during development to automatically rebuild when token files change.