2020-02-01 11:58:26 +00:00
|
|
|
# wapm
|
|
|
|
|
|
|
|
> The WebAssembly package manager.
|
|
|
|
> More information: <https://wapm.io/help/reference>.
|
|
|
|
|
2021-01-31 17:05:18 +00:00
|
|
|
- Interactively create a new `wapm.toml` file:
|
2020-02-01 11:58:26 +00:00
|
|
|
|
|
|
|
`wapm init`
|
|
|
|
|
2021-01-31 17:05:18 +00:00
|
|
|
- Download all the packages listed as dependencies in `wapm.toml`:
|
2020-02-01 11:58:26 +00:00
|
|
|
|
|
|
|
`wapm install`
|
|
|
|
|
2023-08-26 18:30:06 +01:00
|
|
|
- Download a specific version of a package and add it to the list of dependencies in `wapm.toml`:
|
2020-02-01 11:58:26 +00:00
|
|
|
|
2023-08-26 18:30:06 +01:00
|
|
|
`wapm install {{package}}@{{version}}`
|
2020-02-01 11:58:26 +00:00
|
|
|
|
|
|
|
- Download a package and install it globally:
|
|
|
|
|
2023-08-26 18:30:06 +01:00
|
|
|
`wapm install --global {{package}}`
|
2020-02-01 11:58:26 +00:00
|
|
|
|
2021-01-31 17:05:18 +00:00
|
|
|
- Uninstall a package and remove it from the list of dependencies in `wapm.toml`:
|
2020-02-01 11:58:26 +00:00
|
|
|
|
2023-08-26 18:30:06 +01:00
|
|
|
`wapm uninstall {{package}}`
|
2020-02-01 11:58:26 +00:00
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
- Print a tree of locally installed dependencies:
|
2020-02-01 11:58:26 +00:00
|
|
|
|
|
|
|
`wapm list`
|
|
|
|
|
|
|
|
- List top-level globally installed packages:
|
|
|
|
|
|
|
|
`wapm list --global`
|
|
|
|
|
|
|
|
- Execute a package command using the Wasmer runtime:
|
|
|
|
|
|
|
|
`wapm run {{command_name}} {{arguments}}`
|