← 返回命令列表

Linux command

wash 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Create new WebAssembly component project

wash new component [project-name]

Build a component

wash build

Start development server with hot reload

wash dev

Start local wasmCloud environment

wash up

Stop local wasmCloud environment

wash down

Push component to OCI registry

wash push [registry.example.com/component:tag] [component.wasm]

Inspect component interfaces

wash inspect [component.wasm]

说明

wash (wasmCloud Shell) is the comprehensive CLI for developing WebAssembly components and managing wasmCloud distributed applications. It provides tools for the complete development lifecycle from project scaffolding to deployment. The CLI supports multi-language component development including Rust, Go, and TypeScript. Projects are built to WebAssembly components following the Component Model specification. The dev command provides a hot-reload development server for rapid iteration. wasmCloud enables distributed applications where components communicate through capability providers for networking, storage, and other system services. wash manages local development environments and interacts with remote wasmCloud lattices.

参数

-o _format_
Output format: text, json.
--nats-host _host_
NATS server host.
--nats-port _port_
NATS server port.
--lattice _id_
Lattice ID to connect to.
--ctl-host _host_
Control interface host.

FAQ

What is the wash command used for?

wash (wasmCloud Shell) is the comprehensive CLI for developing WebAssembly components and managing wasmCloud distributed applications. It provides tools for the complete development lifecycle from project scaffolding to deployment. The CLI supports multi-language component development including Rust, Go, and TypeScript. Projects are built to WebAssembly components following the Component Model specification. The dev command provides a hot-reload development server for rapid iteration. wasmCloud enables distributed applications where components communicate through capability providers for networking, storage, and other system services. wash manages local development environments and interacts with remote wasmCloud lattices.

How do I run a basic wash example?

Run `wash new component [project-name]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -o _format_ do in wash?

Output format: text, json.