23 releases (13 stable)

3.2.0-alpha.1 Jan 23, 2023
3.1.0 Dec 14, 2022
3.0.2 Nov 27, 2022
3.0.0-alpha.4 Jul 29, 2022
1.0.1 Jan 16, 2021

#74 in WebAssembly

Download history 136/week @ 2022-12-02 152/week @ 2022-12-09 183/week @ 2022-12-16 163/week @ 2022-12-23 126/week @ 2022-12-30 163/week @ 2023-01-06 132/week @ 2023-01-13 153/week @ 2023-01-20 191/week @ 2023-01-27 290/week @ 2023-02-03 194/week @ 2023-02-10 254/week @ 2023-02-17 182/week @ 2023-02-24 137/week @ 2023-03-03 149/week @ 2023-03-10 150/week @ 2023-03-17

647 downloads per month

MIT license

48K SLoC

wasmer-cli Build Status Join Wasmer Slack MIT License

This crate is the Wasmer CLI.

The recommended way to install wasmer is via the wasmer-installer.

However, you can also install wasmer via Cargo (you will need to specify the compilers to use):

cargo install wasmer-cli --features "singlepass,cranelift"

Or by building it inside the codebase:

cargo build --release --features "singlepass,cranelift"

Note: installing wasmer via Cargo (or manual install) will not install the WAPM cli. If you want to use them together, please use the wasmer installer.


The Wasmer supports the following features:

  • wat (default): support for executing WebAssembly text files.
  • wast(default): support for running wast test files.
  • cache (default): support or automatically caching compiled artifacts.
  • wasi (default): support for WASI.
  • experimental-io-devices: support for experimental IO devices in WASI.
  • emscripten (default): support for Emscripten.
  • singlepass: support for the Singlepass compiler.
  • cranelift: support for the Cranelift compiler.
  • llvm: support for the LLVM compiler.

CLI commands

Once you have Wasmer installed, you can start executing WebAssembly files easily:

Get the current Wasmer version:

wasmer -V

Execute a WebAssembly file:

wasmer run myfile.wasm

Compile a WebAssembly file:

wasmer compile myfile.wasm -o myfile.wasmu

Run a compiled WebAssembly file (fastest):

wasmer run myfile.wasmu


~1M SLoC