fastedge-run eliminates that step: it runs the compiled Wasm binary locally and serves it over HTTP, so the application can be tested from the terminal without a new deployment.
The CLI is also bundled with the FastEdge VS Code extension. If you use VS Code, no separate installation is needed.
Install
Download a pre-built binary
Pre-built binaries are available for all major platforms on the FastEdge-lib releases page.| Platform | File |
|---|---|
| macOS (Apple Silicon) | fastedge-run-{version}-aarch64-apple-darwin.tar.gz |
| Linux (x86_64) | fastedge-run-{version}-x86_64-unknown-linux-gnu.tar.gz |
| Windows (x86_64) | fastedge-run-{version}-x86_64-pc-windows-msvc.zip |
fastedge-run binary to a directory on your PATH.
Build from source
If no pre-built binary is available for your platform, build from source:- Install Rust:
- Clone the repository and initialize submodules:
- Build the CLI:
./target/release/fastedge-run.
Run a Wasm application
Start a local HTTP server that executes your compiled Wasm binary:Pass environment variables
Set environment variables the same way they would be configured in the Customer Portal:--env:
Simulate geo headers
Inject sample geo data
Use--geo to add a fixed set of sample geo headers to every incoming request:
Inject specific headers
Use--headers to set individual headers with exact values. This is useful when testing logic that depends on a specific country code or region:
fastedge-run http --help to see all available options.