Quick Start
Prerequisites
Section titled “Prerequisites”- Terminal — Draft is distributed as a single binary
- curl or equivalent — for the install script
Install
Section titled “Install”macOS / Linux
Section titled “macOS / Linux”curl --proto '=https' --tlsv1.2 -sSf https://draft-lang.dev/install | shWindows (PowerShell)
Section titled “Windows (PowerShell)”irm https://draft-lang.dev/install.ps1 | iexVerify
Section titled “Verify”draft --versionYou should see the Draft compiler version printed.
Hello World
Section titled “Hello World”Create a file named main.draft:
action main() write("Hello, world!")fin action.Run it:
draft run main.draftNext Steps
Section titled “Next Steps”- Read the Language Reference
- Explore the Standard Library
- Try the Playground
