Search⌘ K
AI Features

Exploring Other Options in emsdk

Explore how to manage the Emscripten SDK environment using emsdk commands. Learn to list available tools, install or update packages, configure build types and cores, activate SDK versions, and uninstall tools. This lesson enables efficient handling of the WebAssembly toolchain setup and maintenance using emsdk.

emsdk is a single-stop shop for installing, maintaining, and managing all the tools and toolchains required for using Emscripten. emsdk makes it easier to bootstrap the environment, upgrade to the latest versions, switch to various versions, change or configure various tools, and so on.

The emsdk command is available inside the emsdk folder. Go to the emsdk folder and run the emsdk command.

Note: For all the commands in this chapter, use ./emsdk for *nix systems and use emsdk for Windows.

To find the various options available in the emsdk command, run the following command:

Shell
./emsdk --help

Try it out

The output of the above snippet can be tested by running the above command in the given terminal below:

Terminal 1
Terminal
Loading...

An emsdk command takes the following format:

Shell
emsdk <option> <Tool / SDK > --<flags>

The emsdk ...