HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

wapm — The WebAssembly package manager. More information: <https://wasmer.io/help/reference>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thewapmcommandwebassemblyclipackagemoremanager

Problem

How to use the wapm command: The WebAssembly package manager. More information: <https://wasmer.io/help/reference>.

Solution

wapm — The WebAssembly package manager. More information: <https://wasmer.io/help/reference>.

Interactively create a new wapm.toml file:
wapm init


Download all the packages listed as dependencies in wapm.toml:
wapm install


Download a specific version of a package and add it to the list of dependencies in wapm.toml:
wapm install {{package}}@{{version}}


Download a package and install it globally:
wapm install --global {{package}}


Uninstall a package and remove it from the list of dependencies in wapm.toml:
wapm uninstall {{package}}


Print a tree of locally installed dependencies:
wapm list


List top-level globally installed packages:
wapm list --global


Execute a package command using the Wasmer runtime:
wapm run {{command_name}} {{arguments}}

Code Snippets

Interactively create a new `wapm.toml` file

wapm init

Download all the packages listed as dependencies in `wapm.toml`

wapm install

Download a specific version of a package and add it to the list of dependencies in `wapm.toml`

wapm install {{package}}@{{version}}

Download a package and install it globally

wapm install --global {{package}}

Uninstall a package and remove it from the list of dependencies in `wapm.toml`

wapm uninstall {{package}}

Context

tldr-pages: common/wapm

Revisions (0)

No revisions yet.