Wasm Shell (wash) CLI
Wasm Shell (wash) is the comprehensive command-line tool for developing, building, and publishing WebAssembly components.
The CLI provides an intuitive developer experience for the modern Wasm ecosystem, from project scaffolding to building and pushing components to OCI registries.
The Wasm Shell CLI is available on GitHub as part of the open source wasmCloud project, hosted by the Cloud Native Computing Foundation (CNCF).
Install wash
- macOS and Linux
- Windows
- Source
shell
curl -fsSL https://raw.githubusercontent.com/wasmcloud/wash/refs/heads/main/install.sh | bashRemember to add wash to your PATH.
powershell
iwr -useb https://raw.githubusercontent.com/wasmcloud/wash/refs/heads/main/install.ps1 | iexRemember to add wash to your PATH.
You will need cargo to install from source.
shell
git clone https://github.com/wasmcloud/wash.git
cd wash
cargo install --path .Pre-built binaries for macOS, Linux, and Windows are available on GitHub.
What does wash do?
Check your environment for component development dependencies:
shell
wash doctorCreate a new component project:
shell
wash newStart a component development loop:
shell
wash devBuild a component project into a WebAssembly binary:
shell
wash buildUpdate wash:
shell
wash updateNext steps
- Explore the
washCLI's commands. - Try the wasmCloud developer quickstart to create your first WebAssembly component.
- Build a more advanced component in the wasmCloud developer guide.