Skip to main content

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

TopicDescription
Running WASM FilesBasic execution, entry points, output
Function CallingCall specific exported functions with --call
Argument PassingPass arguments to WASM programs

For HTTP-based access (AI agents, automation), see Agent API.