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 helloshell
cd helloBuild a component project into a WebAssembly binary:
shell
wash buildStart a component development loop:
shell
wash devUpdate wash:
shell
wash updateNext steps
- Explore the
washCLI's Command Reference. - Read the Developer Guide to create a WebAssembly component.