Draton Quickstart
This quickstart assumes you installed a prebuilt Early Tooling Preview release.
The release installers update PATH automatically when practical. Open a new shell after installation if drat is not visible immediately.
1. Verify the CLI
drat --version
2. Run the bundled hello-world file
drat run examples/hello.dt
Expected output:
hello, draton!
3. Use the bundled sample project
cd examples/early-preview/hello-app
4. Check formatting
drat fmt --check src
5. Run the linter
drat lint src
6. Inspect tasks
drat task
7. Build via the task runner
drat task build
Run the built program:
Linux / macOS:
./build/hello-preview
Windows PowerShell:
.\build\hello-preview
8. Build and run the sample project directly
Still inside examples/early-preview/hello-app:
drat build
drat run
9. Build directly with drat
From the repository root or extracted archive root:
drat build examples/hello.dt -o hello-tooling
Then run the output:
Linux / macOS:
./hello-tooling
Windows:
.\hello-tooling
10. Start the language server
drat lsp
Your editor should launch that command as a stdio language server.
Need full install details?
See: