---
title: "ezgh secrets versions"
description: "List a secret's versions, newest first."
---

> 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 secrets versions

{/* 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 secrets versions <name> [flags]
```

List a secret's versions with their state (enabled, or destroyed), field count and who wrote them. Field names are in `--output json`; values are never shown.

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

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--all` | boolean |  | follow nextCursor through every page |
| `--cursor` | string |  | start from this page (a previous page's nextCursor) |
| `--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/secrets-versions/index.mdx
