GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • 1. Introduction
  • 2. Using the Wasmtime CLI
  • 2.1. Installation
  • 2.2. CLI Options
  • 2.3. CLI Logging
  • 2.4. Cache Configuration
  • 3. Using the Wasmtime API
  • 3.1. Hello, world!
  • 3.2. Calculating the GCD
  • 3.3. Using Linear Memory
  • 3.4. Linking Modules
  • 3.5. anyref Reference Type
  • 3.6. externref Reference Type
  • 3.7. Multiple Memories

This view

  • Original page
  • New address

GeezerVison is showing docs.wasmtime.dev — Using the Wasmtime CLI - Wasmtime

Using the wasmtime CLI

In addition to the embedding API which allows you to use Wasmtime as a library, the Wasmtime project also provides a wasmtime CLI tool to conveniently execute WebAssembly modules from the command line.

This section will provide a guide to the wasmtime CLI and major functionality that it contains. In short, however, you can execute a WebAssembly file (actually doing work as part of the start function) like so:

wasmtime foo.wasm

Or similarly if you want to invoke a "start" function, such as with WASI modules, you can execute

wasmtime --invoke _start foo.wasm

For more information be sure to check out how to install the CLI, the list of options you can pass, and how to enable logging.

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.