Skip to main content

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

CommandDescription
runCompile and serve a project or WASM file with a dev server
compileCompile a project to WebAssembly
verifyValidate a WASM binary's structure and format
inspectAnalyze a WASM module's exports, imports, memory, and sections
stopStop any running wasmrun server
cleanRemove build artifacts and temporary files