---
title: fastly compute pack
summary: Package a pre-compiled Wasm binary for a Fastly Compute service
url: https://www.fastly.com/documentation/reference/cli/compute/pack
---

Package a pre-compiled Wasm binary for a Fastly Compute service

## Flags

| Flag | Description | Required | Default |
|------|-------------|----------|----------|
| `--wasm-binary` | Path to a pre-compiled Wasm binary | Yes | - |

## Global options

| Flag | Description | Required | Default |
|------|-------------|----------|----------|
| `--help` | Show context-sensitive help. | No | - |
| `--accept-defaults` | Accept default options for all interactive prompts apart from Yes/No confirmations | No | - |
| `--auto-yes` | Answer yes automatically to all Yes/No confirmations. This may suppress security warnings | No | - |
| `--debug-mode` | Print API request and response details (NOTE: can disrupt the normal CLI flow output formatting) | No | - |
| `--non-interactive` | Do not prompt for user input - suitable for CI processes. Equivalent to --accept-defaults and --auto-yes | No | - |
| `--quiet` | Silence all output except direct command output. This won't prevent interactive prompts (see: --accept-defaults, --auto-yes, --non-interactive) | No | - |
| `--token` | Fastly API token, or name of a stored auth token (use 'default' for the default token). Falls back to FASTLY_API_TOKEN env var | No | - |
| `--verbose` | Verbose logging | No | - |

## Examples

### Package a pre-compiled Wasm binary for a Fastly Compute service

Write Compute applications in [any WASI-supporting language](https://www.fastly.com/documentation/guides/compute/custom) and use <kbd>fastly compute pack</kbd> to package the pre-compiled Wasm binary into a supported format.

```bash
fastly compute pack --wasm-binary ./bin/main.wasm
```

