USAGE /usr/bin/wasmedge [SUBCOMMANDS] [OPTIONS] [--] WASM_OR_SO [ARG ...] SUBCOMMANDS compile Wasmedge compiler subcommand run Wasmedge runtime tool subcommand parse Wasmedge parse tool subcommand instantiate Wasmedge instantiate tool subcommand validate Wasmedge validate tool subcommand OPTIONS -h|--help Show this help message -v|--version Show version information --log-level Set logging level. Valid values: off, trace, debug, info, warning, error, fatal. Default is info. --forbidden-plugin List of plugins to ignore. --wasm-1 Set as WASM 1.0 standard. --wasm-2 Set as WASM 2.0 standard. --wasm-3 Set as WASM 3.0 standard (default). --disable-import-export-mut-globals Disable Import/Export of mutable globals proposal --disable-non-trap-float-to-int Disable Non-trapping float-to-int conversions proposal --disable-sign-extension-operators Disable Sign-extension operators proposal --disable-multi-value Disable Multi-value proposal --disable-bulk-memory Disable Bulk memory operations proposal --disable-reference-types Disable Reference types proposal --disable-simd Disable SIMD proposal --disable-tail-call Disable Tail-call proposal --disable-extended-const Disable Extended-const proposal --disable-function-reference Disable Function Reference proposal --disable-gc Disable GC proposal --disable-multi-memory Disable Multiple memories proposal --disable-relaxed-simd Disable Relaxed SIMD proposal --disable-exception-handling Disable Exception handling proposal --disable-memory64 Disable Memory64 proposal --enable-threads Enable Threads proposal --enable-all Enable all features --enable-component Enable Component Model proposal, this is experimental --dir Binding directories into WASI virtual filesystem. Each directory can be specified as --dir `host_path`. You can also map a guest directory to a host directory by --dir `guest_path:host_path`, where `guest_path` specifies the path that will correspond to `host_path` for calls like `fopen` in the guest. The default permission is `readwrite`, however, you can use --dir `guest_path:host_path:readonly` to make the mapping directory become a read only mode. --env Environ variables. Each variable can be specified as --env `NAME=VALUE`. --module Register additional WASM modules for linking. Each module can be specified as --module `name:path`, where `name` is the module name to export and `path` is the WASM file path. --memory-page-limit Limitation of pages(as size of 64 KiB) in every memory instance. Upper bound can be specified as --memory-page-limit `PAGE_COUNT`. --enable-instruction-count Enable generating code for counting Wasm instructions executed. --enable-gas-measuring Enable generating code for counting gas burned during execution. --enable-time-measuring Enable generating code for counting time during execution. --enable-all-statistics Enable generating code for all statistics options include instruction counting, gas measuring, and execution time --enable-jit Enable Just-In-Time compiler for running WASM --enable-coredump Enable coredump when WebAssembly enters a trap. Requires the interpreter run mode, otherwise it is disabled --coredump-for-wasmgdb Enable coredump in the format expected by the wasmgdb debugger, which differs from the one of the WebAssembly tool conventions --force-interpreter Forcibly run WASM in interpreter mode. --run-mode Set execution mode. Valid values: interpreter, jit, aot, lazyjit. Default is interpreter. --allow-af-unix Enable UNIX domain sockets --time-limit Limitation of maximum time(in milliseconds) for execution, default value is 0 for no limitations --gas-limit Limitation of execution gas. Upper bound can be specified as --gas-limit `GAS_LIMIT`. --stack-size-limit Limitation of stack size (in bytes) for execution, default value is 0 for the engine default (8 MiB for the interpreter, 512 KiB for compiled code) --reactor Enable reactor mode. Reactor mode calls `_initialize` if exported.
Options (41)
| Option | Description | Source |
|---|---|---|
--log-level | Set logging level. | help |
--forbidden-plugin | List of plugins to ignore. | help |
--wasm-1 | Set as WASM 1.0 standard. | help |
--wasm-2 | Set as WASM 2.0 standard. | help |
--wasm-3 | Set as WASM 3.0 standard (default). | help |
--disable-import-export-mut-globals | Disable Import/Export of mutable globals proposal | help |
--disable-non-trap-float-to-int | Disable Non-trapping float-to-int conversions proposal | help |
--disable-sign-extension-operators | Disable Sign-extension operators proposal | help |
--disable-multi-value | Disable Multi-value proposal | help |
--disable-bulk-memory | Disable Bulk memory operations proposal | help |
--disable-reference-types | Disable Reference types proposal | help |
--disable-simd | Disable SIMD proposal | help |
--disable-tail-call | Disable Tail-call proposal | help |
--disable-extended-const | Disable Extended-const proposal | help |
--disable-function-reference | Disable Function Reference proposal | help |
--disable-gc | Disable GC proposal | help |
--disable-multi-memory | Disable Multiple memories proposal | help |
--disable-relaxed-simd | Disable Relaxed SIMD proposal | help |
--disable-exception-handling | Disable Exception handling proposal | help |
--disable-memory64 | Disable Memory64 proposal | help |
--enable-threads | Enable Threads proposal | help |
--enable-all | Enable all features | help |
--enable-component | Enable Component Model proposal, this is experimental | help |
--dir | Binding directories into WASI virtual filesystem. | help |
--env | Environ variables. | help |
--module | Register additional WASM modules for linking. | help |
--memory-page-limit | Limitation of pages(as size of 64 KiB) in every memory instance. | help |
--enable-instruction-count | Enable generating code for counting Wasm instructions executed. | help |
--enable-gas-measuring | Enable generating code for counting gas burned during execution. | help |
--enable-time-measuring | Enable generating code for counting time during execution. | help |
--enable-all-statistics | Enable generating code for all statistics options include instruction counting, gas measuring, and execution time | help |
--enable-jit | Enable Just-In-Time compiler for running WASM | help |
--enable-coredump | Enable coredump when WebAssembly enters a trap. | help |
--coredump-for-wasmgdb | Enable coredump in the format expected by the wasmgdb debugger, which differs from the one of the WebAssembly tool conventions | help |
--force-interpreter | Forcibly run WASM in interpreter mode. | help |
--run-mode | Set execution mode. | help |
--allow-af-unix | Enable UNIX domain sockets | help |
--time-limit | Limitation of maximum time(in milliseconds) for execution, default value is 0 for no limitations | help |
--gas-limit | Limitation of execution gas. | help |
--stack-size-limit | Limitation of stack size (in bytes) for execution, default value is 0 for the engine default (8 MiB for the interpreter, 512 KiB for compiled code) | help |
--reactor | Enable reactor mode. | help |