Install wasmCloud
Install the parts of the wasmCloud platform that you need depending on what you want to accomplish:
- If you want to develop and publish Wasm applications, install the Wasm Shell (
wash) CLI. - If you want to run Wasm workloads on Kubernetes, install wasmCloud on Kubernetes.
Install wash
- macOS and Linux
- Windows
- Source
- Install script
- Homebrew
In your terminal, run the installation script to download and install the latest version of wash (2.0.3):
curl -fsSL https://wasmcloud.com/sh | bashThe script installs To install to a different directory, set To skip automatic PATH modification (for example, if you manage your own dotfiles):wash to ~/.wash/bin and automatically updates your shell profile. Open a new terminal session to use wash.Customizing the install location
INSTALL_DIR:curl -fsSL https://wasmcloud.com/sh | INSTALL_DIR=/usr/local/bin bashcurl -fsSL https://wasmcloud.com/sh -o install.sh && bash install.sh --no-modify-path
If you have Homebrew installed, you can install wash with:
brew install wasmcloud/wasmcloud/washHomebrew updates your PATH automatically. You're ready to use wash in any terminal session.
In PowerShell, run the installation script to download and install the latest version of wash (2.0.3):
iwr -useb https://wasmcloud.com/ps1 | iexThe script installs To install to a different directory, set To skip automatic PATH modification:wash to %USERPROFILE%\.wash\bin and automatically adds it to your user PATH. Open a new terminal session to use wash.Customizing the install location
INSTALL_DIR:$env:INSTALL_DIR = "C:\tools\wash"; iwr -useb https://wasmcloud.com/ps1 | iexiwr -useb https://wasmcloud.com/ps1 -OutFile install.ps1; .\install.ps1 -NoModifyPath
You will need cargo to install from source.
git clone https://github.com/wasmcloud/wasmCloud.git
cd wasmCloud
cargo install --path crates/wash-cliPre-built binaries for macOS, Linux, and Windows are available on GitHub.
Verify that wash is properly installed and check your version for 2.0.3 with:
wash -VNow that wash is installed, the next step is to build and publish a Wasm application.
Install wasmCloud on Kubernetes
Installation requires the following tools:
You'll also need a Kubernetes environment. We recommend kind for the best local Kubernetes experience.
Local Kubernetes environment
You can use the one-liner below to start a kind cluster with a configuration from the wasmCloud/wasmCloud repository.
curl -fLO https://raw.githubusercontent.com/wasmCloud/wasmCloud/refs/heads/main/deploy/kind/kind-config.yaml && kind create cluster --config=kind-config.yaml && rm kind-config.yamlInstall the wasmCloud operator
Use Helm to install the wasmCloud operator from an OCI chart image, using the values for local installation. The overlay disables the deprecated Runtime Gateway by default — HTTP traffic is routed by the operator via EndpointSlices tied to standard Kubernetes Services:
helm install wasmcloud --version 2.0.3 oci://ghcr.io/wasmcloud/charts/runtime-operator \
-f https://raw.githubusercontent.com/wasmCloud/wasmCloud/refs/heads/main/charts/runtime-operator/values.local.yamlVerify the deployment:
kubectl get pods -l app.kubernetes.io/instance=wasmcloud -n defaultOnce all pods are running, you're ready to deploy a Wasm workload.
Deploy a Wasm workload
Apply the wasmCloud-hosted manifest, which contains a NodePort Service and a WorkloadDeployment that references it by name. The operator creates an EndpointSlice for the Service pointing at the host pods running the workload, so the NodePort on port 30950 (mapped to host port 80 by the kind cluster config) reaches the component directly:
kubectl apply -f https://raw.githubusercontent.com/wasmCloud/wasmCloud/refs/heads/main/examples/http-hello-world/manifests/workloaddeployment.yamlUse curl to invoke the Wasm workload with an HTTP request:
curl localhost -iHello from wasmCloud!For more information on each of these steps, see Kubernetes Operator.
Clean up
Delete the workload deployment and its Service:
kubectl delete workloaddeployment hello-world
kubectl delete service hello-worldUninstall wasmCloud:
helm uninstall wasmcloudDelete the local Kubernetes environment:
kind delete clusterNext steps
- Read the Overview for an explanation of core concepts in wasmCloud.
- Explore the
wash/examplesdirectory for more advanced Wasm component examples. - Check out the Developer Guide for information on building Wasm components.