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:
dtl command from anywhereCommands
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.
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.
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.
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.