# Getting Started

This guide will introduce the `wapm` tool and show a few common workflows. The WAPM client can install packages, manage WebAssembly dependencies, and expose WebAssembly behavior with commands.

## Install WAPM

WAPM comes bundled with Wasmer, so you just need to install Wasmer in your system to have the `wapm` CLI!

{% content-ref url="../wasmer/getting-started" %}
[getting-started](https://jubianchi.gitbook.io/wasmer-docs/doc-update-1.0/ecosystem/wasmer/getting-started)
{% endcontent-ref %}

## **Basic Usage**

With the tools installed, one can easily start using universal Wasm binaries by using the `install` command of `wapm` CLI:

```
wapm install cowsay
```

Installing a package creates a local package directory called `wapm_packages` where all packages are installed.

{% hint style="info" %}

### Did you know ...?

A WAPM package can be installed globally by adding the `-g` flag.\
Eg:`wapm install -g cowsay`
{% endhint %}

While in a directory with WAPM packages, one may execute them with the `run` command:

```
wapm run cowsay hello wapm!
```

```
< hello wapm! >
 -------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
               ||----w |
                ||     ||
```

Great! You used a WAPM package in your system... now let's try to create our own package and publish it to WAPM so other users can use it

{% hint style="success" %}
When executing WAPM, you can also customize the WebAssembly runtime used under the hood.

For example, if you want to use [`wasmer-js`](https://jubianchi.gitbook.io/wasmer-docs/doc-update-1.0/integrations/js/wasmer-js-cli) as the runtime, you can do:

```
WAPM_RUNTIME=wasmer-js wapm run cowsay hello wapm!
```

{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://jubianchi.gitbook.io/wasmer-docs/doc-update-1.0/ecosystem/wapm/getting-started.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
