---
title: "ezgh flags history"
description: "List a flag's targeting versions in an environment."
---

> 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 flags history

{/* 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 flags history <key> --env <environment> [flags]
```

List the versions of a flag's targeting in one environment, newest first: who made each change, when, and their comment. `ezgh flags restore` writes an old version's content as a new one.

Part of [`ezgh flags`](/cli/reference/flags).

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--all` | boolean |  | follow nextCursor through every page |
| `--cursor` | string |  | start from this page (a previous page's nextCursor) |
| `--env` | string |  | the environment's key (required) |
| `--limit` | int | `20` | items per page, 1 to 100 |

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

Source: https://docs.ezghcloud.com/cli/reference/flags-history/index.mdx
