@wasmer/cli
TypeScript icon, indicating that this package has built-in type declarations

0.12.0 • Public • Published

@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 <engineering@wasmer.io>
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

Dependents (0)

Package Sidebar

Install

npm i @wasmer/cli

Weekly Downloads

35

Version

0.12.0

License

MIT

Unpacked Size

13.6 kB

Total Files

12

Last publish

Collaborators

  • xdoardo
  • syrusakbary