---
title: "ezgh trails query results"
description: "Print a finished query's rows, or download them as CSV or JSON Lines."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.ezghcloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ezgh trails query results

{/* Generated by ezgh-cli's internal/tools/clidocs from the ezgh command tree. Don't edit: change the command's help in ezgh-cli and regenerate. */}

```sh
ezgh trails query results <query-id> [flags]
```

Print a succeeded query's rows, one page (`--limit` rows) or `--all`. `--download` csv\|ndjson streams every stored row in that format instead. Results are kept 7 days.

Part of [`ezgh trails query`](/cli/reference/trails-query).

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--all` | boolean |  | follow nextCursor through every page |
| `--cursor` | string |  | start from this page (a previous page's nextCursor) |
| `--download` | string |  | stream every row as csv or ndjson |
| `--limit` | int |  | items per page, 1 to 1000 (default 100) |

This command also takes the [global flags](/cli/reference#global-flags).

Source: https://docs.ezghcloud.com/cli/reference/trails-query-results/index.mdx
