How to install cloudflare/workerd. Official installation instructions. Project installation guide. Framework or library installation. Build installation instructions. How to setup and install from GitHub. Installation steps and setup instructions. Official docs and installation instructions GitHub.
cloudflare/workerd Installation Guide
How to install cloudflare/workerd. Official project installation instructions and setup guide.
⚡
Automated Install (Recommended)
Quick installation instructions for cloudflare/workerd. This is the fastest way to complete project installation and setup.
Install via curl
curl -fsSL https://hexmos.com/ipm-install | bash &&
ipm i cloudflare/workerdor
Install via npx
npx @hexmos/ipm i cloudflare/workerdPrerequisites
Bazel
build toolBazelisk
build toolClang
compilerVersion: 19+
LLVM
linkerVersion: 19+
libc++
libraryVersion: 19+
Python 3
languageTcl 8.6
scripting languageXcode 16.3
IDEVersion: 16.3
App Installer
package managerVersion: latest
glibc
libraryVersion: 2.35+
Manual Installation Methods
Manual installation instructions. How to install from GitHub source.
Build from Source (Linux)
git clone https://github.com/cloudflare/workerd.git
cd workerd
sudo apt-get update -y
sudo apt-get install -y clang-19 lld-19 libc++-19-dev libc++abi-19-dev python3 python3-distutils tcl8.6
bazel build //src/workerd/server:workerd --action_env=CC=clang-19Build from Source (macOS)
git clone https://github.com/cloudflare/workerd.git
cd workerd
xcode-select --install
brew install tcl-tk
bazel build //src/workerd/server:workerdBuild from Source (Windows)
git clone https://github.com/cloudflare/workerd.git
cd workerd
winget install --id=Microsoft.AppInstaller --source winget --accept-package-agreements
tools\windows\install-deps.bat
echo "startup --output_user_root=C:/tmp" >> %USERPROFILE%\.bazelrc
tools\windows\bazel-env.bat
bazel build //src/workerd/server:workerdUsing Prebuilt Binaries (via npm)
npm install -g workerdPost Installation Steps
- To run workerd, use: 'workerd serve <config.capnp>'.
- For command-line usage, run: 'workerd --help'.
- To use prebuilt binaries, run: 'npx workerd ...'.
