Files
wazero/examples/cli
Anuraag Agrawal 84488768e4 Initial wazero CLI to run a standalone Wasm binary (#813)
* Initial wazero CLI to run a standalone Wasm binary

Signed-off-by: Anuraag Agrawal <anuraaga@gmail.com>
2022-09-28 20:59:38 +09:00
..

CLI example

This example shows a simple CLI application compiled to WebAssembly and executed with the wazero CLI.

$ go run github.com/tetratelabs/wazero/cmd/wazero run testdata/cli.wasm 3 4

The wazero CLI can run stand-alone Wasm binaries, providing access to any arguments passed after the path. The Wasm binary reads arguments and otherwise operates on the host via WASI functions.