Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Installation

简体中文

pud is a single executable that contains the compiler, the formatter, the package manager and a WebAssembly runtime for the wasi target.

Install script

macOS and Linux, on x86_64 or arm64:

curl -fsSL https://raw.githubusercontent.com/puddi-lang/puddi/main/install.sh | sh

Windows, in PowerShell:

irm https://raw.githubusercontent.com/puddi-lang/puddi/main/install.ps1 | iex

The script downloads the latest release, checks its SHA-256 checksum, installs pud into ~/.pud/bin and adds that directory to your PATH (through ~/.profile, ~/.bashrc, ~/.zshrc and fish’s conf.d on Unix, or the user PATH on Windows). Open a new terminal afterwards, or follow the command the script prints.

VariableEffect
PUD_VERSIONinstall a specific release, for example v0.1.2 (default: latest)
PUD_INSTALLinstall into this directory instead of ~/.pud
PUD_NO_MODIFY_PATHset to 1 to leave shell profiles and PATH alone
curl -fsSL https://raw.githubusercontent.com/puddi-lang/puddi/main/install.sh | PUD_VERSION=v0.1.2 sh

Run the script again to upgrade. To uninstall, remove the installed executable and remove the path entry the script added to your shell profile or Windows user PATH. If you used PUD_INSTALL, look under that directory instead of ~/.pud.

Release archives

Every release has archives for these targets, each with a .sha256 file, plus a combined SHA256SUMS:

ArchivePlatform
pud-x86_64-unknown-linux-gnu.tar.gzLinux x86_64 (glibc 2.35 or newer)
pud-aarch64-unknown-linux-gnu.tar.gzLinux arm64 (glibc 2.35 or newer)
pud-x86_64-apple-darwin.tar.gzmacOS Intel
pud-aarch64-apple-darwin.tar.gzmacOS Apple silicon
pud-x86_64-pc-windows-msvc.zipWindows x64 (also used on Windows arm64)

Unpack the archive and put pud (or pud.exe) anywhere on your PATH.

From source

With a current stable Rust toolchain:

cargo install --locked --git https://github.com/puddi-lang/puddi --tag v0.1.2

cargo install --no-default-features builds pud without the embedded runtime. It compiles much faster, but pud run then needs an external WASI 0.3 host (see Targets).

Node.js

pud test and the browser target run code on a JavaScript host and need Node.js 22 or newer. Async code under Node.js needs JSPI, which is enabled by default from Node.js 24. The embedded WASI and plugin runners do not need Node.js. See Troubleshooting if the JS host reports a missing WebAssembly feature.

Check the installation

pud --version