Installation
Prerequisites
Section titled “Prerequisites”Draft is distributed as a single binary with no external dependencies. All you need is a terminal and an internet connection.
Install Methods
Section titled “Install Methods”macOS / Linux (Recommended)
Section titled “macOS / Linux (Recommended)”Using the official installer script:
curl --proto '=https' --tlsv1.2 -sSf https://draft-lang.dev/install | shThis installs the draft binary to ~/.draft/bin and adds it to your PATH.
macOS (Homebrew)
Section titled “macOS (Homebrew)”brew install draft-lang/tap/draftLinux (Package Managers)
Section titled “Linux (Package Managers)”Debian/Ubuntu:
curl -fsSL https://draft-lang.dev/gpg.key | sudo gpg --dearmor -o /usr/share/keyrings/draft-archive-keyring.gpgecho "deb [signed-by=/usr/share/keyrings/draft-archive-keyring.gpg arch=amd64] https://draft-lang.dev/apt stable main" | sudo tee /etc/apt/sources.list.d/draft.listsudo apt update && sudo apt install draftFedora/RHEL:
sudo dnf config-manager --add-repo https://draft-lang.dev/rpm/draft.reposudo dnf install draftArch Linux:
yay -S draft-langWindows (PowerShell)
Section titled “Windows (PowerShell)”irm https://draft-lang.dev/install.ps1 | iexThis installs to %USERPROFILE%\.draft\bin and adds it to your user PATH.
Windows (winget)
Section titled “Windows (winget)”winget install DraftLang.DraftWindows (Scoop)
Section titled “Windows (Scoop)”scoop install draftBuild from Source
Section titled “Build from Source”Requires Git and a C compiler (GCC or Clang):
git clone https://github.com/draft-lang/draft.gitcd draftmake releasesudo make installVerify Installation
Section titled “Verify Installation”draft --versionExpected output:
Draft 1.4.0 (a1b2c3d, 2026-08-26)Update
Section titled “Update”draft upgradeUninstall
Section titled “Uninstall”# macOS / Linuxrm -rf ~/.draft# Remove PATH entry from ~/.bashrc, ~/.zshrc, or ~/.fishrc
# Windows (PowerShell)Remove-Item -Recurse -Force $env:USERPROFILE\.draftNext Steps
Section titled “Next Steps”Try the Hello World guide to write your first Draft program.
