Quickstart Guide

Step-by-step guide to writing, inspecting, and running your first scenario.

This guide walks you through defining an API scenario, inspecting its compiled execution graph, and executing the workload.

1. Define a Scenario Script

Create a script file named scenario.ts. In this example, we define an authenticated workflow that evaluates response data, synchronizes workers, and records custom metrics.

2. Inspect the Execution Plan

Before initiating network execution, validate script syntax and review the compiled AST graph using the plan command:

bash
budment plan scenario.ts

The CLI outputs an ASCII visualization of your execution plan, verifying node dependencies and metadata without issuing real HTTP requests:

3. Execute the Scenario

Run the scenario through the native execution engine:

bash
budment run scenario.ts

You can override runtime parameters on the fly without modifying code:

bash
budment run scenario.ts --vus 20 --duration 1m

During execution, Budment renders a live interactive terminal dashboard (TUI). Once completed, a comprehensive summary report will be generated.

For advanced CLI options, CI/CD flags, and JSON outputs, refer to the CLI Command Reference.