66 releases (43 stable)

6.1.0 Oct 8, 2025
6.1.0-rc.3 Aug 20, 2025
6.1.0-rc.2 Jul 17, 2025
6.0.0-beta.1 Mar 7, 2025
1.0.1 Jan 16, 2021

#1791 in WebAssembly

Download history 160/week @ 2025-07-16 32/week @ 2025-07-23 21/week @ 2025-07-30 21/week @ 2025-08-06 16/week @ 2025-08-13 166/week @ 2025-08-20 7/week @ 2025-08-27 18/week @ 2025-09-03 1/week @ 2025-09-10 162/week @ 2025-09-17 32/week @ 2025-09-24 20/week @ 2025-10-01 214/week @ 2025-10-08 36/week @ 2025-10-15 35/week @ 2025-10-22

288 downloads per month

MIT license

7.5MB
150K 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"

Features

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.
  • 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

Dependencies

~51–73MB
~1.5M SLoC