| Crates.io | wasmer-cli |
| lib.rs | wasmer-cli |
| version | 6.1.0-rc.5 |
| created_at | 2021-01-16 22:27:27.476536+00 |
| updated_at | 2025-09-17 07:04:09.728907+00 |
| description | Wasmer CLI |
| homepage | https://wasmer.io/ |
| repository | https://github.com/wasmerio/wasmer |
| max_upload_size | |
| id | 342956 |
| size | 1,170,387 |
wasmer-cli 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"
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.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