Skip to content
Open
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: 3 additions & 1 deletion docs/start/build-and-run/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ The options of the `wasmedge` CLI tool are as follows:
- If an exported function names `_initialize`, the function will be executed with the empty parameter at first.
4. _(Optional)_ `--dir`: Bind directories into WASI virtual filesystem.
- Use `--dir guest_path:host_path` to bind the host path into the guest path in WASI virtual system.
- Use `--dir guest_path:host_path:readonly` to bind the host path in read-only mode. The default permission is `readwrite`.
- Use `--dir guest_path:host_path:readonly` for read-only access. Omit the suffix for read-write access.
- To include a literal `:` in either path, use `--dir guest_path::host_path` or `--dir guest_path::host_path::readonly` in builds that include [double-colon support](https://github.com/WasmEdge/WasmEdge/pull/5628). For example, in PowerShell, `wasmedge --dir 'data::C:\work\data' app.wasm` makes `C:\work\data` available as `data` to the guest.
- On WasmEdge 0.18.1 or earlier, change into the Windows host directory first and use `--dir data:.` to map it to `data`.
5. _(Optional)_ `--env`: Assign the environment variables in WASI.
- Use `--env ENV_NAME=VALUE` to assign the environment variable.
6. _(Optional)_ `--module`: Register additional WASM modules for linking.
Expand Down