Skip to main content

Install and use the CLI

Security Consideration

The experimental CLI uses inheritSystemStreams() by default, granting the Wasm module access to stdin, stdout and stderr of the host. Do not use it with untrusted modules in its current form.

The experimental Endive CLI is available for download on Maven at the link:

https://repo1.maven.org/maven2/run/endive/cli-experimental/<version>/cli-experimental-<version>.sh

you can download the latest version and use it locally by typing:

export VERSION=$(curl -sS https://api.github.com/repos/bytecodealliance/endive/tags --header "Accept: application/json" | jq -r '.[0].name')
curl -L -o endive https://repo1.maven.org/maven2/run/endive/cli-experimental/${VERSION}/cli-experimental-${VERSION}.sh
chmod a+x endive
./endive