This is the help output from the Wasmer CLI for wasmer --help
:
WebAssembly standalone runtime.USAGE:wasmer <SUBCOMMAND>FLAGS:-h, --help Prints help information-V, --version Prints version informationSUBCOMMANDS:cache Wasmer cachecompile Compile a WebAssembly binaryconfig Get various configuration information needed to compile programs which use Wasmercreate-exe Compile a WebAssembly binary into a native executablehelp Prints this message or the help of the given subcommand(s)inspect Inspect a WebAssembly filerun Run a WebAssembly file. Formats accepted: wasm, watself-update Update wasmer to the latest versionvalidate Validate a WebAssembly binarywast Run spec testsuite
USAGE:wasmer cache <SUBCOMMAND>FLAGS:-h, --help Prints help information-V, --version Prints version informationSUBCOMMANDS:clean Clear the cachedir Display the location of the cachehelp Prints this message or the help of the given subcommand(s)
Compile a WebAssembly binary
USAGE:wasmer compile [FLAGS] [OPTIONS] <FILE> -o <OUTPUT PATH>FLAGS:--enable-all Enable support for all pre-standard proposals--enable-bulk-memory Enable support for the bulk memory proposal--cranelift Use Cranelift compiler--enable-verifier Enable compiler internal verification-h, --help Prints help information--jit Use JIT Engine--llvm Use LLVM compiler--enable-multi-value Enable support for the multi value proposal--native Use Native Engine--object-file Use ObjectFile Engine--enable-reference-types Enable support for the reference types proposal--enable-simd Enable support for the SIMD proposal--singlepass Use Singlepass compiler--enable-threads Enable support for the threads proposal-V, --version Prints version informationOPTIONS:--header <HEADER PATH> Output path for generated header file-o <OUTPUT PATH> Output file-m <cpu-features>...--llvm-debug-dir <llvm-debug-dir> LLVM debug directory, where IR and object files will be written to--target <target-triple> Compilation Target tripleARGS:<FILE> Input file
Get various configuration information needed to compile programs which use Wasmer
USAGE:wasmer config [FLAGS]FLAGS:--bindir Directory containing Wasmer executables--cflags C compiler flags for files that include Wasmer headers-h, --help Prints help information--includedir Directory containing Wasmer headers--libdir Directory containing Wasmer libraries--libs Libraries needed to link against Wasmer components--pkg-config It outputs the necessary details for compiling and linking a program to Wasmer, using the `pkg-config` format--prefix Print the installation prefix-V, --version Prints version information
Compile a WebAssembly binary into a native executable
USAGE:wasmer create-exe [FLAGS] [OPTIONS] <FILE> -o <OUTPUT PATH>FLAGS:--enable-all Enable support for all pre-standard proposals--enable-bulk-memory Enable support for the bulk memory proposal--cranelift Use Cranelift compiler--enable-verifier Enable compiler internal verification-h, --help Prints help information--llvm Use LLVM compiler--enable-multi-value Enable support for the multi value proposal--enable-reference-types Enable support for the reference types proposal--enable-simd Enable support for the SIMD proposal--singlepass Use Singlepass compiler--enable-threads Enable support for the threads proposal-V, --version Prints version informationOPTIONS:-o <OUTPUT PATH> Output file-m <cpu-features>...-l <libraries>... Additional libraries to link against. This is useful for fixing linkererrors that may occur on some systems--llvm-debug-dir <llvm-debug-dir> LLVM debug directory, where IR and object files will be written to--target <target-triple> Compilation Target tripleARGS:<FILE> Input file
Inspect a WebAssembly file
USAGE:wasmer inspect [FLAGS] [OPTIONS] <FILE>FLAGS:--enable-all Enable support for all pre-standard proposals--enable-bulk-memory Enable support for the bulk memory proposal--cranelift Use Cranelift compiler--enable-verifier Enable compiler internal verification-h, --help Prints help information--jit Use JIT Engine--llvm Use LLVM compiler--enable-multi-value Enable support for the multi value proposal--native Use Native Engine--object-file Use ObjectFile Engine--enable-reference-types Enable support for the reference types proposal--enable-simd Enable support for the SIMD proposal--singlepass Use Singlepass compiler--enable-threads Enable support for the threads proposal-V, --version Prints version informationOPTIONS:--llvm-debug-dir <llvm-debug-dir> LLVM debug directory, where IR and object files will be written toARGS:<FILE> File to validate as WebAssembly
Run a WebAssembly file. Formats accepted: wasm, wat
USAGE:wasmer run [FLAGS] [OPTIONS] <FILE> [--] [--]...FLAGS:--enable-all Enable support for all pre-standard proposals--enable-bulk-memory Enable support for the bulk memory proposal--cranelift Use Cranelift compiler--disable-cache Disable the cache--enable-verifier Enable compiler internal verification-h, --help Prints help information--jit Use JIT Engine--llvm Use LLVM compiler--enable-multi-value Enable support for the multi value proposal--native Use Native Engine--object-file Use ObjectFile Engine--enable-reference-types Enable support for the reference types proposal--enable-simd Enable support for the SIMD proposal--singlepass Use Singlepass compiler--enable-threads Enable support for the threads proposal-V, --version Prints version informationOPTIONS:--dir <DIR>... WASI pre-opened directory--mapdir <GUEST_DIR:HOST_DIR>... Map a host directory to a different location for the wasm module--env <KEY=VALUE>... Pass custom environment variables-i, --invoke <invoke> Invoke a specified function--llvm-debug-dir <llvm-debug-dir> LLVM debug directory, where IR and object files will be written toARGS:<FILE> File to run<-->... Application arguments
It auto-updates Wasmer to the most-recent published version.
Validate a WebAssembly binary
USAGE:wasmer validate [FLAGS] [OPTIONS] <FILE>FLAGS:--enable-all Enable support for all pre-standard proposals--enable-bulk-memory Enable support for the bulk memory proposal--cranelift Use Cranelift compiler--enable-verifier Enable compiler internal verification-h, --help Prints help information--jit Use JIT Engine--llvm Use LLVM compiler--enable-multi-value Enable support for the multi value proposal--native Use Native Engine--object-file Use ObjectFile Engine--enable-reference-types Enable support for the reference types proposal--enable-simd Enable support for the SIMD proposal--singlepass Use Singlepass compiler--enable-threads Enable support for the threads proposal-V, --version Prints version informationOPTIONS:--llvm-debug-dir <llvm-debug-dir> LLVM debug directory, where IR and object files will be written toARGS:<FILE> File to validate as WebAssembly
Run spec testsuite
USAGE:wasmer wast [FLAGS] [OPTIONS] <FILE>FLAGS:--enable-all Enable support for all pre-standard proposals--enable-bulk-memory Enable support for the bulk memory proposal--cranelift Use Cranelift compiler--enable-verifier Enable compiler internal verification-f, --fail-fast A flag to indicate wast stop at the first error or continue-h, --help Prints help information--jit Use JIT Engine--llvm Use LLVM compiler--enable-multi-value Enable support for the multi value proposal--native Use Native Engine--object-file Use ObjectFile Engine--enable-reference-types Enable support for the reference types proposal--enable-simd Enable support for the SIMD proposal--singlepass Use Singlepass compiler--enable-threads Enable support for the threads proposal-V, --version Prints version informationOPTIONS:--llvm-debug-dir <llvm-debug-dir> LLVM debug directory, where IR and object files will be written toARGS:<FILE> Wast file to run