Skip to main content
Version: v2

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).

See the Installation page to install wash.

What does wash do?

note

This quick command tour requires the Rust toolchain and the wasm32-wasip2 target for Rust: rustup target add wasm32-wasip2

Create a new component and navigate to the project directory:

shell
wash new https://github.com/wasmCloud/wasmCloud.git --subfolder examples/http-hello-world --name hello
shell
cd hello

Build a component project into a WebAssembly binary:

shell
wash build

Start a component development loop:

shell
wash dev

Update wash:

shell
wash update

Next steps