xref: /wasmtime-44.0.1/docs/cli.md (revision 90ac295e)
1# Using the `wasmtime` CLI
2
3In addition to the embedding API which allows you to use Wasmtime as a
4library, the Wasmtime project also provides a `wasmtime` CLI tool to conveniently
5execute WebAssembly modules from the command line.
6
7This section will provide a guide to the `wasmtime` CLI and major functionality
8that it contains. In short, however, you can execute a WebAssembly file
9(actually doing work as part of the `start` function) like so:
10
11```console
12wasmtime foo.wasm
13```
14
15Or similarly if you want to invoke a "start" function, such as with WASI
16modules, you can execute
17
18```console
19wasmtime --invoke _start foo.wasm
20```
21
22For more information be sure to check out [how to install the
23CLI](cli-install.md), [the list of options you can
24pass](cli-options.md), and [how to enable logging](cli-logging.md).
25