Skip to content

Latest commit

 

History

History
 
 

cli

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

@wasmer/cli

The CLI for executing Wasmer-JS

Version Downloads/week License

Documentation for Wasmer-JS Stack can be found on the Wasmer Docs.

Usage

$ npm install -g @wasmer/cli

...npm installation stuff here...

$ wasmer-js
wasmer-js 0.7.1
The Wasmer Engineering Team <[email protected]>
Node.js Wasm execution runtime.

USAGE:
    wasmer <SUBCOMMAND>

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

SUBCOMMANDS:
    help           Prints this message or the help of the given subcommand(s)
    run            Run a WebAssembly file. Formats accepted: wasm, wat
    validate       Validate a Web Assembly binary

SubCommands

wasmer-js run [FILE]

Run a WebAssembly file with Wasmer-JS

$ wasmer-js run
wasmer-js 0.7.1
Run a WebAssembly file. Formats accepted: wasm, wat

USAGE:
    wasmer-js run [FLAGS] [OPTIONS] <path> [--] [--]...

FLAGS:
    -h, --help                              Prints help information
    -V, --version                           Prints version information

OPTIONS:
        --env <env-vars>...                  Pass custom environment variables
        --mapdir <mapped-dirs>...            Map a host directory to a different location for the wasm module
        --dir <pre-opened-directories>...    WASI pre-opened directory

ARGS:
    <path>     Input file
    <-->...    Application arguments

wasmer-js --version

Display the current wasmer-js CLI version

$ wasmer-js --version
wasmer-js 0.7.1