> ## Documentation Index
> Fetch the complete documentation index at: https://docs.telophasehq.com/llms.txt
> Use this file to discover all available pages before exploring further.

# tangent plugin compile

> Compile WASM Plugin

`compile-wasm` builds your plugin into a `.wasm` artifact the runtime can load.

```bash theme={null}
tangent plugin compile --config tangent.yaml --wit .tangent/wit
```

**Command Options**

* `--config <file>` (required) Path to `tangent.yaml`
* `--wit <dir>` (optional) Path to the WIT interfaces used by your plugin. If using a plugin generated from `tangent plugin scaffold`, the wit path is `.tangent/wit`

**Outputs**

* `./plugins/<name>.component.wasm` (default) — consumed by `tangent run`

See also: [tangent plugin test](/cli/plugin/test), [tangent run](/cli/run).
