Server Mode Commands
Server mode provides commands for compiling, serving, inspecting, and managing WebAssembly projects.
Core Workflow
# Compile + serve in one step
wasmrun run ./my-project
# Or step by step
wasmrun compile ./my-project --output ./dist
wasmrun verify ./dist/output.wasm
wasmrun run ./dist/output.wasm
Command Reference
| Command | Description |
|---|---|
run | Compile and serve a project or WASM file with a dev server |
compile | Compile a project to WebAssembly |
verify | Validate a WASM binary's structure and format |
inspect | Analyze a WASM module's exports, imports, memory, and sections |
stop | Stop any running wasmrun server |
clean | Remove build artifacts and temporary files |