Endform logo

Query analytics from the CLI

The new endform query CLI command lets you pull suite-run and test-run analytics straight from your terminal as raw JSON. Plus TypeScript path-alias support in global setup scripts.

Major features & improvements

  • endform query command: Query Endform analytics as raw JSON from the CLI. Supports suite-runs and test-runs with rich filtering (outcome, retries, duration, test name, suite, project, branch, commit), relative or absolute time ranges, and cursor pagination — ideal for spotting flakes, slow tests, or recent failures from a script.
  • TypeScript path aliases in global setup scripts: Global setup and teardown scripts now resolve tsconfig.json paths aliases (e.g. @pages/*), so you can share helpers between your tests and setup code without rewriting imports.

CLI version updates

Version 0.66.x

Upgrade to 0.66.0 or later to get:

  • endform query command: Run analytics queries against suite-runs and test-runs directly from the CLI, with filters, relative/absolute time ranges, and pagination.
  • Non-interactive organization selection: In non-TTY environments, the CLI errors with a clear message listing available orgs and the exact --organization-id flag to use, instead of waiting on a prompt.
  • TypeScript alias support in global setup scripts (added in 0.65.1): tsconfig.json paths aliases are resolved when evaluating global setup and teardown scripts.