---
title: "ezgh trails query list"
description: "List query history, newest first (everyone's with audit.queries.list, else your own)."
---

> 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 list

{/* 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 list [--status s] [--created-by principal] [flags]
```

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

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--all` | boolean |  | follow nextCursor through every page |
| `--created-by` | string |  | only this principal's queries (an ID, or a user's email) |
| `--cursor` | string |  | start from this page (a previous page's nextCursor) |
| `--limit` | int |  | items per page, 1 to 100 (default 20) |
| `--status` | string |  | queued, running, succeeded, failed or cancelled |

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

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