Skip to content
gurl diff

gurl diff

Compare the response bodies of the most recent executions of one request.

Synopsis

gurl diff <name> [flags]

JSON bodies are compared structurally (RFC 6902 changes); other bodies get a text diff. diff always compares the newest entries. In agent mode it masks secrets using the secrets of both compared runs.

To see why one run failed, including variable and header changes since the last success, use gurl diag.

Flags

FlagShortDefaultDescription
--limit-n, -l2Number of responses to compare
--json-jfalseJSON output

Examples

Compare the last two runs

gurl diff get-user

Compare the last three runs

gurl diff get-user --limit 3

JSON for scripts

gurl diff get-user --json
{
  "request": "get-user",
  "before": {"id": "699120a5-...", "short_id": "699120a5", "time": "2026-10-20T18:41:41+05:30", "status": 200},
  "after":  {"id": "e7770aa1-...", "short_id": "e7770aa1", "time": "2026-10-20T18:41:41+05:30", "status": 200},
  "format": "json",
  "identical": true
}

When the bodies differ, the object also carries changes (RFC 6902 operations, when format is json) or text (a character diff, when format is text). diff --json compares the newest execution (after) with the one before it (before).

Related commands