Install and uninstall WasmEdge
For Windows 10, you could use Windows Package Manager Client (aka winget.exe) to install WasmEdge with a single command in your terminal.
If you would like to install WasmEdge with its , please run the following command. It will attempt to install Tensorflow and image shared libraries on your system.
curl -sSf https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/utils/install.sh | bash -s -- -e all
Run the following command to make the installed binary available in the current session.
source $HOME/.wasmedge/env
That’s it! You can now use WasmEdge from the CLI, or launch it from an application. To update WasmEdge to a new release, just re-run the above command to write over the old files.
By default, WasmEdge is installed in the $HOME/.wasmedge
directory. You can install it into a system directory, such as /usr/local
to make it available to all users. To specify an install directory, you can run the install.sh
script with the -p
flag. You will need to run the following commands as the root
user or sudo
since they write into system directories.
curl -sSf https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/utils/install.sh | bash -s -- -e all -p /usr/local
You could install specific versions of WasmEdge, including pre-releases or old releases by passing the -v
argument to the install script. Here is an example.
curl -sSf https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/utils/install.sh | bash -s -- -e all -v 0.10.0
If you are interested in the latest builds from the HEAD
of the branch, which is basically WasmEdge’s nightly builds, you can download the release package directly from our Github Action’s CI artifact. Here is an example.
What’s installed
After installation, you have the following directories and files. Here we assume that you installed into the $HOME/.wasmedge
directory. You could also change it to /usr/local
if you did a system-wide install.
If you used winget to install WasmEdge, files are located at C:\Program Files\WasmEdge
.
- The
$HOME/.wasmedge/bin
directory contains the WasmEdge Runtime CLI executable files. You can copy and move them around on your file system.- The
wasmedge
tool is the standard WasmEdge runtime. You can use it from the CLI.wasmedge --dir .:. app.wasm
- The
wasmedge-tensorflow
, tools are runtimes that support the WasmEdge tensorflow SDK.
- The
- The
$HOME/.wasmedge/lib
directory contains WasmEdge shared libraries, as well as dependency libraries. They are useful for WasmEdge SDKs to launch WasmEdge programs and functions from host applications. - The
$HOME/.wasmedge/include
directory contains the WasmEdge header files. They are useful for WasmEdge SDKs.
To uninstall WasmEdge, you can run the following command.
bash <(curl -sSf https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/utils/uninstall.sh)
If you wish to uninstall uninteractively, you can pass in the --quick
or -q
flag.
bash <(curl -sSf https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/utils/uninstall.sh) -q
If you used winget to install WasmEdge, run the following command.
winget uninstall wasmedge
Install WasmEdge for Node.js
WasmEdge can run applications. To install the WasmEdge module in your Node.js environment is easy. Just use the npm
tool.
To install WasmEdge with Tensorflow and other extensions.