Skip to main content
Every prescale run and prescale investigate is automatically saved to .prescale/runs/<id>.json in your working directory. Use history to list all past runs and show to re-render any of them — full terminal output or a self-contained HTML report — without sending a single request to your app.

Usage

history

prescale history prints a table of saved runs, newest first. Each row shows the run ID, how long ago it ran, the target host, and a one-line verdict.

history options

integer
default:"20"
Maximum number of runs to display. Pass 0 to show all saved runs.
boolean
Emit the run list as a JSON array instead of the default table. Each object in the array contains the full run summary — useful for scripting.
string
Directory holding saved runs. Defaults to ./.prescale in the current working directory.

show

prescale show reads a saved result and passes it through the same rendering pipeline used during the original run — the output is identical. Use it to revisit a past run, share a report, or re-export to HTML.

show options

string
The run ID to display. If you omit this, show re-renders the most recent saved run. Run IDs are shown in the prescale history table.
string
Write a self-contained HTML report to the given path. The file embeds all styles and chart data — no server required. Share it by email or attach it to a ticket.
boolean
Emit the full saved result as JSON. The schema is identical to prescale run --json output — see the JSON contract below.
string
Directory holding saved runs. Defaults to ./.prescale in the current working directory.

JSON contract

Saved .json files and prescale run --json output share the same versioned schema. This means you can script against results however you prefer — pipe a live run into jq, store results in a database, or diff them programmatically.
The schema is versioned — use prescale schema to print it at any time.
Pass --no-save to prescale run or prescale investigate to skip writing to .prescale/runs/ entirely — useful in ephemeral CI containers where you want --json output only. Use --store DIR on any command to change the save location, for example when you want to keep runs for multiple projects separate.