The CLI for executing Wasmer-JS
Documentation for Wasmer-JS Stack can be found on the Wasmer Docs.
$ npm install -g @wasmer/cli
...npm installation stuff here...
$ wasmer-js
wasmer-js 0.7.1
The Wasmer Engineering Team <[email protected]>
Node.js Wasm execution runtime.
USAGE:
wasmer <SUBCOMMAND>
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
SUBCOMMANDS:
help Prints this message or the help of the given subcommand(s)
run Run a WebAssembly file. Formats accepted: wasm, wat
validate Validate a Web Assembly binary
wasmer-js [FILE]
(same aswasmer-js run [FILE]
)wasmer-js run [FILE]
wasmer-js --version
Run a WebAssembly file with Wasmer-JS
$ wasmer-js run
wasmer-js 0.7.1
Run a WebAssembly file. Formats accepted: wasm, wat
USAGE:
wasmer-js run [FLAGS] [OPTIONS] <path> [--] [--]...
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
--env <env-vars>... Pass custom environment variables
--mapdir <mapped-dirs>... Map a host directory to a different location for the wasm module
--dir <pre-opened-directories>... WASI pre-opened directory
ARGS:
<path> Input file
<-->... Application arguments
Display the current wasmer-js CLI version
$ wasmer-js --version
wasmer-js 0.7.1