Exec Mode Usage
The exec command runs WebAssembly files natively using wasmrun's built-in interpreter.
Synopsis
wasmrun exec <WASM_FILE> [OPTIONS] [-- ARGS...]
Quick Reference
# Run a WASM file
wasmrun exec ./program.wasm
# Pass arguments
wasmrun exec ./program.wasm hello world
# Call a specific function
wasmrun exec ./module.wasm --call add 5 3
Sub-Pages
| Topic | Description |
|---|---|
| Running WASM Files | Basic execution, entry points, output |
| Function Calling | Call specific exported functions with --call |
| Argument Passing | Pass arguments to WASM programs |
For HTTP-based access (AI agents, automation), see Agent API.