github.com/bananabytelabs/wazero@v0.0.0-20240105073314-54b22a776da8/examples/cli/README.md (about)

     1  ## CLI example
     2  
     3  This example shows a simple CLI application compiled to WebAssembly and
     4  executed with the wazero CLI.
     5  
     6  ```bash
     7  $ go run github.com/bananabytelabs/wazero/cmd/wazero run testdata/cli.wasm 3 4
     8  ```
     9  
    10  The wazero CLI can run stand-alone Wasm binaries, providing access to any
    11  arguments passed after the path. The Wasm binary reads arguments and otherwise
    12  operates on the host via WASI functions.