mirror of
https://github.com/wazero/wazero
synced 2026-06-21 14:12:37 +00:00
5dd247b60e
Signed-off-by: David Desmarais-Michaud <desmarais.michaud.david@gmail.com> Co-authored-by: Nuno Cruces <ncruces@users.noreply.github.com>
wazero CLI
The wazero CLI can be used to execute a standalone WebAssembly binary.
Installation
$ go install github.com/tetratelabs/wazero/cmd/wazero@latest
Usage
The wazero CLI accepts a single argument, the path to a WebAssembly binary. Arguments can be passed to the WebAssembly binary itself after the path.
wazero run calc.wasm 1 + 2
In addition to arguments, the WebAssembly binary has access to stdout, stderr, and stdin.