CLI Usage
The
wapm
Command Line tool has the following subcommands:Logs the user in to the registry with the given credentials.
Logs the user out of the registry, resetting the token.
Shows the current user logged in.
Sets a config
key
with the given value
.Note: when setting the
registry.url
, the registry.token
will reset automatically.Gets the config
key
contents.Search for packages related to the
query
.Installs missing dependencies and the latest version of the package, optionally, specified.
A WAPM package can be installed globally by adding the
-g
flagEG:
wapm install -g cowsay
Executes a package command with the
run
cli command. The command will be run with the Wasmer runtime.Runs the background updater explicitly.
Validate the sources of local WAPM modules. Will display an error if the sources are not valid WebAssembly.
Generate a shell completion script for WAPM for the specified shell.
Initialize a new WAPM project by generating a
wapm.toml
in the current directory.Prints all commands and modules for a package in the current directory.
The opposite of
wapm install
. Uninstall globally with the -g
flag.Adds packages to the manifest without installing them.
Print the
.bin
directory path for the local package. Get the global path with -g
flag.WAPM packages can be signed to ensure that they haven't been tampered with.
list personal key pairs and trusted public keys
generate a key pair at location
<path>
and register them with WAPMimport a public key for the given user
register an existing key pair with WAPM
delete the key pair matching
<public-key-id>
During the alpha, telemetry (specifically error logging to Sentry) is enabled by default in the WAPM CLI. We send and record information such as IP address, operating system name and version, and the error/panic message.
To disable it, run
wapm config set telemetry.enabled false
or compile from source (the telemetry feature is disabled in the build by default).Last modified 6mo ago