Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions component-model/src/running-components/wasmtime.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ As of Wasmtime Version 33.0.0, there is [support for invoking components with cu
As an example, if your component exports a function `add` which takes two numeric arguments, you can make use of this feature with the following command.

```sh
wasmtime run --invoke 'foo(1, 2)' <path-to-wasm-file>
wasmtime run --invoke 'add(1, 2)' <path-to-wasm-file>
```
Make sure to wrap your invocation in single quotes abd to include parentheses, even if your function doesn't take any arguments. For a full list of ways to represent the various wit types when passing arguments to your exported function, visit the [WAVE repo](https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wasm-wave).
Make sure to wrap your invocation in single quotes and to include parentheses, even if your function doesn't take any arguments. For a full list of ways to represent the various wit types when passing arguments to your exported function, visit the [WAVE repo](https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wasm-wave).